T
- is the generic type of the SimpleDatatype
to describe.public class DatatypeDescriptorSimpleDatatype<T extends SimpleDatatype<?>> extends AbstractDatatypeDescriptor<T>
DatatypeDescriptor
for a
SimpleDatatype
.Modifier and Type | Field and Description |
---|---|
private Constructor<T> |
constructor |
Constructor and Description |
---|
DatatypeDescriptorSimpleDatatype(Class<T> datatype,
ReflectionUtil reflectionUtil)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected T |
doCreate(Object... segments)
Called from
AbstractDatatypeDescriptor.create(Object...) after input validation has been performed. |
create, getDatatype, getSegment, getSegmentDescriptors, toString
private final Constructor<T extends SimpleDatatype<?>> constructor
doCreate(Object...)
public DatatypeDescriptorSimpleDatatype(Class<T> datatype, ReflectionUtil reflectionUtil)
datatype
- is the Class
reflecting the SimpleDatatype
.reflectionUtil
- is the ReflectionUtil
instance.protected T doCreate(Object... segments)
AbstractDatatypeDescriptor.create(Object...)
after input validation has been performed. Implement this method
and do not worry about null values, wrong array size, etc.doCreate
in class AbstractDatatypeDescriptor<T extends SimpleDatatype<?>>
segments
- are the segment values
.Copyright © 2001–2014 mmm-Team. All rights reserved.