DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.input
Class ElementsOrderer

java.lang.Object
  extended by org.dlese.dpc.schemedit.input.ElementsOrderer

public class ElementsOrderer
extends Object

Orders instance doc elements based an "ordering" attribute. For example, the following elements

  • <foo order="2" key="blue" />
  • <foo order="1" key="red" /> would be ordered as:
  • <foo order="1" key="red" />
  • <foo order="2" key="blue" /> based on an orderering attribute of "order".

    Author:
    ostwald

    Nested Class Summary
     class ElementsOrderer.ElementOrderComparator
              Comparator to order elements, using a specified "order" attribute.
     
    Method Summary
    static void main(String[] args)
              The main program for the ElementsOrderer class
    static void orderElements(Document doc, String orderSpec)
              NOT YET DOCUMENTED
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Method Detail

    orderElements

    public static void orderElements(Document doc,
                                     String orderSpec)
    NOT YET DOCUMENTED

    Parameters:
    doc - NOT YET DOCUMENTED
    orderSpec - NOT YET DOCUMENTED

    main

    public static void main(String[] args)
                     throws Exception
    The main program for the ElementsOrderer class

    Parameters:
    args - The command line arguments
    Throws:
    Exception - NOT YET DOCUMENTED

    DLESE Tools
    v1.6.0