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

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.BaseMarshallerBuilder<java.util.List<T>>
      extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ListMarshaller.Builder<T>
Type Parameters:
T - the type of marshaled List elements.
All Implemented Interfaces:
MarshallerBuilder<java.util.List<T>>
Direct Known Subclasses:
ListUnmarshaller.Builder
Enclosing class:
ListMarshaller<T>

public static class ListMarshaller.Builder<T>
extends BaseMarshallerBuilder<java.util.List<T>>

Builder of ListMarshaller.

Author:
sanjin

Constructor Summary
  ListMarshaller.Builder()
          Create uninitialized instance of ListMarshaller.Builder.
protected ListMarshaller.Builder(ListMarshaller.Builder<T> builder)
          Clone-constructor.
 
Method Summary
 ListMarshaller<T> build()
          Create instance of ListMarshaller.
protected  ListMarshaller.Builder<T> copy()
          Create instance of BaseMarshallerBuilder by copying this BaseMarshallerBuilder.
 MarshallerBuilder<T> getBuilder()
          Returns the MarshallerBuilder to create Marshallers for child Elements.
 java.lang.String getChildName()
          Returns the local name of child Elements.
 org.w3c.dom.Element getElement()
          Returns the parent Element.
 ListMarshaller.Builder<T> withBuilder(MarshallerBuilder<T> builder)
          Create instance of ListMarshaller.Builder that will build ListMarshallers that will marshal values using specified MarshallerBuilder to create a Marshaller for the child Element.
 ListMarshaller.Builder<T> withChildName(java.lang.String childName)
          Create instance of ListMarshaller.Builder that will build ListMarshallers that will marshal values using specified local name for the child Element.
 ListMarshaller.Builder<T> withElement(org.w3c.dom.Element element)
          Create instance of ListMarshaller.Builder that will build ListMarshallers that will marshal values to specified parent Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListMarshaller.Builder

public ListMarshaller.Builder()
Create uninitialized instance of ListMarshaller.Builder.


ListMarshaller.Builder

protected ListMarshaller.Builder(ListMarshaller.Builder<T> builder)
Clone-constructor.

Parameters:
builder - the cloned ListMarshaller.Builder.
Method Detail

getElement

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

Overrides:
getElement in class BaseMarshallerBuilder<java.util.List<T>>
Returns:
the parent Element.

getChildName

public java.lang.String getChildName()
Returns the local name of child Elements.

Returns:
the local name of child Elements.

getBuilder

public MarshallerBuilder<T> getBuilder()
Returns the MarshallerBuilder to create Marshallers for child Elements.

Returns:
the MarshallerBuilder to create Marshallers for child Elements.

withElement

public ListMarshaller.Builder<T> withElement(org.w3c.dom.Element element)
Create instance of ListMarshaller.Builder that will build ListMarshallers that will marshal values to specified parent Element.

Specified by:
withElement in interface MarshallerBuilder<java.util.List<T>>
Overrides:
withElement in class BaseMarshallerBuilder<java.util.List<T>>
Parameters:
element - the parent Element.
Returns:
a ListMarshaller.Builder.

withChildName

public ListMarshaller.Builder<T> withChildName(java.lang.String childName)
Create instance of ListMarshaller.Builder that will build ListMarshallers that will marshal values using specified local name for the child Element.

Parameters:
childName - the local name of the child Element.
Returns:
a ListMarshaller.Builder.

withBuilder

public ListMarshaller.Builder<T> withBuilder(MarshallerBuilder<T> builder)
Create instance of ListMarshaller.Builder that will build ListMarshallers that will marshal values using specified MarshallerBuilder to create a Marshaller for the child Element.

Parameters:
builder - the MarshallerBuilder to create a Marshaller for the child Element.
Returns:
a ListMarshaller.Builder.

build

public ListMarshaller<T> build()
Create instance of ListMarshaller.

Returns:
a ListMarshaller.

copy

protected ListMarshaller.Builder<T> copy()
Description copied from class: BaseMarshallerBuilder
Create instance of BaseMarshallerBuilder by copying this BaseMarshallerBuilder.

Specified by:
copy in class BaseMarshallerBuilder<java.util.List<T>>
Returns:
an BaseMarshallerBuilder.


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