public abstract class SimplePropertyConfig extends PropertyConfig
TypeHandler.JSON_TYPE_ARRAY, JSON_TYPE_BOOLEAN, JSON_TYPE_NONE, JSON_TYPE_NUMBER, JSON_TYPE_OBJECT, JSON_TYPE_STRING| Constructor and Description |
|---|
SimplePropertyConfig()
Constructs a new SimplePropertyConfig.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat()
Returns the pattern used by date and number type handlers to parse
and format the property value.
|
String |
getTypeHandler()
Returns the name of the custom type handler used for type
conversion by this component, or null if the default
type handler is sufficient.
|
TypeHandler |
getTypeHandlerInstance()
Returns the type handler.
|
void |
setFormat(String format)
Sets the pattern used by date and number type handlers to parse
and format the property value.
|
void |
setTypeHandler(String handler)
Sets the name of the custom type handler to use for type
conversion by this component.
|
void |
setTypeHandlerInstance(TypeHandler typeHandlerInstance)
Sets the type handler.
|
getCollection, getGetter, getJsonArrayIndex, getJsonName, getJsonType, getKey, getLabel, getMaxOccurs, getMaxOccursRef, getMaxSize, getMinOccurs, getMinOccursRef, getMinSize, getOccursRef, getPosition, getSetter, getType, getUntil, getXmlType, isBound, isCollection, isIdentifier, isJsonArray, isLazy, isNillable, isRepeating, isSupportedChild, setBound, setCollection, setGetter, setIdentifier, setJsonArray, setJsonArrayIndex, setJsonName, setJsonType, setLabel, setLazy, setMaxOccurs, setMaxOccursRef, setMaxSize, setMinOccurs, setMinOccursRef, setMinSize, setNillable, setOccursRef, setPosition, setSetter, setType, setUntil, setXmlTypegetComponentType, getOrdinal, getXmlName, getXmlNamespace, getXmlPrefix, isXmlNamespaceAware, setOrdinal, setXmlName, setXmlNamespace, setXmlNamespaceAware, setXmlPrefixadd, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toParamString, toString, updateReferencesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SimplePropertyConfig()
public String getTypeHandler()
public void setTypeHandler(String handler)
handler - the name of a custom type handlerpublic TypeHandler getTypeHandlerInstance()
TypeHandlerpublic void setTypeHandlerInstance(TypeHandler typeHandlerInstance)
typeHandlerInstance - the TypeHandlerpublic String getFormat()
SimpleDateFormat,
DecimalFormatpublic void setFormat(String format)
format - the date or number format patternSimpleDateFormat,
DecimalFormat