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)
XMLPropertiesParser
getNodeLists
in interface XMLPropertiesParser
document
- the DOM document to parseNode
,
NodeList
,
Document
public String getPropertyName(Element element)
XMLPropertiesParser
getPropertyName
in interface XMLPropertiesParser
element
- the DOM element.Element
public String getPropertyValue(Element element)
XMLPropertiesParser
getPropertyValue
in interface XMLPropertiesParser
element
- the DOM element.Element
public void setPropertyValue(Element element, String newValue)
XMLPropertiesParser
setPropertyValue
in interface XMLPropertiesParser
element
- the DOM element.newValue
- the new string value of the propertyElement