|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.scxml.io.SCXMLSerializer
public class SCXMLSerializer
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 | |
---|---|
static String |
getBodyContent(ExternalContent externalContent)
Return serialized body of ExternalContent . |
static String |
serialize(SCXML scxml)
Serialize this SCXML object (primarily for debugging). |
static boolean |
serializeActions(StringBuffer b,
List l,
String indent)
Serialize this List of actions. |
static void |
serializeDatamodel(StringBuffer b,
Datamodel dm,
String indent)
Serialize this Datamodel object. |
static void |
serializeHistory(StringBuffer b,
List l,
String indent)
Serialize the History. |
static void |
serializeIf(StringBuffer b,
If iff,
String indent)
Serialize this If object. |
static void |
serializeInitial(StringBuffer b,
Initial i,
String indent)
Serialize this Initial object. |
static void |
serializeInvoke(StringBuffer b,
Invoke i,
String indent)
Serialize this Invoke object. |
static void |
serializeOnEntry(StringBuffer b,
TransitionTarget t,
String indent)
Serialize this OnEntry object. |
static void |
serializeOnExit(StringBuffer b,
TransitionTarget t,
String indent)
Serialize this OnExit object. |
static void |
serializeParallel(StringBuffer b,
Parallel p,
String indent)
Serialize this Parallel object. |
static void |
serializeSend(StringBuffer b,
Send send,
String indent)
Serialize this Send object. |
static void |
serializeState(StringBuffer b,
State s,
String indent)
Serialize this State object. |
static void |
serializeTarget(StringBuffer b,
Transition t,
String indent)
Serialize this Transition's Target. |
static void |
serializeTransition(StringBuffer b,
Transition t,
String indent)
Serialize this Transition object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String serialize(SCXML scxml)
scxml
- The SCXML to be serialized
public static void serializeState(StringBuffer b, State s, String indent)
b
- The buffer to append the serialization tos
- The State to serializeindent
- The indent for this XML elementpublic static void serializeParallel(StringBuffer b, Parallel p, String indent)
b
- The buffer to append the serialization top
- The Parallel to serializeindent
- The indent for this XML elementpublic static void serializeInvoke(StringBuffer b, Invoke i, String indent)
b
- The buffer to append the serialization toi
- The Invoke to serializeindent
- The indent for this XML elementpublic static void serializeInitial(StringBuffer b, Initial i, String indent)
b
- The buffer to append the serialization toi
- The Initial to serializeindent
- The indent for this XML elementpublic static void serializeHistory(StringBuffer b, List l, String indent)
b
- The buffer to append the serialization tol
- The List of History objects to serializeindent
- The indent for this XML elementpublic static void serializeTransition(StringBuffer b, Transition t, String indent)
b
- The buffer to append the serialization tot
- The Transition to serializeindent
- The indent for this XML elementpublic static void serializeTarget(StringBuffer b, Transition t, String indent)
b
- The buffer to append the serialization tot
- The Transition whose Target needs to be serializedindent
- The indent for this XML elementpublic static void serializeDatamodel(StringBuffer b, Datamodel dm, String indent)
b
- The buffer to append the serialization todm
- The Datamodel to be serializedindent
- The indent for this XML elementpublic static void serializeOnEntry(StringBuffer b, TransitionTarget t, String indent)
b
- The buffer to append the serialization tot
- The TransitionTarget whose OnEntry is to be serializedindent
- The indent for this XML elementpublic static void serializeOnExit(StringBuffer b, TransitionTarget t, String indent)
b
- The buffer to append the serialization tot
- The TransitionTarget whose OnExit is to be serializedindent
- The indent for this XML elementpublic static boolean serializeActions(StringBuffer b, List l, String indent)
b
- The buffer to append the serialization tol
- The List of actions to serializeindent
- The indent for this XML element
public static void serializeSend(StringBuffer b, Send send, String indent)
b
- The buffer to append the serialization tosend
- The Send object to serializeindent
- The indent for this XML elementpublic static final String getBodyContent(ExternalContent externalContent)
ExternalContent
.
externalContent
- The model element containing the body content
public static void serializeIf(StringBuffer b, If iff, String indent)
b
- The buffer to append the serialization toiff
- The If object to serializeindent
- The indent for this XML element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |