public class RelativePositionOrderingPolicy extends NodeOrderingPolicy
Purpose:An implementation of NodeOrderingPolicy that adds new elements to an XML Document based on the last updated sibling in their context.
Responsibilities:Add a new element as a child based on the provided last updated sibling.
NodeOrderingPolicy
Constructor and Description |
---|
RelativePositionOrderingPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
appendNode(org.w3c.dom.Node parent,
org.w3c.dom.Node newChild,
org.w3c.dom.Node previousSibling) |
public void appendNode(org.w3c.dom.Node parent, org.w3c.dom.Node newChild, org.w3c.dom.Node previousSibling)
appendNode
in class NodeOrderingPolicy