com.twistedmatrix.spread
Class Jellyable

java.lang.Object
  |
  +--com.twistedmatrix.spread.Jellyable

public class Jellyable
extends java.lang.Object

A class whose instances may be jellied. Subclasses must implement the following method: public static unjellyFor(Jelly.JellyDecoder decoder, ArrayList stateList); Where the state is the result of getStateFor(). In general, the following should be true: Jellyable.unjellyFor(decoder, o.getStateFor(encoder)).equals(o)


Constructor Summary
Jellyable()
           
 
Method Summary
 java.lang.String _getClassName()
          Return the class name for jellying.
 java.util.ArrayList getStateFor(Jelly.JellyEncoder encoder)
          Return object's state as a sexp list.
protected  java.util.ArrayList jellyFor(Jelly.JellyEncoder encoder)
          Jelly the object and return the resulting s-exp list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jellyable

public Jellyable()
Method Detail

_getClassName

public java.lang.String _getClassName()
Return the class name for jellying.

jellyFor

protected java.util.ArrayList jellyFor(Jelly.JellyEncoder encoder)
Jelly the object and return the resulting s-exp list.

getStateFor

public java.util.ArrayList getStateFor(Jelly.JellyEncoder encoder)
Return object's state as a sexp list.