|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.common.mapping.EntryPoint<T,D>
T
- the type of the data type nameD
- the type of the designatorpublic class EntryPoint<T,D>
An entry point describes an item of the respective format that should be serialized or deserialized. An entry
point is required for every type of object which will be passed to Serializer.write(java.lang.Object)
or which should be
returned from Deserializer.next()
and only for these objects (not for the objects related to these ones).
Each entry point consists of the following parts:
1) A data type name which unambiguously maps to a TypeMapping
.
2) A designator that designates the item of the respective format (e. g. the name of the xml element).
3) An optional Validator
.
Instances of this class are immutable and thread-safe. This must be true for all subclasses, too.
Constructor Summary | |
---|---|
EntryPoint(T dataTypeName,
D designator,
Validator validator)
Constructs a entry point given data type name and a designator. |
Method Summary | |
---|---|
T |
getDataTypeName()
Returns the data type name. |
D |
getDesignator()
Returns the designator. |
Validator |
getValidator()
Returns the validator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryPoint(T dataTypeName, D designator, Validator validator)
dataTypeName
- the data type namedesignator
- the designatorvalidator
- the validator; may be nullMethod Detail |
---|
public final D getDesignator()
public final T getDataTypeName()
public final Validator getValidator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |