org.deckfour.xes.out
Class XSerializerRegistry

java.lang.Object
  extended by org.deckfour.xes.util.XRegistry<XSerializer>
      extended by org.deckfour.xes.out.XSerializerRegistry

public class XSerializerRegistry
extends XRegistry<XSerializer>

System-wide registry for XES serializer implementations. Applications can use this registry as a convenience to provide an overview about serializeable formats, e.g., in the user interface. Any custom serializer 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(XSerializer a, XSerializer b)
          Subclasses must implement this method.
static XSerializerRegistry 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 XSerializerRegistry instance()
Retrieves the singleton registry instance.


areEqual

protected boolean areEqual(XSerializer a,
                           XSerializer 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<XSerializer>
Parameters:
a - An instance a.
b - Another instance b.
Returns:
Whether the instances a and b are equivalent.