org.geotools.styling.builder
Class DescriptionBuilder<P>

java.lang.Object
  extended by org.geotools.styling.builder.DescriptionBuilder<P>
All Implemented Interfaces:
Builder<Description>

public class DescriptionBuilder<P>
extends java.lang.Object
implements Builder<Description>


Constructor Summary
DescriptionBuilder()
           
DescriptionBuilder(P parent)
           
 
Method Summary
 Description build()
          Created object, may be null if unset()
 org.opengis.util.InternationalString description()
           
 DescriptionBuilder<P> description(org.opengis.util.InternationalString description)
           
 DescriptionBuilder<P> description(java.lang.String description)
           
 DescriptionBuilder<P> reset()
          Configure the Builder to produce a default result.
 DescriptionBuilder<P> reset(Description original)
          Configure the Builder to produce a copy of the provided original.
 org.opengis.util.InternationalString title()
           
 DescriptionBuilder<P> title(org.opengis.util.InternationalString title)
           
 DescriptionBuilder<P> title(java.lang.String title)
           
 DescriptionBuilder<P> unset()
          Configure the Builder to produce null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptionBuilder

public DescriptionBuilder()

DescriptionBuilder

public DescriptionBuilder(P parent)
Method Detail

build

public Description build()
Description copied from interface: Builder
Created object, may be null if unset()

Specified by:
build in interface Builder<Description>
Returns:
Created object may be null if unset()

reset

public DescriptionBuilder<P> reset()
Description copied from interface: Builder
Configure the Builder to produce a default result.

Specified by:
reset in interface Builder<Description>
Returns:
Builder configured to produce a default result.

title

public DescriptionBuilder<P> title(org.opengis.util.InternationalString title)

title

public DescriptionBuilder<P> title(java.lang.String title)

title

public org.opengis.util.InternationalString title()

description

public DescriptionBuilder<P> description(org.opengis.util.InternationalString description)

description

public DescriptionBuilder<P> description(java.lang.String description)

description

public org.opengis.util.InternationalString description()

reset

public DescriptionBuilder<P> reset(Description original)
Description copied from interface: Builder
Configure the Builder to produce a copy of the provided original.

Specified by:
reset in interface Builder<Description>
Returns:
Builder configured to produce the provided original

unset

public DescriptionBuilder<P> unset()
Description copied from interface: Builder
Configure the Builder to produce null.

This method allows a Builder to be used as a placeholder; in its unset state the build() method will produce null. If any of the builder methods are used the builder will produce a result.

Specified by:
unset in interface Builder<Description>
Returns:
Builder configured to build null


Copyright © 1996-2010 Geotools. All Rights Reserved.