aima.learning.framework
Class StringAttributeSpecification

java.lang.Object
  extended by aima.learning.framework.StringAttributeSpecification
All Implemented Interfaces:
AttributeSpecification

public class StringAttributeSpecification
extends java.lang.Object
implements AttributeSpecification


Constructor Summary
StringAttributeSpecification(java.lang.String attributeName, java.util.List<java.lang.String> attributePossibleValues)
           
StringAttributeSpecification(java.lang.String attributeName, java.lang.String[] attributePossibleValues)
           
 
Method Summary
 Attribute createAttribute(java.lang.String rawValue)
           
 java.lang.String getAttributeName()
           
 boolean isValid(java.lang.String value)
           
 java.util.List<java.lang.String> possibleAttributeValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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