public class StringAttributeSpecification extends java.lang.Object implements AttributeSpecification
Constructor and Description |
---|
StringAttributeSpecification(java.lang.String attributeName,
java.util.List<java.lang.String> attributePossibleValues) |
StringAttributeSpecification(java.lang.String attributeName,
java.lang.String[] attributePossibleValues) |
Modifier and Type | Method and Description |
---|---|
Attribute |
createAttribute(java.lang.String rawValue) |
java.lang.String |
getAttributeName() |
boolean |
isValid(java.lang.String value) |
java.util.List<java.lang.String> |
possibleAttributeValues() |
public StringAttributeSpecification(java.lang.String attributeName, java.util.List<java.lang.String> attributePossibleValues)
public StringAttributeSpecification(java.lang.String attributeName, java.lang.String[] attributePossibleValues)
public boolean isValid(java.lang.String value)
isValid
in interface AttributeSpecification
public java.lang.String getAttributeName()
getAttributeName
in interface AttributeSpecification
public java.util.List<java.lang.String> possibleAttributeValues()
public Attribute createAttribute(java.lang.String rawValue)
createAttribute
in interface AttributeSpecification