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

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.OptionalAttributeUnmarshaller<Boolean>
      extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.type.DefaultActionRequirement
All Implemented Interfaces:
Marshaller<DefaultAction>, Unmarshaller<Boolean>

public class DefaultActionRequirement
extends OptionalAttributeUnmarshaller<Boolean>
implements Marshaller<DefaultAction>

Command that marshalls and unmarshalls requirement of a DefaultAction into/from an Element.

Author:
sanjin

Constructor Summary
DefaultActionRequirement(Element element)
          Creates instance of DefaultAction requirement marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the requirement.
 
Method Summary
 void marshal(DefaultAction action)
          Sets the required attribute of specified Element to requirement of specified DefaultAction.
protected  Boolean 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.xml.OptionalAttributeUnmarshaller
unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultActionRequirement

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

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

valueOf

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

Specified by:
valueOf in class OptionalAttributeUnmarshaller<Boolean>
Parameters:
value - the String value of the optional attribute.
Returns:
the optional attribute as instance of the desired class.
Throws:
InvalidFieldValueException - if specified value is not valid.

marshal

public void marshal(DefaultAction action)
Sets the required attribute of specified Element to requirement of specified DefaultAction.

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


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