T
- The type of object for which this FormatManager provides servicespublic interface FormatManager<T>
Modifier and Type | Method and Description |
---|---|
T |
convert(java.lang.String inputStr)
Converts the given String into an object of the type for which this
FormatManager provides services.
|
Indirect<T> |
convertIndirect(java.lang.String inputStr)
Converts the given String into an Indirect, which is capable of producing
an object of the type for which this FormatManager provides services.
|
ObjectContainer<T> |
convertObjectContainer(java.lang.String inputStr)
Converts the given String into an ObjectContainer which contains zero or
more objects of the type of object upon which this FormatManager
operates.
|
FormatManager<?> |
getComponentManager()
Returns the FormatManager for a component of the format managed by this
FormatManager, much like getComponentClass() on Class.class can return
the component in an array.
|
java.lang.String |
getIdentifierType()
Returns an identifier indicating the type of object upon which this
FormatManager operates.
|
java.lang.Class<T> |
getManagedClass()
Returns the Class of the type of object upon which this FormatManager
operates.
|
java.lang.String |
unconvert(T obj)
Serializes (unconverts) the given object into a human-readable serialized
form.
|
T convert(java.lang.String inputStr)
inputStr
- The input String which should be converted into the
appropriate objectjava.lang.IllegalArgumentException
- if the given String is not a properly formatted String for
creation of the appropriate type of objectIndirect<T> convertIndirect(java.lang.String inputStr)
inputStr
- The input String which should be converted into the
appropriate objectjava.lang.IllegalArgumentException
- if the given String is not a properly formatted String for
creation of the appropriate type of objectjava.lang.String unconvert(T obj)
obj
- The object to be converted into a human-readable serialized
formjava.lang.Class<T> getManagedClass()
java.lang.String getIdentifierType()
ObjectContainer<T> convertObjectContainer(java.lang.String inputStr)
inputStr
- The String to be converted into an ObjectContainer which
contains zero or more objects of the type of object upon which
this FormatManager operatesjava.lang.IllegalArgumentException
- if the given String is not a properly formatted String for
creation of the appropriate type of ObjectContainerFormatManager<?> getComponentManager()