|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.configuration.impl.DefaultConfigurationParser
class DefaultConfigurationParser
Default parser implementation. This class is responsible for parsing ResourceBundles
and storing their configuration in the ConfigurationCache.
| Constructor Summary | |
|---|---|
DefaultConfigurationParser(ConfigurationCache cache)
Creates a new parser that stores it's configuration in the specified cache. |
|
| Method Summary | |
|---|---|
(package private) AttributeParser |
getActionCommandParser(java.lang.String propertyName)
Gets the AttributeParser for the specified property name. |
(package private) AttributeParser |
getCommandGroupParser(java.lang.String propertyName)
Gets the AttributeParser for the specified property name. |
(package private) FaceAttributeParser |
getFaceParser(java.lang.String propertyName)
Gets the FaceAttributeParser for the specified property name. |
void |
parse(java.util.ResourceBundle bundle)
Parses the specified resource bundle placing the configuration in the cache. |
(package private) void |
parseActionCommandProperty(Configuration config,
PropertyKey key,
java.lang.String value,
ExceptionFactory exceptionFactory)
Invoked to parse an ActionCommand property. |
(package private) void |
parseFaceProperty(Configuration config,
PropertyKey key,
java.lang.String value,
ExceptionFactory exceptionFactory)
Invoked to parse a Face property. |
(package private) void |
parseGroupProperty(Configuration config,
PropertyKey key,
java.lang.String value,
ExceptionFactory exceptionFactory)
Invoked to parse an CommandGroup property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultConfigurationParser(ConfigurationCache cache)
cache - the configuration cache in which to store the configuration.| Method Detail |
|---|
public void parse(java.util.ResourceBundle bundle)
throws ParseException
parse in interface ConfigurationParserbundle - the bundle to parse.
ParseException - if there was a problem parsing the configuration.
void parseActionCommandProperty(Configuration config,
PropertyKey key,
java.lang.String value,
ExceptionFactory exceptionFactory)
throws ParseException
config - the command configurationkey - the property keyvalue - the property value.exceptionFactory - the exception factory to use.
ParseException - if there was an error parsing the property.AttributeParser getActionCommandParser(java.lang.String propertyName)
AttributeParser for the specified property name.
propertyName - the property name.
void parseGroupProperty(Configuration config,
PropertyKey key,
java.lang.String value,
ExceptionFactory exceptionFactory)
throws ParseException
config - the group configurationkey - the property keyvalue - the property value.exceptionFactory - the exception factory to use.
ParseException - if there was an error parsing the property.AttributeParser getCommandGroupParser(java.lang.String propertyName)
AttributeParser for the specified property name.
propertyName - the property name.
void parseFaceProperty(Configuration config,
PropertyKey key,
java.lang.String value,
ExceptionFactory exceptionFactory)
throws ParseException
config - the command configurationkey - the property keyvalue - the property value.exceptionFactory - the exception factory to use.
ParseException - if there was an error parsing the property.FaceAttributeParser getFaceParser(java.lang.String propertyName)
FaceAttributeParser for the specified property name.
propertyName - the property name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||