com.filenet.wcm.toolkit.server.util.xml
Class WcmXMLSorterProcess

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.util.xml.WcmXMLSorterProcess

public class WcmXMLSorterProcess
extends java.lang.Object

Utility class that handles sorting of the XML returned by Process Java Api.


Constructor Summary
WcmXMLSorterProcess()
           
WcmXMLSorterProcess(java.util.Locale locale)
           
 
Method Summary
 void setDocument(org.w3c.dom.Document doc)
          Sets the XML Document to be sorted.
 void setQueryResultTag(java.lang.String tagName)
          Sets the XML query result tag.
 void setSortField(java.lang.String fieldName)
          Sets the field name to be used as sort key for items.
 void sortXML(boolean accending)
          Sorts the XML Document previously set by setDocument() method.
 void sortXML(org.w3c.dom.Document doc, boolean accending)
          Sorts the XML Document.
 void sortXML(org.w3c.dom.Document doc, java.lang.String sortField, boolean accending)
          Sorts the XML Document using the specified field name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WcmXMLSorterProcess

public WcmXMLSorterProcess()

WcmXMLSorterProcess

public WcmXMLSorterProcess(java.util.Locale locale)
Method Detail

sortXML

public void sortXML(org.w3c.dom.Document doc,
                    java.lang.String sortField,
                    boolean accending)
Sorts the XML Document using the specified field name.

Parameters:
doc - XML Document to be sorted
sortField - field name to be used as sort key
accending - boolean value indicating the direction of the sort.

sortXML

public void sortXML(org.w3c.dom.Document doc,
                    boolean accending)
Sorts the XML Document.

Parameters:
doc - XML Document to be sorted

setSortField

public void setSortField(java.lang.String fieldName)
Sets the field name to be used as sort key for items.

Parameters:
fieldName - field to be used as sort key for items

setDocument

public void setDocument(org.w3c.dom.Document doc)
Sets the XML Document to be sorted.

Parameters:
doc - XML Document to be sorted

setQueryResultTag

public void setQueryResultTag(java.lang.String tagName)
Sets the XML query result tag.

Parameters:
tagName - String tag name

sortXML

public void sortXML(boolean accending)
Sorts the XML Document previously set by setDocument() method.

Parameters:
accending - boolena value indicating the direction of the sort.


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.