T - is the generic type of the described SimpleDatatype.V - is the generic type of the datatypes value.public class DatatypeSegmentDescriptorSimpleDatatype<T extends SimpleDatatype<V>,V> extends AbstractDatatypeSegmentDescriptor<T,V>
DatatypeSegmentDescriptor for a
SimpleDatatype.DEFAULT_NAME| Modifier | Constructor and Description |
|---|---|
protected |
DatatypeSegmentDescriptorSimpleDatatype(String name,
Class<V> type)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected V |
doGetSegment(T datatype)
Called from
AbstractDatatypeSegmentDescriptor.getSegment(Object) after validation (null-check). |
static <T extends SimpleDatatype<V>,V> |
newInstance(Class<T> datatype,
ReflectionUtil reflectionUtil)
Creates a new instance of
DatatypeSegmentDescriptorSimpleDatatype for the given
SimpleDatatype Class. |
getName, getSegment, getType, isOptional, toStringprotected DatatypeSegmentDescriptorSimpleDatatype(String name, Class<V> type)
name - - see AbstractDatatypeSegmentDescriptor.getName().type - - see AbstractDatatypeSegmentDescriptor.getType().protected V doGetSegment(T datatype)
AbstractDatatypeSegmentDescriptor.getSegment(Object) after validation (null-check).doGetSegment in class AbstractDatatypeSegmentDescriptor<T extends SimpleDatatype<V>,V>datatype - is the datatype instance. May not be null.segment value.public static <T extends SimpleDatatype<V>,V> DatatypeSegmentDescriptorSimpleDatatype<T,V> newInstance(Class<T> datatype, ReflectionUtil reflectionUtil)
DatatypeSegmentDescriptorSimpleDatatype for the given
SimpleDatatype Class.T - is the generic type of the SimpleDatatype.V - is the generic type of the datatypes value.datatype - is the Class reflecting the SimpleDatatype.reflectionUtil - is the instance of ReflectionUtil to use.DatatypeSegmentDescriptorSimpleDatatype instance.Copyright © 2001–2015 mmm-Team. All rights reserved.