|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigElement
Definition of a configuration element
| Method Summary | |
|---|---|
ConfigElement |
combine(ConfigElement configElement)
Combines the given config element with this config element and returns a new instance containing the resulting combination. |
String |
getAttribute(String name)
Gets the value of the attrbiute with the given name |
int |
getAttributeCount()
Returns the number of attributes this config element has |
Map<String,String> |
getAttributes()
Returns the list of attributes held by this config element |
ConfigElement |
getChild(String name)
Returns a child config element of the given name |
int |
getChildCount()
Returns the number of children this config element has |
List<ConfigElement> |
getChildren()
Returns a list of children held by this ConfigElement |
List<ConfigElement> |
getChildren(String name)
Returns a list of children held by this ConfigElement with the given name. |
String |
getChildValue(String name)
Shortcut method to return a child config element value of the given name. |
String |
getName()
Returns the name of this config element |
String |
getValue()
Gets the value of this config element. |
boolean |
hasAttribute(String name)
Determines whether the config element has the named attribute |
boolean |
hasChildren()
Determines whether this config element has any children. |
| Method Detail |
|---|
String getName()
String getAttribute(String name)
name - The name of the attrbiute to get the value for
Map<String,String> getAttributes()
boolean hasAttribute(String name)
name - Name of the attribute to check existence for
int getAttributeCount()
String getValue()
ConfigElement getChild(String name)
name - The name of the config element to retrieve
String getChildValue(String name)
name - The name of the config element to retrieve the value from.
List<ConfigElement> getChildren(String name)
name - The name of the config element to retrieve
List<ConfigElement> getChildren()
boolean hasChildren()
int getChildCount()
ConfigElement combine(ConfigElement configElement)
configElement - The config element to combine into this one
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||