|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.configuration.impl.FaceAttributeParser
com.pietschy.command.configuration.impl.InheritedAttributeParser
abstract class InheritedAttributeParser
Provides the standard implementation for all parsers that parse inherited values. This class ensures the empty values turn off inheritance for the specified attribute.
| Constructor Summary | |
|---|---|
protected |
InheritedAttributeParser(java.lang.String... properties)
Creates a new parser that will handle the specified attribute names. |
| Method Summary | |
|---|---|
void |
parseEmptyImpl(java.lang.String key,
Face face,
ExceptionFactory factory)
Parses empty property values. |
protected void |
parseImpl(java.lang.String key,
java.lang.String value,
Face face,
ExceptionFactory factory)
Parsers the specified key and value and updates the specified face. |
protected abstract java.lang.Object |
parseValue(java.lang.String propertyName,
java.lang.String value,
ExceptionFactory factory)
Abstract method to be implemented by subclasses to parse the actual value. |
| Methods inherited from class com.pietschy.command.configuration.impl.FaceAttributeParser |
|---|
getProperties, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InheritedAttributeParser(java.lang.String... properties)
properties - the property names this parser handles.| Method Detail |
|---|
protected void parseImpl(java.lang.String key,
java.lang.String value,
Face face,
ExceptionFactory factory)
throws ParseException
AttributeValue from the face and configures its value. The value
is parsed using parseValue(String, String, ExceptionFactory).
parseImpl in class FaceAttributeParserkey - the property keyvalue - the property value.face - the face to update.factory - the exception factory to use.
ParseException - if there was an error parsing the value.
protected abstract java.lang.Object parseValue(java.lang.String propertyName,
java.lang.String value,
ExceptionFactory factory)
throws java.lang.Exception
propertyName - the property name.value - the proerty valuefactory - the exception factory to use.
java.lang.Exception - if there was an error parsing the value.
public void parseEmptyImpl(java.lang.String key,
Face face,
ExceptionFactory factory)
null and updates the inherited flag to false.
parseEmptyImpl in class FaceAttributeParserkey - the property key.face - the face to configure.factory - the exception factory to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||