public class XmlEdit extends Object
select attribute. Which denotes location
of content you wish to insert/replace. Then it must set either content - path
to location of another XML file that will appear as a child
of elements evaluated by select expression or xml - which denotes
XML content as String. Optionally, attribute can be
defined to identify inserted/replaced content. If attribute is not defined,
content (defined either via xml or content) is
loaded and xpath expression is created from root element's attributes and their values,
otherwise attribute is taken as the only one for
xpath expression.| Constructor and Description |
|---|
XmlEdit() |
XmlEdit(String select,
String xml) |
XmlEdit(String select,
URL content) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute() |
URL |
getContent() |
String |
getSelect() |
String |
getXml() |
void |
setAttribute(String attribute) |
void |
setContent(URL content) |
void |
setSelect(String select) |
void |
setXml(String xml) |
String |
toString() |
XmlEdit |
withAttribute(String attribute) |
public String getAttribute()
public void setAttribute(String attribute)
public void setXml(String xml)
public String getXml()
public String getSelect()
public void setSelect(String select)
public URL getContent()
public void setContent(URL content)
Copyright © 2015 Red Hat, Inc.. All rights reserved.