public class GeneratorUtility extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
GeneratorUtility()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key)
if the value was found, it will return the value. if not, an empty string will be returned to delete the
variable-entry inside the template.
|
String |
getEditorTypeString(BeanAttribute attr)
evaluates the type of the given attribute to return the name of the constant to define the component.
|
String |
getFormatter(BeanAttribute attr)
override this method to create the desired formatters
|
String |
getMandatoryString(BeanAttribute attr)
Returns the "value" of the mandatory parameter for an BeanAttribute.
|
String |
getValidator(BeanAttribute attr)
override this method to create the desired validators
|
void |
put(String key,
Object value) |
String |
toFirstLowerCase(String string)
firstToLowerCase
|
String |
toFirstUpperCase(String string)
firstToUpperCase
|
String |
toUpperCase(String text)
toUpperCase
|
public String toFirstUpperCase(String string)
string - to convertpublic String toFirstLowerCase(String string)
string - to convertpublic String toUpperCase(String text)
string - to convertpublic String getEditorTypeString(BeanAttribute attr)
attr - beanattribute to evaluatepublic String getMandatoryString(BeanAttribute attr)
attr - bean attributepublic String getValidator(BeanAttribute attr)
attr - bean attribute to evaluatepublic String getFormatter(BeanAttribute attr)
attr - bean attribute to evaluateCopyright © 2012–2018. All rights reserved.