T
- the type of the data type nameD
- the type of the designatorpublic class EntryPoint<T,D> extends Object
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 and Description |
---|
EntryPoint(T dataTypeName,
D designator,
Validator validator)
Constructs a entry point given data type name and a designator.
|
Modifier and Type | Method and Description |
---|---|
T |
getDataTypeName()
Returns the data type name.
|
D |
getDesignator()
Returns the designator.
|
Validator |
getValidator()
Returns the validator.
|
public final D getDesignator()
public final T getDataTypeName()
public final Validator getValidator()
Copyright © 2014. All rights reserved.