at.ac.tuwien.infosys.sm4all.copal.api.publisher.xml
Class Event

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.RequiredAttributeUnmarshaller<String>
      extended by at.ac.tuwien.infosys.sm4all.copal.api.publisher.xml.Event
All Implemented Interfaces:
Marshaller<String>, Unmarshaller<String>

public class Event
extends RequiredAttributeUnmarshaller<String>
implements Marshaller<String>

Command that marshalls and unmarshalls published type of a ContextPublisher into/from an Element.

Author:
sanjin

Constructor Summary
Event(Element element)
          Creates instance of ContextPublisher published type marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the published type.
 
Method Summary
 void marshal(String publishedType)
          Sets the name attribute of specified Element to published type of a ContextPublisher.
protected  String valueOf(String value)
          Converts specified String value of the required attribute to desired class.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.xml.RequiredAttributeUnmarshaller
unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(Element element)
Creates instance of ContextPublisher published type marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the published type.

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

valueOf

protected String valueOf(String value)
Description copied from class: RequiredAttributeUnmarshaller
Converts specified String value of the required attribute to desired class.

Specified by:
valueOf in class RequiredAttributeUnmarshaller<String>
Parameters:
value - the String value of the required attribute.
Returns:
the required attribute as instance of the desired class.

marshal

public void marshal(String publishedType)
Sets the name attribute of specified Element to published type of a ContextPublisher.

Specified by:
marshal in interface Marshaller<String>
Parameters:
publishedType - the published type.
Throws:
NullPointerException - if specified published type is null.


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