org.yawlfoundation.yawl.worklet.rdr
Class RdrMarshal

java.lang.Object
  extended by org.yawlfoundation.yawl.worklet.rdr.RdrMarshal

public class RdrMarshal
extends Object

Marshals and unmarshals Rdr objects and their XML string equivalents

Author:
Michael Adams
Created/Last Date:
26/03/12

Constructor Summary
RdrMarshal()
           
 
Method Summary
 String marshalConclusion(RdrConclusion conc)
          Converts an RdrConclusion into its XML string equivalent
 String marshalNode(RdrNode node)
          Converts an RdrNode into its XML string equivalent
 String marshalSet(RdrSet set)
          Converts an RdrSet into its XML string equivalent
 String marshalTree(RdrTree tree)
          Converts an RdrTree into its XML string equivalent
 RdrConclusion unmarshalConclusion(String xml)
          Creates a new RdrConclusion object
 RdrNode unmarshalNode(String xml)
          Creates a new RdrNode object
 RdrSet unmarshalSet(String xml)
          Creates a new RdrSet object
 RdrTree unmarshalTree(String xml)
          Creates a new RdrTree object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdrMarshal

public RdrMarshal()
Method Detail

unmarshalNode

public RdrNode unmarshalNode(String xml)
Creates a new RdrNode object

Parameters:
xml - the XML string describing the node
Returns:
the instantiated RdrNode

marshalNode

public String marshalNode(RdrNode node)
Converts an RdrNode into its XML string equivalent

Parameters:
node - the node to translate to XML
Returns:
the XML string describing the node

unmarshalTree

public RdrTree unmarshalTree(String xml)
Creates a new RdrTree object

Parameters:
xml - the XML string describing the tree
Returns:
the instantiated RdrTree

marshalTree

public String marshalTree(RdrTree tree)
Converts an RdrTree into its XML string equivalent

Parameters:
tree - the tree to translate to XML
Returns:
the XML string describing the tree

unmarshalSet

public RdrSet unmarshalSet(String xml)
Creates a new RdrSet object

Parameters:
xml - the XML string describing the set
Returns:
the instantiated RdrSet

marshalSet

public String marshalSet(RdrSet set)
Converts an RdrSet into its XML string equivalent

Parameters:
set - the set to translate to XML
Returns:
the XML string describing the set

unmarshalConclusion

public RdrConclusion unmarshalConclusion(String xml)
Creates a new RdrConclusion object

Parameters:
xml - the XML string describing the conclusion
Returns:
the instantiated RdrConclusion

marshalConclusion

public String marshalConclusion(RdrConclusion conc)
Converts an RdrConclusion into its XML string equivalent

Parameters:
conc - the conclusion to translate to XML
Returns:
the XML string describing the conclusion


Copyright © 2004-2012 The YAWL Foundation.