From: <rg...@sv...> - 2006-01-30 20:11:56
|
Author: rgould Date: 2006-01-30 12:11:25 -0800 (Mon, 30 Jan 2006) New Revision: 17790 Added: geotools/trunk/gt/plugin/wms/src/org/geotools/data/ows/StyleImpl.java Log: Oops.. forgot to commit new class Added: geotools/trunk/gt/plugin/wms/src/org/geotools/data/ows/StyleImpl.j= ava =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- geotools/trunk/gt/plugin/wms/src/org/geotools/data/ows/StyleImpl.java= 2006-01-30 19:00:43 UTC (rev 17789) +++ geotools/trunk/gt/plugin/wms/src/org/geotools/data/ows/StyleImpl.java= 2006-01-30 20:11:25 UTC (rev 17790) @@ -0,0 +1,94 @@ +package org.geotools.data.ows; + +import java.util.List; + +import org.opengis.layer.Style; +import org.opengis.layer.StyleSheetURL; +import org.opengis.layer.StyleURL; +import org.opengis.util.InternationalString; + +public class StyleImpl implements Style { + + private String name; + private InternationalString title; + private InternationalString _abstract; + private List legendURLs; + private StyleSheetURL styleSheetURL; + private StyleURL styleURL; + private List featureStyles; + private List graphicStyles; +=09 + public StyleImpl() { + =09 + } +=09 + public StyleImpl(String name) { + this.name =3D name; + } +=09 + public InternationalString getAbstract() { + return _abstract; + } + public void setAbstract(InternationalString _abstract) { + this._abstract =3D _abstract; + } + public List getFeatureStyles() { + return featureStyles; + } + public void setFeatureStyles(List featureStyles) { + this.featureStyles =3D featureStyles; + } + public List getGraphicStyles() { + return graphicStyles; + } + public void setGraphicStyles(List graphicStyles) { + this.graphicStyles =3D graphicStyles; + } + public List getLegendURLs() { + return legendURLs; + } + public void setLegendURLs(List legendURLs) { + this.legendURLs =3D legendURLs; + } + public String getName() { + return name; + } + public void setName(String name) { + this.name =3D name; + } + public StyleSheetURL getStyleSheetURL() { + return styleSheetURL; + } + public void setStyleSheetURL(StyleSheetURL styleSheetURL) { + this.styleSheetURL =3D styleSheetURL; + } + public StyleURL getStyleURL() { + return styleURL; + } + public void setStyleURL(StyleURL styleURL) { + this.styleURL =3D styleURL; + } + public InternationalString getTitle() { + return title; + } + public void setTitle(InternationalString title) { + this.title =3D title; + } +=09 + /** + * Because the style's name is declared as unique identifier in the + * interface javadocs, we will use that as our equals comparison. + *=20 + * So if two Styles have the same name, they are considered equal. + *=20 + */ + public boolean equals(Object obj) { + if (obj instanceof Style) { + Style style2 =3D (Style) obj; + return style2.getName().equals(getName()); + } + return super.equals(obj); + } +=09 +=09 +} Property changes on: geotools/trunk/gt/plugin/wms/src/org/geotools/data/o= ws/StyleImpl.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Id Name: svn:eol-style + native |