public class MultiValueAttributeType extends java.lang.Object implements IMultiValueAttributeType
| Constructor and Description |
|---|
MultiValueAttributeType(java.util.Set<java.lang.String> domain)
Constructor setting the domain of the multi-value attribute values.
|
| Modifier and Type | Method and Description |
|---|---|
IAttributeValue<java.util.Collection<java.lang.String>> |
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<java.util.Collection<java.lang.String>> |
buildAttributeValue(java.lang.String stringDescription)
Builds an attribute value object from a string description.
|
java.util.Set<java.lang.String> |
getDomain() |
boolean |
isValidValue(java.util.Collection<java.lang.String> value)
Validates whether a value conforms to this type.
|
public MultiValueAttributeType(java.util.Set<java.lang.String> domain)
domain - The domain multi-value values may stem from.public java.util.Set<java.lang.String> getDomain()
getDomain in interface IMultiValueAttributeTypepublic boolean isValidValue(java.util.Collection<java.lang.String> value)
IAttributeTypeisValidValue in interface IAttributeType<java.util.Collection<java.lang.String>>value - The value to validated.public IAttributeValue<java.util.Collection<java.lang.String>> buildAttributeValue(java.lang.Object value)
IAttributeTypebuildAttributeValue in interface IAttributeType<java.util.Collection<java.lang.String>>value - The value of the attribute.public IAttributeValue<java.util.Collection<java.lang.String>> buildAttributeValue(java.lang.String stringDescription)
IAttributeTypebuildAttributeValue in interface IAttributeType<java.util.Collection<java.lang.String>>stringDescription - A String-format description of the attribute's value.