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

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

public class FeatureTypeStyleBuilder<P>
extends java.lang.Object
implements Builder<FeatureTypeStyle>


Constructor Summary
FeatureTypeStyleBuilder()
           
FeatureTypeStyleBuilder(P parent)
           
 
Method Summary
 FeatureTypeStyle build()
          Created object, may be null if unset()
 IdBuilder<FeatureTypeStyleBuilder<P>> definedFor()
           
 void definedFor(org.opengis.filter.Id fids)
           
 DescriptionBuilder<FeatureTypeStyleBuilder<P>> description()
           
 FeatureTypeStyleBuilder<P> description(Description description)
           
 FeatureTypeStyleBuilder<P> featureTypeName(org.opengis.feature.type.Name featureTypeName)
          Accumulates another feature type name in the list of the feature type names for this FeatureTypeStyle
 FeatureTypeStyleBuilder<P> featureTypeName(java.lang.String featureTypeName)
          Accumulates another feature type name in the list of the feature type names for this FeatureTypeStyle
 java.util.LinkedHashSet<org.opengis.feature.type.Name> featureTypeNames()
           
 java.lang.String name()
           
 FeatureTypeStyleBuilder<P> name(java.lang.String name)
           
 FeatureTypeStyleBuilder<P> reset()
          Configure the Builder to produce a default result.
 Builder<FeatureTypeStyle> reset(FeatureTypeStyle fts)
          Configure the Builder to produce a copy of the provided original.
 RuleBuilder<FeatureTypeStyleBuilder<P>> rule()
           
 java.util.List<RuleBuilder<FeatureTypeStyleBuilder<P>>> rules()
           
 FeatureTypeStyleBuilder<P> rules(java.util.List<Rule> rules)
           
 void setFeatureTypeNames(java.util.List<org.opengis.feature.type.Name> featureTypeNames)
           
 FeatureTypeStyleBuilder<P> title(java.lang.String title)
           
 java.util.Set<org.opengis.style.SemanticType> types()
           
 Builder<FeatureTypeStyle> 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

FeatureTypeStyleBuilder

public FeatureTypeStyleBuilder()

FeatureTypeStyleBuilder

public FeatureTypeStyleBuilder(P parent)
Method Detail

rule

public RuleBuilder<FeatureTypeStyleBuilder<P>> rule()

name

public FeatureTypeStyleBuilder<P> name(java.lang.String name)

title

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

description

public DescriptionBuilder<FeatureTypeStyleBuilder<P>> description()

featureTypeName

public FeatureTypeStyleBuilder<P> featureTypeName(java.lang.String featureTypeName)
Accumulates another feature type name in the list of the feature type names for this FeatureTypeStyle

Parameters:
featureTypeName -
Returns:

name

public java.lang.String name()

rules

public java.util.List<RuleBuilder<FeatureTypeStyleBuilder<P>>> rules()

rules

public FeatureTypeStyleBuilder<P> rules(java.util.List<Rule> rules)

description

public FeatureTypeStyleBuilder<P> description(Description description)

featureTypeNames

public java.util.LinkedHashSet<org.opengis.feature.type.Name> featureTypeNames()

setFeatureTypeNames

public void setFeatureTypeNames(java.util.List<org.opengis.feature.type.Name> featureTypeNames)

definedFor

public IdBuilder<FeatureTypeStyleBuilder<P>> definedFor()

definedFor

public void definedFor(org.opengis.filter.Id fids)

types

public java.util.Set<org.opengis.style.SemanticType> types()

featureTypeName

public FeatureTypeStyleBuilder<P> featureTypeName(org.opengis.feature.type.Name featureTypeName)
Accumulates another feature type name in the list of the feature type names for this FeatureTypeStyle

Parameters:
featureTypeName -
Returns:

build

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

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

reset

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

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

reset

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

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

unset

public Builder<FeatureTypeStyle> 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<FeatureTypeStyle>
Returns:
Builder configured to build null


Copyright © 1996-2010 Geotools. All Rights Reserved.