at.ac.tuwien.infosys.sm4all.copal.api.xml
Class BaseMarshallerBuilder<T>

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.BaseMarshallerBuilder<T>
Type Parameters:
T - the type of marshaled value.
All Implemented Interfaces:
MarshallerBuilder<T>
Direct Known Subclasses:
BaseUnmarshallerBuilder, ContextEventActionMarshaller.Builder, ContextListenerMarshaller.Builder, ContextProcessorMarshaller.Builder, ContextPublisherMarshaller.Builder, ContextQueryMarshaller.Builder, ElementMarshaller.Builder, ListMarshaller.Builder

public abstract class BaseMarshallerBuilder<T>
extends java.lang.Object
implements MarshallerBuilder<T>

Base abstract class for implementations of MarshallerBuilder to use.

Author:
sanjin

Constructor Summary
protected BaseMarshallerBuilder()
          Create uninitialized instance of BaseMarshallerBuilder.
protected BaseMarshallerBuilder(BaseMarshallerBuilder<T> builder)
          Clone-constructor.
 
Method Summary
protected abstract  BaseMarshallerBuilder<T> copy()
          Create instance of BaseMarshallerBuilder by copying this BaseMarshallerBuilder.
 org.w3c.dom.Element getElement()
          Returns the Element.
 BaseMarshallerBuilder<T> withElement(org.w3c.dom.Element element)
          Create instance of BaseMarshallerBuilder that will build Marshallers that will marshal values to specified Element .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface at.ac.tuwien.infosys.sm4all.copal.api.xml.MarshallerBuilder
build
 

Constructor Detail

BaseMarshallerBuilder

protected BaseMarshallerBuilder()
Create uninitialized instance of BaseMarshallerBuilder.


BaseMarshallerBuilder

protected BaseMarshallerBuilder(BaseMarshallerBuilder<T> builder)
Clone-constructor.

Parameters:
builder - the cloned BaseMarshallerBuilder.
Method Detail

copy

protected abstract BaseMarshallerBuilder<T> copy()
Create instance of BaseMarshallerBuilder by copying this BaseMarshallerBuilder.

Returns:
an BaseMarshallerBuilder.

getElement

public org.w3c.dom.Element getElement()
Returns the Element.

Returns:
the Element.

withElement

public BaseMarshallerBuilder<T> withElement(org.w3c.dom.Element element)
Create instance of BaseMarshallerBuilder that will build Marshallers that will marshal values to specified Element .

Specified by:
withElement in interface MarshallerBuilder<T>
Parameters:
element - the Element.
Returns:
an BaseMarshallerBuilder.


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