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

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ElementUtil
      extended by at.ac.tuwien.infosys.sm4all.copal.api.publisher.xml.XMLContextPublisher
All Implemented Interfaces:
Marshaller<ContextPublisher>

public class XMLContextPublisher
extends ElementUtil
implements Marshaller<ContextPublisher>

Command that marshalls a ContextPublisher into an Element.

Author:
sanjin

Field Summary
static String EVENTS_ELEMENT_NAME
          Local name of events child Element.
 
Constructor Summary
XMLContextPublisher(Element element)
          Creates instance of ContextPublisher marshaller which uses specified Element to marshal the ContextPublisher.
 
Method Summary
 void marshal(ContextPublisher publisher)
          Marshalls specified ContextPublisher into specified Element.
 
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
 

Field Detail

EVENTS_ELEMENT_NAME

public static final String EVENTS_ELEMENT_NAME
Local name of events child Element.

See Also:
Constant Field Values
Constructor Detail

XMLContextPublisher

public XMLContextPublisher(Element element)
Creates instance of ContextPublisher marshaller which uses specified Element to marshal the ContextPublisher.

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

marshal

public void marshal(ContextPublisher publisher)
Marshalls specified ContextPublisher into specified Element.

Specified by:
marshal in interface Marshaller<ContextPublisher>
Parameters:
publisher - the ContextPublisher.
Throws:
NullPointerException - if specified ContextProcessor is null.


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