de.msponer.android.yac.marshaller
Class MobileResourceMarshaller

java.lang.Object
  extended by de.msponer.android.yac.marshaller.MobileResourceMarshaller

public class MobileResourceMarshaller
extends Object

Class is based on org.yawlfoundation.yawl.resourcing.rsInterface.ResourceMarshaller with minor modifications due to mobile usage.

Author:
msponer

Constructor Summary
MobileResourceMarshaller()
          Instantiates a new mobile resource marshaller.
 
Method Summary
 String marshallParticipants(Set<org.yawlfoundation.yawl.resourcing.resource.Participant> set)
          Marshall participants.
 String marshallWorkItemRecords(List<org.yawlfoundation.yawl.engine.interfce.WorkItemRecord> list)
          Marshall work item records.
 String marshallWorkItemRecords(Set<org.yawlfoundation.yawl.engine.interfce.WorkItemRecord> set)
          Marshall work item records.
 Set<org.yawlfoundation.yawl.resourcing.resource.Participant> unmarshallParticipants(String xml)
          Unmarshall participants.
 org.yawlfoundation.yawl.engine.interfce.WorkItemRecord unmarshallWorkItemRecord(String xml)
          Unmarshall work item record.
 Set<org.yawlfoundation.yawl.engine.interfce.WorkItemRecord> unmarshallWorkItemRecords(String xml)
          Unmarshall work item records.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileResourceMarshaller

public MobileResourceMarshaller()
Instantiates a new mobile resource marshaller.

Method Detail

marshallParticipants

public String marshallParticipants(Set<org.yawlfoundation.yawl.resourcing.resource.Participant> set)
Marshall participants.

Parameters:
set - the set
Returns:
the string

unmarshallParticipants

public Set<org.yawlfoundation.yawl.resourcing.resource.Participant> unmarshallParticipants(String xml)
Unmarshall participants.

Parameters:
xml - the xml
Returns:
the sets the

marshallWorkItemRecords

public String marshallWorkItemRecords(Set<org.yawlfoundation.yawl.engine.interfce.WorkItemRecord> set)
Marshall work item records.

Parameters:
set - the set
Returns:
the string

marshallWorkItemRecords

public String marshallWorkItemRecords(List<org.yawlfoundation.yawl.engine.interfce.WorkItemRecord> list)
Marshall work item records.

Parameters:
list - the list
Returns:
the string

unmarshallWorkItemRecords

public Set<org.yawlfoundation.yawl.engine.interfce.WorkItemRecord> unmarshallWorkItemRecords(String xml)
Unmarshall work item records.

Parameters:
xml - the xml
Returns:
the sets the

unmarshallWorkItemRecord

public org.yawlfoundation.yawl.engine.interfce.WorkItemRecord unmarshallWorkItemRecord(String xml)
                                                                                throws IOException
Unmarshall work item record.

Parameters:
xml - the xml
Returns:
the work item record
Throws:
IOException - Signals that an I/O exception has occurred.