at.ac.tuwien.infosys.sm4all.copal.api.event.xml.type
Class XMLDefaultActions

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

public class XMLDefaultActions
extends ArrayElement<DefaultAction>

Command that marshalls and unmarshalls DefaultActions into/from an Element.

Author:
sanjin

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

XMLDefaultActions

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

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

unmarshal

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

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

unmarshal

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

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

marshal

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

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