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