at.ac.tuwien.infosys.sm4all.copal.api.xml
Class ListUnmarshaller.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>
          extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ListUnmarshaller.Builder<T>
Type Parameters:
T - the type of unmarshaled and marshaled List elements.
All Implemented Interfaces:
MarshallerBuilder<java.util.List<T>>, UnmarshallerBuilder<java.util.List<T>>
Enclosing class:
ListUnmarshaller<T>

public static class ListUnmarshaller.Builder<T>
extends ListMarshaller.Builder<T>
implements UnmarshallerBuilder<java.util.List<T>>

Builder of ListUnmarshaller.

Author:
sanjin

Constructor Summary
ListUnmarshaller.Builder()
          Create uninitialized instance of ListUnmarshaller.Builder.
 
Method Summary
 ListUnmarshaller<T> build()
          Create instance of ListUnmarshaller.
protected  ListUnmarshaller.Builder<T> copy()
          Create instance of BaseMarshallerBuilder by copying this BaseMarshallerBuilder.
 UnmarshallerBuilder<T> getBuilder()
          Returns the UnmarshallerBuilder to create Unmarshallers for child Elements.
 ListUnmarshaller.Builder<T> withBuilder(MarshallerBuilder<T> builder)
          Deprecated. 
 ListUnmarshaller.Builder<T> withBuilder(UnmarshallerBuilder<T> builder)
          Create instance of ListUnmarshaller.Builder that will build ListUnmarshallers that will unmarshal and/or marshal values using specified UnmarshallerBuilder to create a Unmarshaller for the child Element.
 ListUnmarshaller.Builder<T> withChildName(java.lang.String childName)
          Create instance of ListUnmarshaller.Builder that will build ListUnmarshallers that will unmarshal and/or marshal values using specified local name for the child Element.
 ListUnmarshaller.Builder<T> withElement(org.w3c.dom.Element element)
          Create instance of ListUnmarshaller.Builder that will build ListUnmarshallers that will unmarshal and/or marshal values to specified parent Element.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.xml.ListMarshaller.Builder
getChildName, getElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUnmarshaller.Builder

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

Method Detail

getBuilder

public UnmarshallerBuilder<T> getBuilder()
Returns the UnmarshallerBuilder to create Unmarshallers for child Elements.

Overrides:
getBuilder in class ListMarshaller.Builder<T>
Returns:
the UnmarshallerBuilder to create Unmarshallers for child Elements.

withElement

public ListUnmarshaller.Builder<T> withElement(org.w3c.dom.Element element)
Create instance of ListUnmarshaller.Builder that will build ListUnmarshallers that will unmarshal and/or marshal values to specified parent Element.

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

withChildName

public ListUnmarshaller.Builder<T> withChildName(java.lang.String childName)
Create instance of ListUnmarshaller.Builder that will build ListUnmarshallers that will unmarshal and/or marshal values using specified local name for the child Element.

Overrides:
withChildName in class ListMarshaller.Builder<T>
Parameters:
childName - the local name of the child Element.
Returns:
an ListUnmarshaller.Builder.

withBuilder

@Deprecated
public ListUnmarshaller.Builder<T> withBuilder(MarshallerBuilder<T> builder)
Deprecated. 

Create instance of ListUnmarshaller.Builder that will build ListUnmarshallers that will unmarshal and/or marshal values using specified UnmarshallerBuilder to create an Unmarshaller for the child Element.

Overrides:
withBuilder in class ListMarshaller.Builder<T>
Parameters:
builder - the UnmarshallerBuilder to create an Unmarshaller for the child Element.
Returns:
an ListUnmarshaller.Builder.

withBuilder

public ListUnmarshaller.Builder<T> withBuilder(UnmarshallerBuilder<T> builder)
Create instance of ListUnmarshaller.Builder that will build ListUnmarshallers that will unmarshal and/or marshal values using specified UnmarshallerBuilder to create a Unmarshaller for the child Element.

Parameters:
builder - the UnmarshallerBuilder to create a Unmarshaller for the child Element.
Returns:
a ListUnmarshaller.Builder.

build

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

Specified by:
build in interface MarshallerBuilder<java.util.List<T>>
Specified by:
build in interface UnmarshallerBuilder<java.util.List<T>>
Overrides:
build in class ListMarshaller.Builder<T>
Returns:
a ListUnmarshaller.

copy

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

Overrides:
copy in class ListMarshaller.Builder<T>
Returns:
an BaseMarshallerBuilder.


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