org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.util
Class Util

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.util.Util

public class Util
extends Object


Field Summary
static Set PRIMITIVE_TYPES
           
static Set RESERVED_WORDS
           
 
Method Summary
static String convertClassToSourcePath(String className, String fileExtension)
           
static String convertStringToLiteral(String value)
           
static String convertStringToLiteral(String className, String value)
           
static String fill(String base, int length)
           
static String getAlternatePropertyClass(PropertyBean property)
           
static String getBoxedClass(String className)
           
static String getClassFromFullClass(String fullClass)
           
static String getConstantNameFromProperty(String propertyName)
           
static String getConstantNameFromProperty(String propertyName, String constantSuffix)
           
static String getDefaultValue(PropertyBean property)
           
static String getEventNameFromEventType(String eventFullClass)
           
static String getGenericsFromProperty(PropertyBean property)
           
static String getMethodNameFromEvent(String methodPrefix, String eventName, String methodSuffix)
           
static String getMethodReaderFromProperty(String propertyName, String propertyClass)
           
static String getPackageFromFullClass(String fullClass)
           
static String getPrefixedPropertyName(String prefix, String propertyName)
           
static String getPropertyClass(PropertyBean property)
           
static String getVariableFromClass(String className)
           
static String getVariableFromName(String name)
           
static boolean isFullClass(String className)
           
static boolean isPrimitiveClass(String className)
           
static String primitiveDefaultValue(String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESERVED_WORDS

public static final Set RESERVED_WORDS

PRIMITIVE_TYPES

public static final Set PRIMITIVE_TYPES
Method Detail

convertClassToSourcePath

public static String convertClassToSourcePath(String className,
                                              String fileExtension)

isFullClass

public static boolean isFullClass(String className)

getGenericsFromProperty

public static String getGenericsFromProperty(PropertyBean property)

getClassFromFullClass

public static String getClassFromFullClass(String fullClass)

getPackageFromFullClass

public static String getPackageFromFullClass(String fullClass)

getConstantNameFromProperty

public static String getConstantNameFromProperty(String propertyName)

getConstantNameFromProperty

public static String getConstantNameFromProperty(String propertyName,
                                                 String constantSuffix)

getPrefixedPropertyName

public static String getPrefixedPropertyName(String prefix,
                                             String propertyName)

getPropertyClass

public static String getPropertyClass(PropertyBean property)

getMethodNameFromEvent

public static String getMethodNameFromEvent(String methodPrefix,
                                            String eventName,
                                            String methodSuffix)

getMethodReaderFromProperty

public static String getMethodReaderFromProperty(String propertyName,
                                                 String propertyClass)

getEventNameFromEventType

public static String getEventNameFromEventType(String eventFullClass)

isPrimitiveClass

public static boolean isPrimitiveClass(String className)

getAlternatePropertyClass

public static String getAlternatePropertyClass(PropertyBean property)

getBoxedClass

public static String getBoxedClass(String className)

primitiveDefaultValue

public static String primitiveDefaultValue(String className)

fill

public static String fill(String base,
                          int length)

getVariableFromClass

public static String getVariableFromClass(String className)

getVariableFromName

public static String getVariableFromName(String name)

convertStringToLiteral

public static String convertStringToLiteral(String value)

convertStringToLiteral

public static String convertStringToLiteral(String className,
                                            String value)

getDefaultValue

public static String getDefaultValue(PropertyBean property)


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.