org.foray.fotree.axsl
Class AbstractAxslProperty

java.lang.Object
  extended by org.foray.fotree.Property
      extended by org.foray.fotree.axsl.AbstractAxslProperty
Direct Known Subclasses:
AxslEnumerated

public abstract class AbstractAxslProperty
extends Property

Superclass for properties in the "axsl:" namespace.


Field Summary
 
Fields inherited from class org.foray.fotree.Property
PRECEDENCE_FORCE
 
Constructor Summary
AbstractAxslProperty()
           
 
Method Summary
protected  AxslPropertyKeyword checkKeywords(AxslValue[] validKeywords, String possibleKeyword)
          Checks the keywords for this property, returning an appropriate property value if a keyword is detected.
abstract  AxslProperty getPropertyType()
          Returns the specific type for this property.
protected abstract  AxslValue[] getValidKeywords()
          Returns the valid keywords for this property.
protected  PropertyValue standardParse(FObj fobj, String rawPropertyValue)
          Handles the standard parsing of a property value.
 
Methods inherited from class org.foray.fotree.Property
convertNumericToInteger, convertValueToLength, getBasePropertyName, getKeywordIndex, getKeywordInSet, getSubPropertyName, invalidPropertyName, keywordInSet, unexpectedInitialValueArgument, unexpectedRetrieval, unexpectedValue, unexpectedValue, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAxslProperty

public AbstractAxslProperty()
Method Detail

getPropertyType

public abstract AxslProperty getPropertyType()
Returns the specific type for this property.

Specified by:
getPropertyType in class Property
Returns:
The specific type for this property.

standardParse

protected PropertyValue standardParse(FObj fobj,
                                      String rawPropertyValue)
                               throws PropertyException
Handles the standard parsing of a property value.

Parameters:
fobj - The FObj to which this property belongs.
rawPropertyValue - String containing the raw property value.l
Returns:
The PropertyValue instance created by the parser.
Throws:
PropertyException - If the input is inconsistent.

getValidKeywords

protected abstract AxslValue[] getValidKeywords()
Returns the valid keywords for this property.

Returns:
The valid keywords for this property.

checkKeywords

protected AxslPropertyKeyword checkKeywords(AxslValue[] validKeywords,
                                            String possibleKeyword)
Checks the keywords for this property, returning an appropriate property value if a keyword is detected.

Parameters:
validKeywords - The array of valid keywords.
possibleKeyword - The token to be evaluated against the valid keywords.
Returns:
If possibleKeyword is found in the validKeywords, return an appropriate property value instance, otherwise returns null.


Copyright © 2017. All rights reserved.