public class DataType<T> extends Object implements Descriptive, HasFeatures, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_FORMAT
The feature name for the format.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DataType(DataTypeKind kind,
String name) |
public static final String FEATURE_FORMAT
protected DataType(DataTypeKind kind, String name)
public DataType<T> withDefaultValue(AnnotatedValue<T> value)
public DataType<T> withProvided(ProvidedMeta provided)
public DataTypeKind getKind()
public String getRegisteredType()
public void setRegisteredType(String registeredType)
public String getName()
DescriptivegetName in interface Descriptivepublic void setName(String name)
DescriptivesetName in interface Descriptivename - the name.public String getLabel()
DescriptivegetLabel in interface Descriptivepublic void setLabel(String label)
DescriptivesetLabel in interface Descriptivelabel - the label.public String getDescription()
DescriptivegetDescription in interface Descriptivepublic void setDescription(String description)
DescriptivesetDescription in interface Descriptivedescription - the description.public boolean isAnnotated()
public void setAnnotated(boolean annotated)
public String getFormat()
public void setFormat(String format)
public Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
public boolean isNullable()
public void setNullable(boolean nullable)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public Map<String,Object> getFeatures()
HasFeaturesgetFeatures in interface HasFeaturesnull.public void setFeatures(Map<String,Object> features)
HasFeaturesnull.setFeatures in interface HasFeaturesfeatures - the features.public boolean isOptional()
public void setOptional(boolean optional)
public ProvidedMeta getProvided()
public void setProvided(ProvidedMeta provided)
Copyright © 2016–2021 Softelnet. All rights reserved.