|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.util.definition.AbstractObjectFactory<T,D>
T
- the supported object typeD
- the supported definition typepublic abstract class AbstractObjectFactory<T,D extends ObjectDefinition<? extends T>>
Provides support for converting certain objects to a definition string and
vice versa based on the ObjectDefinition
ies available for the
supported object type and its sub-types.
Constructor Summary | |
---|---|
AbstractObjectFactory()
Default constructor. |
Method Summary | ||
---|---|---|
|
asString(X object)
Represent the given object as a definition string, so that it can be used to again create an object instance using parse(String) . |
|
protected abstract List<D> |
getDefinitions()
Get all available definitions compatible with the supported type. |
|
T |
parse(String value)
Parse the given definition string and create a CRS definition instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractObjectFactory()
Method Detail |
---|
protected abstract List<D> getDefinitions()
public <X extends T> String asString(X object)
parse(String)
.
X
- the object type, an ObjectDefinition
supporting this
type must be availableobject
- the object to create a string representation for
null
if
no corresponding ObjectDefinition
is availablegetDefinitions()
public T parse(String value)
value
- the definition string to parse
null
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |