public final class DomLocation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DomLocation.Relation
BEFORE: sibling of node, appears before it in child order
AFTER: sibing of node, appears after it in child order
INSIDE: last child of node
|
Modifier and Type | Method and Description |
---|---|
static DomLocation |
create(org.w3c.dom.Node relativeTo,
DomLocation.Relation relation)
Creates a new DomLocation relative to a certain node.
|
DomLocation.Relation |
getRelation()
Returns the location reference relative to the node from getRelativeTo(.).
|
org.w3c.dom.Node |
getRelativeTo()
Retrieves the node that is the point of reference.
|
public static DomLocation create(org.w3c.dom.Node relativeTo, DomLocation.Relation relation)
relativeTo
- The node that is the point of referencerelation
- The location reference relative to the nodepublic org.w3c.dom.Node getRelativeTo()
public DomLocation.Relation getRelation()