aima.learning.framework
Class StringAttributeSpecification
java.lang.Object
aima.learning.framework.StringAttributeSpecification
- All Implemented Interfaces:
- AttributeSpecification
public class StringAttributeSpecification
- extends java.lang.Object
- implements AttributeSpecification
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringAttributeSpecification
public StringAttributeSpecification(java.lang.String attributeName,
java.util.List<java.lang.String> attributePossibleValues)
StringAttributeSpecification
public StringAttributeSpecification(java.lang.String attributeName,
java.lang.String[] attributePossibleValues)
isValid
public boolean isValid(java.lang.String value)
- Specified by:
isValid
in interface AttributeSpecification
getAttributeName
public java.lang.String getAttributeName()
- Specified by:
getAttributeName
in interface AttributeSpecification
- Returns:
- Returns the attributeName.
possibleAttributeValues
public java.util.List<java.lang.String> possibleAttributeValues()
createAttribute
public Attribute createAttribute(java.lang.String rawValue)
- Specified by:
createAttribute
in interface AttributeSpecification