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, setXmlType
getComponentType, getOrdinal, getXmlName, getXmlNamespace, getXmlPrefix, isXmlNamespaceAware, setOrdinal, setXmlName, setXmlNamespace, setXmlNamespaceAware, setXmlPrefix
add, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toParamString, toString, updateReferences
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public SimplePropertyConfig()
public String getTypeHandler()
public void setTypeHandler(String handler)
handler
- the name of a custom type handlerpublic TypeHandler getTypeHandlerInstance()
TypeHandler
public void setTypeHandlerInstance(TypeHandler typeHandlerInstance)
typeHandlerInstance
- the TypeHandler
public String getFormat()
SimpleDateFormat
,
DecimalFormat
public void setFormat(String format)
format
- the date or number format patternSimpleDateFormat
,
DecimalFormat