public class AnnotatedValue<T> extends Object implements DecoratedValue<T>, HasFeatures
| Modifier | Constructor and Description |
|---|---|
protected |
AnnotatedValue() |
|
AnnotatedValue(T value) |
|
AnnotatedValue(T value,
String valueLabel,
String valueDescription,
Map<String,Object> features,
String typeLabel,
String typeDescription) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getFeatures()
Returns the features.
|
String |
getTypeDescription() |
String |
getTypeLabel() |
T |
getValue() |
String |
getValueDescription() |
String |
getValueLabel() |
void |
setFeatures(Map<String,Object> features)
Sets the features.
|
void |
setTypeDescription(String typeDescription) |
void |
setTypeLabel(String typeLabel) |
void |
setValue(T value) |
void |
setValueDescription(String valueDescription) |
void |
setValueLabel(String valueLabel) |
AnnotatedValue<T> |
withFeature(String name,
Object value) |
AnnotatedValue<T> |
withFeatures(Map<String,Object> features) |
AnnotatedValue<T> |
withTypeDescription(String typeDescription) |
AnnotatedValue<T> |
withTypeLabel(String typeLabel) |
AnnotatedValue<T> |
withValueDescription(String valueDescription) |
AnnotatedValue<T> |
withValueLabel(String valueLabel) |
protected AnnotatedValue()
public AnnotatedValue(T value, String valueLabel, String valueDescription, Map<String,Object> features, String typeLabel, String typeDescription)
public AnnotatedValue(T value)
public T getValue()
getValue in interface DecoratedValue<T>public void setValue(T value)
setValue in interface DecoratedValue<T>public String getValueLabel()
public void setValueLabel(String valueLabel)
public String getValueDescription()
public void setValueDescription(String valueDescription)
public Map<String,Object> getFeatures()
HasFeaturesgetFeatures in interface HasFeaturesnull.public void setFeatures(Map<String,Object> features)
HasFeaturesnull.setFeatures in interface HasFeaturesfeatures - the features.public String getTypeLabel()
public void setTypeLabel(String typeLabel)
public String getTypeDescription()
public void setTypeDescription(String typeDescription)
public AnnotatedValue<T> withValueLabel(String valueLabel)
public AnnotatedValue<T> withValueDescription(String valueDescription)
public AnnotatedValue<T> withFeatures(Map<String,Object> features)
public AnnotatedValue<T> withFeature(String name, Object value)
public AnnotatedValue<T> withTypeLabel(String typeLabel)
public AnnotatedValue<T> withTypeDescription(String typeDescription)
Copyright © 2016–2021 Softelnet. All rights reserved.