|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.library.impl.DefaultDictionary
Utility class used for construction of a module model from an XML source.
Constructor Summary | |
DefaultDictionary(DefaultDictionary parent,
AbstractDirective directive)
Creation of a new dictionary. |
Method Summary | |
boolean |
getBooleanProperty(String key,
boolean value)
Return an boolean property value. |
int |
getIntegerProperty(String key,
int value)
Return an integer property value. |
String[] |
getLocalPropertyNames()
Return the local property names associated with the dictionary. |
String |
getProperty(String key)
Return a property value. |
String |
getProperty(String key,
String value)
Return a property value. |
String[] |
getPropertyNames()
Return the property names associated with the dictionary. |
String |
resolve(String value)
Evaluate and expand any symbolic references in the supplied value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultDictionary(DefaultDictionary parent, AbstractDirective directive)
parent
- the parent dictionary (possibly null)directive
- an abstract directive containing local propertiesMethod Detail |
public String[] getPropertyNames()
getPropertyNames
in interface Dictionary
public String[] getLocalPropertyNames()
getLocalPropertyNames
in interface Dictionary
public String getProperty(String key)
getProperty
in interface Dictionary
key
- the property key
public String getProperty(String key, String value)
getProperty
in interface Dictionary
key
- the property keyvalue
- the default value
public int getIntegerProperty(String key, int value)
key
- the property keyvalue
- the default value
NumberFormatException
- if underlying property value
cannot be resolved to an integerpublic boolean getBooleanProperty(String key, boolean value)
key
- the property keyvalue
- the default value
NumberFormatException
- if underlying property value
cannot be resolved to an integerpublic String resolve(String value)
resolve
in interface Dictionary
value
- the value to resolve
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |