electric.xml.canonical
Class NamespaceComparator

java.lang.Object
  extended byelectric.xml.canonical.NamespaceComparator
All Implemented Interfaces:
IComparator, IXMLConstants

public class NamespaceComparator
extends java.lang.Object
implements IComparator, IXMLConstants

NamespaceComparitor Compare Namespaces for canonicalization ordering.

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.xml.IXMLConstants
ATTLIST_START, ATTLIST_STOP, CDATA, CDATA_START, CDATA_STOP, CLOSE_TAG, COLON, COMMENT_START, COMMENT_STOP, DOCTYPE_START, DOCTYPE_STOP, ELEMENTDECL_START, ELEMENTDECL_STOP, ENCODING, ENTITYDECL_START, ENTITYDECL_STOP, ID, ID_CASE, INSTRUCTION_START, INSTRUCTION_STOP, NEGATIVE_INFINITY, NOT_A_NUMBER, NOTATIONDECL_START, NOTATIONDECL_STOP, NULL, OPEN_TAG, POSITIVE_INFINITY, PUBLIC, SPECIALS, STANDALONE, SUBSTITUTES, SYSTEM, UNDEFINED, VERSION, XML, XML_NAMESPACE, XMLDECL_START, XMLDECL_STOP, XMLNS, XMLNS_NAMESPACE
 
Constructor Summary
NamespaceComparator()
           
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Compares its two arguments for order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceComparator

public NamespaceComparator()
Method Detail

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Specified by:
compare in interface IComparator
Parameters:
a -
b -


copyright© 2001-2004 by webMethods All Rights Reserved.