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

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<ProcessorAction>
              extended by at.ac.tuwien.infosys.sm4all.copal.api.processor.xml.XMLProcessorActions
All Implemented Interfaces:
Marshaller<ProcessorAction[]>, Unmarshaller<ProcessorAction[]>

public class XMLProcessorActions
extends ArrayElement<ProcessorAction>

Command that marshalls and unmarshalls ProcessorActions of a ContextProcessor into/from an Element.

Author:
sanjin

Constructor Summary
XMLProcessorActions(Element element)
          Creates instance of ContextProcessor ProcessorActions marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the ProcessorActions.
 
Method Summary
protected  void marshal(ProcessorAction action, Element element)
          Marshal specified object into specified Element.
 ProcessorAction[] unmarshal()
          Returns the unmarshalled Action child Elements of specified Element using the XMLProcessorAction.unmarshal() method.
protected  ProcessorAction 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

XMLProcessorActions

public XMLProcessorActions(Element element)
Creates instance of ContextProcessor ProcessorActions marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the ProcessorActions.

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

unmarshal

public ProcessorAction[] unmarshal()
                            throws ContextException
Returns the unmarshalled Action child Elements of specified Element using the XMLProcessorAction.unmarshal() method.

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

unmarshal

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

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

marshal

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

Specified by:
marshal in class ArrayMarshaller<ProcessorAction>
Parameters:
action - 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.