|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.configuration.impl.FaceAttributeParser
abstract class FaceAttributeParser
The base class for all Face Attribute parsers.
| Constructor Summary | |
|---|---|
protected |
FaceAttributeParser(java.lang.String... properties)
Creates a new instance for the specified properties. |
| Method Summary | |
|---|---|
java.lang.String[] |
getProperties()
Gets the properties this parser is handling. |
void |
parse(java.lang.String propertyName,
java.lang.String value,
Face face,
ExceptionFactory factory)
Invoked to parse the specified property and update the specified face. |
abstract void |
parseEmptyImpl(java.lang.String propertyName,
Face face,
ExceptionFactory factory)
Invoked to parse empty property values. |
protected abstract void |
parseImpl(java.lang.String propertyName,
java.lang.String value,
Face face,
ExceptionFactory factory)
Invoked to parse non empty property values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected FaceAttributeParser(java.lang.String... properties)
command@face.text=_File.
Parsers can be configured to handle multiple properties. An example would be icon parsers where there are many icon types but they are all handled identically.
properties - the property names this parser will handle.| Method Detail |
|---|
public final void parse(java.lang.String propertyName,
java.lang.String value,
Face face,
ExceptionFactory factory)
throws ParseException
parseImpl(String, String, Face, ExceptionFactory)
or parseEmptyImpl(String, Face, ExceptionFactory) appropriately.
propertyName - the property name being parsed.value - the property value.face - the face to be configured.factory - the exception factory.
ParseException - if there was an error parsing the property.
protected abstract void parseImpl(java.lang.String propertyName,
java.lang.String value,
Face face,
ExceptionFactory factory)
throws ParseException
propertyName - the property name.value - the property value.face - the face to configure.factory - the exception factory.
ParseException - if there was an error parsing the property.
public abstract void parseEmptyImpl(java.lang.String propertyName,
Face face,
ExceptionFactory factory)
throws ParseException
propertyName - the property name.face - the face to configure.factory - the exception factory to use.
ParseException - if there was an error parsing the property.public java.lang.String[] getProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||