Interface IAttributeType<D>
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
ICategoricalAttributeType,IMultiValueAttributeType,IPrimitiveAttributeType<D>
- All Known Implementing Classes:
BooleanAttributeType,CategoricalAttributeType,MultiValueAttributeType,NumericAttributeType,TimeSeriesAttributeType
public interface IAttributeType<D> extends java.io.SerializableWrapper interface for attribute types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAttributeValue<D>buildAttributeValue(java.lang.Object value)Casts the value to the respective type and returns an attribute value with the creating attribute type as the referenced type.IAttributeValue<D>buildAttributeValue(java.lang.String stringDescription)Builds an attribute value object from a string description.java.lang.StringgetStringDescriptionOfDomain()booleanisValidValue(D value)Validates whether a value conforms to this type.
-
-
-
Method Detail
-
isValidValue
boolean isValidValue(D value)
Validates whether a value conforms to this type.- Parameters:
value- The value to validated.- Returns:
- Returns true if the given value conforms
-
buildAttributeValue
IAttributeValue<D> buildAttributeValue(java.lang.Object value)
Casts the value to the respective type and returns an attribute value with the creating attribute type as the referenced type.- Parameters:
value- The value of the attribute.- Returns:
- An attribute value object holding the value of the attribute and referring to this attribute type.
-
buildAttributeValue
IAttributeValue<D> buildAttributeValue(java.lang.String stringDescription)
Builds an attribute value object from a string description. The attribute value references this attribute type.- Parameters:
stringDescription- A String-format description of the attribute's value.- Returns:
- The attribute value object holding an attribute value interpreting the string description and referring to this attribute type.
-
getStringDescriptionOfDomain
java.lang.String getStringDescriptionOfDomain()
-
-