org.deckfour.xes.in
Class XParserRegistry

java.lang.Object
  extended by org.deckfour.xes.util.XRegistry<XParser>
      extended by org.deckfour.xes.in.XParserRegistry

public class XParserRegistry
extends XRegistry<XParser>

System-wide registry for XES parser implementations. Applications can use this registry as a convenience to provide an overview about parseable formats, e.g., in the user interface. Any custom parser implementation can be registered with this registry, so that it transparently becomes available also to any other using application.

Author:
Christian W. Guenther (christian@deckfour.org)

Method Summary
protected  boolean areEqual(XParser a, XParser b)
          Subclasses must implement this method.
static XParserRegistry instance()
          Retrieves the singleton registry instance.
 
Methods inherited from class org.deckfour.xes.util.XRegistry
currentDefault, getAvailable, isContained, register, setCurrentDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static XParserRegistry instance()
Retrieves the singleton registry instance.


areEqual

protected boolean areEqual(XParser a,
                           XParser b)
Description copied from class: XRegistry
Subclasses must implement this method. It is used by the registry to ensure that no duplicates are inserted.

Specified by:
areEqual in class XRegistry<XParser>
Parameters:
a - An instance a.
b - Another instance b.
Returns:
Whether the instances a and b are equivalent.