ca.quine.factorygen.test.marshaller
Class ArrayListMarshaller
java.lang.Object
|
+--ca.quine.factorygen.test.marshaller.ArrayListMarshaller
- All Implemented Interfaces:
- IMarshaller, IRegistrant
- public class ArrayListMarshaller
- extends Object
- implements IMarshaller
Method Summary |
Object[] |
getRegistrationKeys()
Returns an array of Objects, each one implementing hashCode
and equals , which is the group of keys by which the
implementor can be obtained from the Registrar. |
void |
marshal(StringBuffer sb,
Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayListMarshaller
public ArrayListMarshaller()
getRegistrationKeys
public Object[] getRegistrationKeys()
- Description copied from interface:
IRegistrant
- Returns an array of Objects, each one implementing
hashCode
and equals
, which is the group of keys by which the
implementor can be obtained from the Registrar. For a "marshaller" that
knows how to marshal a particular Object, the Class (or classes) of the
Object might be used as a key (or keys), or a String (or Strings)
representing the name of the type (or types) handled by the marshaller
could be used as the key (or keys). For a message handler, an Integer
(or Integers) representing the message type (or types) could be used as
the key (or keys).
- Specified by:
getRegistrationKeys
in interface IRegistrant
- Returns:
- An array of Objects that represent the kinds of things the
implementor can handle.
marshal
public void marshal(StringBuffer sb,
Object object)
throws ClassCastException,
IllegalArgumentException
- Specified by:
marshal
in interface IMarshaller
ClassCastException
IllegalArgumentException