at.ac.tuwien.infosys.sm4all.copal.api.event.xml.processor
Class ProcessorActionResultType

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.OptionalAttributeUnmarshaller<String>
      extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.processor.ProcessorActionResultType
All Implemented Interfaces:
Marshaller<ProcessorAction>, Unmarshaller<String>

public class ProcessorActionResultType
extends OptionalAttributeUnmarshaller<String>
implements Marshaller<ProcessorAction>

Command that marshalls and unmarshalls result type of a ProcessorAction into/from an Element.

Author:
sanjin

Constructor Summary
ProcessorActionResultType(Element element)
          Creates instance of ProcessorAction result type marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the result type.
 
Method Summary
 void marshal(ProcessorAction action)
          Sets the outputEvent attribute of specified Element to result type of specified ProcessorAction.
protected  String valueOf(String value)
          Converts specified String value of the optional attribute to desired class.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.event.xml.OptionalAttributeUnmarshaller
unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorActionResultType

public ProcessorActionResultType(Element element)
Creates instance of ProcessorAction result type marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the result type.

Parameters:
element - the Element used for marshalling and unmarshalling.
Throws:
NullPointerException - if specified Element is null.
Method Detail

valueOf

protected String valueOf(String value)
Description copied from class: OptionalAttributeUnmarshaller
Converts specified String value of the optional attribute to desired class.

Specified by:
valueOf in class OptionalAttributeUnmarshaller<String>
Parameters:
value - the String value of the optional attribute.
Returns:
the optional attribute as instance of the desired class.

marshal

public void marshal(ProcessorAction action)
Sets the outputEvent attribute of specified Element to result type of specified ProcessorAction.

Specified by:
marshal in interface Marshaller<ProcessorAction>
Parameters:
action - the ProcessorAction.
Throws:
NullPointerException - if specified ProcessorAction is null.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.