Class RelativePositionOrderingPolicy

  • 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.

    See Also:
    mmacivor, rbarkhouse - changed to subclass (NodeOrderingPolicy changed to abstract superclass)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appendNode​(org.w3c.dom.Node parent, org.w3c.dom.Node newChild, org.w3c.dom.Node previousSibling)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RelativePositionOrderingPolicy

        public RelativePositionOrderingPolicy()
    • Method Detail

      • appendNode

        public void appendNode​(org.w3c.dom.Node parent,
                               org.w3c.dom.Node newChild,
                               org.w3c.dom.Node previousSibling)
        Specified by:
        appendNode in class NodeOrderingPolicy