org.geotools.styling
Class FeatureTypeStyleImpl

Object
  extended by FeatureTypeStyleImpl
All Implemented Interfaces:
Cloneable, FeatureTypeStyle

public class FeatureTypeStyleImpl
extends Object
implements FeatureTypeStyle, Cloneable

Implementation of Feature Type Style; care is taken to ensure everything is mutable.

Author:
James Macgill, Johann Sorel (Geomatys)
Module:
modules/library/main (gt-main.jar)

Constructor Summary
protected FeatureTypeStyleImpl()
          Creates a new instance of FeatureTypeStyleImpl
  FeatureTypeStyleImpl(FeatureTypeStyle fts)
           
protected FeatureTypeStyleImpl(List<Rule> arules)
           
protected FeatureTypeStyleImpl(Rule[] rules)
          Creates a new instance of FeatureTypeStyleImpl
 
Method Summary
 void accept(StyleVisitor visitor)
           
 Object accept(StyleVisitor visitor, Object data)
           
 void addRule(Rule rule)
          Deprecated. 
 Object clone()
          Creates a deep copy clone of the FeatureTypeStyle.
 boolean equals(Object oth)
          Compares this FeatureTypeStyleImpl with another.
 Set<Name> featureTypeNames()
           
 String getAbstract()
          Deprecated. 
 Description getDescription()
           
 Id getFeatureInstanceIDs()
           
 String getFeatureTypeName()
          Deprecated. 
 String getName()
           
 OnLineResource getOnlineResource()
           
 Rule[] getRules()
          Deprecated. 
 String[] getSemanticTypeIdentifiers()
          Deprecated. 
 String getTitle()
          Deprecated. 
 int hashCode()
          Overrides hashCode.
 List<Rule> rules()
           
 Set<SemanticType> semanticTypeIdentifiers()
           
 void setAbstract(String abstractStr)
          Deprecated. 
 void setFeatureTypeName(String name)
          Deprecated. 
 void setName(String name)
           
 void setOnlineResource(OnLineResource online)
           
 void setRules(Rule[] newRules)
          Deprecated. 
 void setSemanticTypeIdentifiers(String[] types)
          Deprecated. 
 void setTitle(String title)
          Deprecated. 
 String toString()
           
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureTypeStyleImpl

protected FeatureTypeStyleImpl(Rule[] rules)
Creates a new instance of FeatureTypeStyleImpl

Parameters:
rules - DOCUMENT ME!

FeatureTypeStyleImpl

protected FeatureTypeStyleImpl(List<Rule> arules)

FeatureTypeStyleImpl

protected FeatureTypeStyleImpl()
Creates a new instance of FeatureTypeStyleImpl


FeatureTypeStyleImpl

public FeatureTypeStyleImpl(FeatureTypeStyle fts)
Method Detail

rules

public List<Rule> rules()
Specified by:
rules in interface FeatureTypeStyle

getRules

@Deprecated
public Rule[] getRules()
Deprecated. 


setRules

@Deprecated
public void setRules(Rule[] newRules)
Deprecated. 


addRule

@Deprecated
public void addRule(Rule rule)
Deprecated. 


semanticTypeIdentifiers

public Set<SemanticType> semanticTypeIdentifiers()
Specified by:
semanticTypeIdentifiers in interface FeatureTypeStyle

getSemanticTypeIdentifiers

@Deprecated
public String[] getSemanticTypeIdentifiers()
Deprecated. 


setSemanticTypeIdentifiers

@Deprecated
public void setSemanticTypeIdentifiers(String[] types)
Deprecated. 


featureTypeNames

public Set<Name> featureTypeNames()
Specified by:
featureTypeNames in interface FeatureTypeStyle

getFeatureTypeName

@Deprecated
public String getFeatureTypeName()
Deprecated. 


setFeatureTypeName

@Deprecated
public void setFeatureTypeName(String name)
Deprecated. 


getFeatureInstanceIDs

public Id getFeatureInstanceIDs()
Specified by:
getFeatureInstanceIDs in interface FeatureTypeStyle

getDescription

public Description getDescription()
Specified by:
getDescription in interface FeatureTypeStyle

getName

public String getName()
Specified by:
getName in interface FeatureTypeStyle

setName

public void setName(String name)

getAbstract

@Deprecated
public String getAbstract()
Deprecated. 


setAbstract

@Deprecated
public void setAbstract(String abstractStr)
Deprecated. 


getTitle

@Deprecated
public String getTitle()
Deprecated. 


setTitle

@Deprecated
public void setTitle(String title)
Deprecated. 


accept

public Object accept(StyleVisitor visitor,
                     Object data)
Specified by:
accept in interface FeatureTypeStyle

accept

public void accept(StyleVisitor visitor)

clone

public Object clone()
Creates a deep copy clone of the FeatureTypeStyle.

Overrides:
clone in class Object
See Also:
org.geotools.styling.FeatureTypeStyle#clone()

hashCode

public int hashCode()
Overrides hashCode.

Overrides:
hashCode in class Object
Returns:
The hashcode.

equals

public boolean equals(Object oth)
Compares this FeatureTypeStyleImpl with another.

Two FeatureTypeStyles are equal if they contain equal properties and an equal list of Rules.

Overrides:
equals in class Object
Parameters:
oth - The other FeatureTypeStyleImpl to compare with.
Returns:
True if this and oth are equal.

toString

public String toString()
Overrides:
toString in class Object

setOnlineResource

public void setOnlineResource(OnLineResource online)

getOnlineResource

public OnLineResource getOnlineResource()
Specified by:
getOnlineResource in interface FeatureTypeStyle


Copyright © 1996-2010 Geotools. All Rights Reserved.