public class Subtree
extends java.lang.Object
Constructor and Description |
---|
Subtree(java.lang.String elemXpath)
Initialises a subtree with only an element XPath.
|
Subtree(java.lang.String elemXpath,
SubtreeMode type)
Initialises a subtree with both element XPath and type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getElemXpath()
Gets the Subtree element XPath.
|
SubtreeMode |
getType()
Gets the Subtree element Type.
|
void |
setElemXpath(java.lang.String elemXpath)
Sets the element XPath.
|
void |
setType(SubtreeMode type)
Sets the element Type.
|
public Subtree(java.lang.String elemXpath, SubtreeMode type)
elemXpath
- The Subtree element XPath.type
- The Subtree type.public Subtree(java.lang.String elemXpath)
elemXpath
- The Subtree element XPath.public java.lang.String getElemXpath()
public void setElemXpath(java.lang.String elemXpath)
elemXpath
- An XPath can be set which will be used to identify the subtree.public SubtreeMode getType()
public void setType(SubtreeMode type)
type
- A Type can be set which will be used to identify content type for the subtree.