at.ac.tuwien.infosys.sm4all.copal.api.xml
Class Attribute.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.BaseUnmarshallerBuilder<T>
          extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.Attribute.Builder<T>
Type Parameters:
T - the type of unmarshaled and marshaled attribute value.
All Implemented Interfaces:
MarshallerBuilder<T>, UnmarshallerBuilder<T>
Direct Known Subclasses:
BooleanAttribute.Builder, DateAttribute.Builder, IntegerAttribute.Builder, LongAttribute.Builder, StringAttribute.Builder
Enclosing class:
Attribute<T>

public abstract static class Attribute.Builder<T>
extends BaseUnmarshallerBuilder<T>

Builder of Attribute.

Author:
sanjin

Constructor Summary
protected Attribute.Builder()
          Create uninitialized instance of Attribute.Builder.
protected Attribute.Builder(Attribute.Builder<T> builder)
          Clone-constructor.
 
Method Summary
protected abstract  Attribute.Builder<T> copy()
          Create instance of Attribute.Builder by copying this Attribute.Builder.
 java.lang.String getName()
          Returns the name of the attribute.
 Attribute.Builder<T> withElement(org.w3c.dom.Element element)
          Create instance of BaseUnmarshallerBuilder that will build Unmarshallers that will marshal values to specified Element.
 Attribute.Builder<T> withName(java.lang.String name)
          Create instance of Attribute.Builder that will build Attributes that will unmarshal and/or marshal values from/to specified attribute.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.xml.BaseMarshallerBuilder
getElement
 
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.UnmarshallerBuilder
build
 

Constructor Detail

Attribute.Builder

protected Attribute.Builder()
Create uninitialized instance of Attribute.Builder.


Attribute.Builder

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

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

copy

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

Specified by:
copy in class BaseUnmarshallerBuilder<T>
Returns:
an Attribute.Builder.

getName

public java.lang.String getName()
Returns the name of the attribute.

Returns:
the name of the attribute.

withName

public Attribute.Builder<T> withName(java.lang.String name)
Create instance of Attribute.Builder that will build Attributes that will unmarshal and/or marshal values from/to specified attribute.

Parameters:
name - the name of attribute.
Returns:
an Attribute.Builder.

withElement

public Attribute.Builder<T> withElement(org.w3c.dom.Element element)
Description copied from class: BaseUnmarshallerBuilder
Create instance of BaseUnmarshallerBuilder that will build Unmarshallers that will marshal values to specified Element.

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


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