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

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.BaseMarshallerBuilder<T>
      extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ElementMarshaller.Builder<T>
          extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ElementUnmarshaller.Builder<T>
Type Parameters:
T - the type of unmarshaled and marshaled value.
All Implemented Interfaces:
MarshallerBuilder<T>, UnmarshallerBuilder<T>
Enclosing class:
ElementUnmarshaller<T>

public static class ElementUnmarshaller.Builder<T>
extends ElementMarshaller.Builder<T>
implements UnmarshallerBuilder<T>

Builder of ElementUnmarshaller.

Author:
sanjin

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

Constructor Detail

ElementUnmarshaller.Builder

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

Method Detail

getBuilder

public UnmarshallerBuilder<T> getBuilder()
Returns the UnmarshallerBuilder to create an Unmarshaller for the child Element.

Overrides:
getBuilder in class ElementMarshaller.Builder<T>
Returns:
the UnmarshallerBuilder to create an Unmarshaller for the child Element.

withElement

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

Specified by:
withElement in interface MarshallerBuilder<T>
Specified by:
withElement in interface UnmarshallerBuilder<T>
Overrides:
withElement in class ElementMarshaller.Builder<T>
Parameters:
element - the parent Element.
Returns:
an ElementUnmarshaller.Builder.

withChildName

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

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

withBuilder

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

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

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

withBuilder

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

Parameters:
builder - the UnmarshallerBuilder to create an Unmarshaller for the child Element.
Returns:
an ElementUnmarshaller.Builder.

withStrategy

public ElementUnmarshaller.Builder<T> withStrategy(RemoveStrategy strategy)
Create instance of ElementUnmarshaller.Builder that will build ElementUnmarshallers that will remove marshaled values using specified RemoveStrategy.

Overrides:
withStrategy in class ElementMarshaller.Builder<T>
Parameters:
strategy - the RemoveStrategy.
Returns:
an ElementUnmarshaller.Builder.

build

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

Specified by:
build in interface MarshallerBuilder<T>
Specified by:
build in interface UnmarshallerBuilder<T>
Overrides:
build in class ElementMarshaller.Builder<T>
Returns:
a ElementUnmarshaller.

copy

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

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


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