|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.configuration.impl.Configuration
class Configuration
Holds configuration information for a particular command or group. Configuration objects
are created and managed by the ConfigurationCache.
| Constructor Summary | |
|---|---|
Configuration(boolean group)
Creates a new configuration object. |
|
| Method Summary | |
|---|---|
(package private) Face |
createFace(java.lang.String context)
Creates a face for the specified context. |
Face |
getFace(java.lang.String context)
Gets the face for the specified context. |
java.util.Collection<Face> |
getFaces()
Gets all the faces defined in this configuration. |
java.lang.String |
getProperty(java.lang.String key)
Gets the value of a system property. |
java.util.Map<java.lang.String,java.lang.String> |
getUserProperties()
Returns a copy of the configurations user properties, or null
if the configuration has no user properties. |
java.lang.String |
getUserProperty(java.lang.String key)
Gets the value of the specified user property. |
boolean |
hasProperties()
|
boolean |
hasUserProperties()
|
boolean |
isGroup()
Checks if this configuration is for a group. |
void |
putProperty(java.lang.String key,
java.lang.String value)
Sets the value for a system property. |
void |
putUserProperty(java.lang.String key,
java.lang.String value)
Set the value for a user property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration(boolean group)
group - true if the configuration is for a CommandGroup,
false otherwise.| Method Detail |
|---|
public void putUserProperty(java.lang.String key,
java.lang.String value)
key - the propery key.value - the property value.
public void putProperty(java.lang.String key,
java.lang.String value)
key - the property key.value - the property value.public java.lang.String getProperty(java.lang.String key)
key - the property key.
null if it wasn't specified.public java.lang.String getUserProperty(java.lang.String key)
key - the property key.
null if it wasn't specified.public boolean isGroup()
true if the configuration is for a group, false otherwise.public Face getFace(java.lang.String context)
context - the face context.
Face createFace(java.lang.String context)
context - the face context.
public java.util.Collection<Face> getFaces()
public boolean hasProperties()
public boolean hasUserProperties()
public java.util.Map<java.lang.String,java.lang.String> getUserProperties()
null
if the configuration has no user properties.
null
if the configuration has no user properties.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||