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

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.type.DefaultActions
All Implemented Interfaces:
Marshaller<ContextEventType>, Unmarshaller<DefaultAction[]>

public class DefaultActions
extends Object
implements Unmarshaller<DefaultAction[]>, Marshaller<ContextEventType>

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

Author:
sanjin

Constructor Summary
DefaultActions(Element element)
          Constructs instance of ContextEventType DefaultActions marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the DefaultActions.
 
Method Summary
 void marshal(ContextEventType eventType)
          Removes all child Elements of specified Element and appends marshalled DefaultActions from specified ContextEventType.
 DefaultAction[] unmarshal()
          Returns the unmarshalled DefaultAtion child Elements of specified Element using the XMLDefaultAction.unmarshal() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultActions

public DefaultActions(Element element)
Constructs instance of ContextEventType 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 ParsingException
Returns the unmarshalled DefaultAtion child Elements of specified Element using the XMLDefaultAction.unmarshal() method.

Specified by:
unmarshal in interface Unmarshaller<DefaultAction[]>
Returns:
the unmarshalled DefaultAtion child Element s.
Throws:
InvalidFieldValueException - if specified Element has a non-DefaultAtion child Element.
ParsingException

marshal

public void marshal(ContextEventType eventType)
Removes all child Elements of specified Element and appends marshalled DefaultActions from specified ContextEventType.

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


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