de.ispsoft.jaxme
Class ComparatorFactory

java.lang.Object
  extended byde.ispsoft.jaxme.ComparatorFactory

public abstract class ComparatorFactory
extends java.lang.Object

A superclass for Comparator factories, as created by the ComparatorWriter.

Comparators are implementing the singleton pattern. Any concrete subclass has to implement a method like

   public static ComparatorFactory getInstance();
 

Author:
Jochen Wiedmann

Field Summary
protected  java.util.Map comparators
          Contains all comparators for the map.
 
Constructor Summary
protected ComparatorFactory()
          Creates a new instance of ComparatorFactory
 
Method Summary
 java.util.Comparator getAttributeComparator(java.lang.String pNamespaceUri, java.lang.String pLocalName)
           
 java.util.Comparator getElementComparator(java.lang.String pNamespaceUri, java.lang.String pLocalName)
           
protected abstract  void init()
          Initializes the Map of comparators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comparators

protected java.util.Map comparators

Contains all comparators for the map.

Constructor Detail

ComparatorFactory

protected ComparatorFactory()
Creates a new instance of ComparatorFactory

Method Detail

init

protected abstract void init()

Initializes the Map of comparators.


getAttributeComparator

public java.util.Comparator getAttributeComparator(java.lang.String pNamespaceUri,
                                                   java.lang.String pLocalName)

getElementComparator

public java.util.Comparator getElementComparator(java.lang.String pNamespaceUri,
                                                 java.lang.String pLocalName)