at.ac.tuwien.infosys.sm4all.copal.api.processor.xml
Class ProcessorActionOutput

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ElementUtil
      extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ArrayMarshaller<T>
          extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ArrayElement<String>
              extended by at.ac.tuwien.infosys.sm4all.copal.api.processor.xml.ProcessorActionOutput
All Implemented Interfaces:
Marshaller<String[]>, Unmarshaller<String[]>

public class ProcessorActionOutput
extends ArrayElement<String>

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

Author:
sanjin

Constructor Summary
ProcessorActionOutput(Element element)
          Creates instance of ProcessorAction output marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the output.
 
Method Summary
protected  void marshal(String publishedType, Element element)
          Marshal specified object into specified Element.
 String[] unmarshal()
          Returns the unmarshalled Event child Elements of specified Element using the RequiredAttributeUnmarshaller.unmarshal() method.
protected  String unmarshal(Element element)
          Unmarshal singled value from specified Element.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.xml.ArrayElement
unmarshalList
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.xml.ArrayMarshaller
marshal
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.xml.ElementUtil
getChildElement, getChildElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorActionOutput

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

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

unmarshal

public String[] unmarshal()
                   throws ContextException
Returns the unmarshalled Event child Elements of specified Element using the RequiredAttributeUnmarshaller.unmarshal() method.

Returns:
the unmarshalled Event child Elements.
Throws:
ContextException - if unmarshalling of any Event child Element fails.

unmarshal

protected String unmarshal(Element element)
                    throws ContextException
Description copied from class: ArrayElement
Unmarshal singled value from specified Element.

Specified by:
unmarshal in class ArrayElement<String>
Parameters:
element - the Element.
Returns:
single value.
Throws:
ContextException - if unmarshalling fails.

marshal

protected void marshal(String publishedType,
                       Element element)
Description copied from class: ArrayMarshaller
Marshal specified object into specified Element.

Specified by:
marshal in class ArrayMarshaller<String>
Parameters:
publishedType - the object to marshal.
element - the Element into which specified object should be marshalled.


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