| java.lang.Object org.apache.commons.scxml.io.SCXMLSerializer
SCXMLSerializer | public class SCXMLSerializer (Code) | | Utility class for serializing the Commons SCXML Java object
model. Class uses the visitor pattern to trace through the
object heirarchy. Used primarily for testing, debugging and
visual verification.
|
Method Summary | |
final public static String | getBodyContent(ExternalContent externalContent) Return serialized body of ExternalContent . | public static String | serialize(SCXML scxml) Serialize this SCXML object (primarily for debugging). | public static boolean | serializeActions(StringBuffer b, List l, String indent) Serialize this List of actions. | public static void | serializeDatamodel(StringBuffer b, Datamodel dm, String indent) Serialize this Datamodel object. | public static void | serializeHistory(StringBuffer b, List l, String indent) Serialize the History. | public static void | serializeIf(StringBuffer b, If iff, String indent) Serialize this If object. | public static void | serializeInitial(StringBuffer b, Initial i, String indent) Serialize this Initial object. | public static void | serializeInvoke(StringBuffer b, Invoke i, String indent) Serialize this Invoke object. | public static void | serializeOnEntry(StringBuffer b, TransitionTarget t, String indent) Serialize this OnEntry object. | public static void | serializeOnExit(StringBuffer b, TransitionTarget t, String indent) Serialize this OnExit object. | public static void | serializeParallel(StringBuffer b, Parallel p, String indent) Serialize this Parallel object. | public static void | serializeSend(StringBuffer b, Send send, String indent) Serialize this Send object. | public static void | serializeState(StringBuffer b, State s, String indent) Serialize this State object. | public static void | serializeTarget(StringBuffer b, Transition t, String indent) Serialize this Transition's Target. | public static void | serializeTransition(StringBuffer b, Transition t, String indent) Serialize this Transition object. |
getBodyContent | final public static String getBodyContent(ExternalContent externalContent)(Code) | | Return serialized body of ExternalContent .
Parameters: externalContent - The model element containing the body content String The serialized body content |
serialize | public static String serialize(SCXML scxml)(Code) | | Serialize this SCXML object (primarily for debugging).
Parameters: scxml - The SCXML to be serialized String The serialized SCXML |
serializeActions | public static boolean serializeActions(StringBuffer b, List l, String indent)(Code) | | Serialize this List of actions.
Parameters: b - The buffer to append the serialization to Parameters: l - The List of actions to serialize Parameters: indent - The indent for this XML element boolean true if the list of actions contains an <exit/> |
serializeDatamodel | public static void serializeDatamodel(StringBuffer b, Datamodel dm, String indent)(Code) | | Serialize this Datamodel object.
Parameters: b - The buffer to append the serialization to Parameters: dm - The Datamodel to be serialized Parameters: indent - The indent for this XML element |
serializeHistory | public static void serializeHistory(StringBuffer b, List l, String indent)(Code) | | Serialize the History.
Parameters: b - The buffer to append the serialization to Parameters: l - The List of History objects to serialize Parameters: indent - The indent for this XML element |
serializeIf | public static void serializeIf(StringBuffer b, If iff, String indent)(Code) | | Serialize this If object.
Parameters: b - The buffer to append the serialization to Parameters: iff - The If object to serialize Parameters: indent - The indent for this XML element |
serializeInitial | public static void serializeInitial(StringBuffer b, Initial i, String indent)(Code) | | Serialize this Initial object.
Parameters: b - The buffer to append the serialization to Parameters: i - The Initial to serialize Parameters: indent - The indent for this XML element |
serializeInvoke | public static void serializeInvoke(StringBuffer b, Invoke i, String indent)(Code) | | Serialize this Invoke object.
Parameters: b - The buffer to append the serialization to Parameters: i - The Invoke to serialize Parameters: indent - The indent for this XML element |
serializeOnEntry | public static void serializeOnEntry(StringBuffer b, TransitionTarget t, String indent)(Code) | | Serialize this OnEntry object.
Parameters: b - The buffer to append the serialization to Parameters: t - The TransitionTarget whose OnEntry is to be serialized Parameters: indent - The indent for this XML element |
serializeOnExit | public static void serializeOnExit(StringBuffer b, TransitionTarget t, String indent)(Code) | | Serialize this OnExit object.
Parameters: b - The buffer to append the serialization to Parameters: t - The TransitionTarget whose OnExit is to be serialized Parameters: indent - The indent for this XML element |
serializeParallel | public static void serializeParallel(StringBuffer b, Parallel p, String indent)(Code) | | Serialize this Parallel object.
Parameters: b - The buffer to append the serialization to Parameters: p - The Parallel to serialize Parameters: indent - The indent for this XML element |
serializeSend | public static void serializeSend(StringBuffer b, Send send, String indent)(Code) | | Serialize this Send object.
Parameters: b - The buffer to append the serialization to Parameters: send - The Send object to serialize Parameters: indent - The indent for this XML element |
serializeState | public static void serializeState(StringBuffer b, State s, String indent)(Code) | | Serialize this State object.
Parameters: b - The buffer to append the serialization to Parameters: s - The State to serialize Parameters: indent - The indent for this XML element |
serializeTarget | public static void serializeTarget(StringBuffer b, Transition t, String indent)(Code) | | Serialize this Transition's Target.
Parameters: b - The buffer to append the serialization to Parameters: t - The Transition whose Target needs to be serialized Parameters: indent - The indent for this XML element |
serializeTransition | public static void serializeTransition(StringBuffer b, Transition t, String indent)(Code) | | Serialize this Transition object.
Parameters: b - The buffer to append the serialization to Parameters: t - The Transition to serialize Parameters: indent - The indent for this XML element |
|
|