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,
java.lang.Boolean ordered)
Initialises a subtree with both element XPath and ordered.
|
Subtree(java.lang.String elemXpath,
java.lang.Boolean ordered,
java.util.List<ChildAlignment> childAlignments)
Initialises a subtree with both element XPath and ordered along with the child alignment list.
|
Subtree(java.lang.String elemXpath,
SubtreeMode mode)
Initialises a subtree with both element XPath and mode.
|
Subtree(java.lang.String elemXpath,
SubtreeMode mode,
java.lang.Boolean ordered)
Initialises a subtree with element XPath, mode and ordered.
|
Subtree(java.lang.String elemXpath,
SubtreeMode mode,
java.lang.Boolean ordered,
java.util.List<ChildAlignment> childAlignments)
Initialises a subtree with element XPath, mode and ordered along with the child alignment list.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildAlignment(ChildAlignment childAlignment)
Adds to the list of children alignments.
|
java.util.List<ChildAlignment> |
getChildAlignments()
Gets the list of all children alignment specifiers.
|
java.lang.String |
getElemXpath()
Gets the Subtree element XPath.
|
SubtreeMode |
getMode()
Gets the Subtree element mode.
|
java.lang.Boolean |
isOrdered()
Returns the ordered alignment value.
|
void |
setChildAlignments(java.util.List<ChildAlignment> childAlignments)
Sets the list for children alignment specifiers.
|
void |
setElemXpath(java.lang.String elemXpath)
Sets the element XPath.
|
void |
setMode(SubtreeMode mode)
Sets the element mode.
|
void |
setOrdered(java.lang.Boolean ordered)
Sets the ordered alignment value.
|
public Subtree(java.lang.String elemXpath, SubtreeMode mode)
elemXpath
- The XPath string representing the element location.mode
- The SubtreeMode used to identify content type for the subtree.java.lang.IllegalArgumentException
- if passed elemXpath is invalid.public Subtree(java.lang.String elemXpath, SubtreeMode mode, java.lang.Boolean ordered)
elemXpath
- The XPath string representing the element location.mode
- The SubtreeMode used to identify content type for the subtree.ordered
- The boolean where true represents ordered alignment, and false represents unordered alignment.java.lang.IllegalArgumentException
- if passed elemXpath is invalid.public Subtree(java.lang.String elemXpath, java.lang.Boolean ordered)
elemXpath
- The XPath string representing the element location.ordered
- The boolean where true represents ordered alignment, and false represents unordered alignment.java.lang.IllegalArgumentException
- if passed elemXpath is invalid.public Subtree(java.lang.String elemXpath, java.lang.Boolean ordered, java.util.List<ChildAlignment> childAlignments)
elemXpath
- The XPath string representing the element location.ordered
- The boolean where true represents ordered alignment, and false represents unordered alignment.childAlignments
- The list of ChildAlignment instances specifying children for alignment.java.lang.IllegalArgumentException
- if passed elemXpath is invalid.public Subtree(java.lang.String elemXpath, SubtreeMode mode, java.lang.Boolean ordered, java.util.List<ChildAlignment> childAlignments)
elemXpath
- The XPath string representing the element location.mode
- The SubtreeMode used to identify content type for the subtree.ordered
- The boolean where true represents ordered alignment, and false represents unordered alignment.childAlignments
- The list of ChildAlignment instances specifying children for alignment.java.lang.IllegalArgumentException
- if passed elemXpath is invalid.public Subtree(java.lang.String elemXpath)
elemXpath
- The Subtree element XPath.java.lang.IllegalArgumentException
- if passed elemXpath is invalid.public java.lang.String getElemXpath()
public void setElemXpath(java.lang.String elemXpath)
elemXpath
- An XPath used to identify the subtree.java.lang.IllegalArgumentException
- if passed elemXpath is invalid.public SubtreeMode getMode()
public void setMode(SubtreeMode mode)
mode
- The SubtreeMode used to identify content type for the subtree.public java.util.List<ChildAlignment> getChildAlignments()
public void setChildAlignments(java.util.List<ChildAlignment> childAlignments)
childAlignments
- The list of ChildAlignment instances specifying children for alignment.public void addChildAlignment(ChildAlignment childAlignment)
childAlignment
- The ChildAlignment to be added to the existing list of children alignment specifiers.public java.lang.Boolean isOrdered()
public void setOrdered(java.lang.Boolean ordered)
ordered
- The boolean where true represents ordered alignment, and false represents unordered alignment.