T - is the generic type of the Enum to describe.public class DatatypeDescriptorEnum<T extends Enum<T>> extends AbstractDatatypeDescriptor<T>
DatatypeDescriptor for a Enum.| Modifier and Type | Field and Description |
|---|---|
private StringUtil |
stringUtil
The
StringUtil instance. |
| Constructor and Description |
|---|
DatatypeDescriptorEnum(Class<T> datatype,
StringUtil stringUtil)
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, toStringprivate final StringUtil stringUtil
StringUtil instance.public DatatypeDescriptorEnum(Class<T> datatype, StringUtil stringUtil)
datatype - is the Class reflecting the Enum.stringUtil - is the StringUtil to use.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 Enum<T>>segments - are the segment values.Copyright © 2001–2015 mmm-Team. All rights reserved.