public class JBossSystemPropertiesXMLParser extends Object implements XMLPropertiesParser
<system-properties>
<property name="n1" value="v1"/>
<property name="n2" value="v2"/>
<property name="nN" value="vN"/>
</system-properties>
| Constructor and Description |
|---|
JBossSystemPropertiesXMLParser() |
| Modifier and Type | Method and Description |
|---|---|
List<NodeList> |
getNodeLists(Document document)
Get a list of NodeLists where in each their are Nodes where each Node.Element is a Property with a Name and a Value.
|
String |
getPropertyName(Element element)
The property name for an element in the "Nodelist"
|
String |
getPropertyValue(Element element)
The property value for an element in the "Nodelist"
|
void |
setPropertyValue(Element element,
String newValue)
Sets the property value for an element in the "NodeList".
|
public List<NodeList> getNodeLists(Document document)
XMLPropertiesParsergetNodeLists in interface XMLPropertiesParserdocument - the DOM document to parseNode,
NodeList,
Documentpublic String getPropertyName(Element element)
XMLPropertiesParsergetPropertyName in interface XMLPropertiesParserelement - the DOM element.Elementpublic String getPropertyValue(Element element)
XMLPropertiesParsergetPropertyValue in interface XMLPropertiesParserelement - the DOM element.Elementpublic void setPropertyValue(Element element, String newValue)
XMLPropertiesParsersetPropertyValue in interface XMLPropertiesParserelement - the DOM element.newValue - the new string value of the propertyElement