at.ac.tuwien.infosys.sm4all.copal.api.event.xml.processor
Class Name

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

public class Name
extends RequiredAttributeUnmarshaller<String>
implements Marshaller<ContextProcessor>

Command that marshalls and unmarshalls name of a ContextProcessor into/from an Element.

Author:
sanjin

Constructor Summary
Name(Element element)
          Creates instance of ContextProcessor name marshaller and unmarshaller which uses specified Element to marshal and/or unmarshal the name.
 
Method Summary
 void marshal(ContextProcessor processor)
          Sets the name attribute of specified Element to name of specified ContextProcessor.
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.event.xml.RequiredAttributeUnmarshaller
unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Name

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

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(ContextProcessor processor)
Sets the name attribute of specified Element to name of specified ContextProcessor.

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


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