|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcwebservices.wms.capabilities.Style
public class Style
Zero or more Styles may be advertised for a Layer or collection of layers using <Style> elements, each of which shall have <Name> and <Title> elements. The style's Name is used in the Map request STYLES parameter. The Title is a human-readable string. If only a single style is available, that style is known as the "default" style and need not be advertised by the server.
A Style may contain several other elements in the Capabilities XML DTD. In particular, <Abstract> provides a narrative description while <LegendURL> contains the location of an image of a map legend appropriate to the enclosing Style. A <Format> element in LegendURL indicates the MIME type of the logo image, and the attributes width and height state the size of the image in pixels.
Field Summary | |
---|---|
(package private) static java.util.Map<java.lang.String,UserStyle> |
styles
|
Constructor Summary | |
---|---|
Style(java.lang.String name,
java.lang.String title,
java.lang.String abstract_,
LegendURL[] legendURLs,
StyleSheetURL styleSheetURL,
StyleURL styleURL,
java.net.URL styleResource)
constructor initializing the class with the <Style> |
Method Summary | |
---|---|
java.lang.String |
getAbstract()
|
LegendURL[] |
getLegendURL()
|
java.lang.String |
getName()
|
UserStyle |
getStyleContent()
returns the content of the style as SLD style object |
java.net.URL |
getStyleResource()
|
StyleSheetURL |
getStyleSheetURL()
|
StyleURL |
getStyleURL()
A Style element lists the name by which a style is requested and a human-readable title for pick lists, optionally (and ideally) provides a human-readable description, and optionally gives a style URL. |
java.lang.String |
getTitle()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static java.util.Map<java.lang.String,UserStyle> styles
Constructor Detail |
---|
public Style(java.lang.String name, java.lang.String title, java.lang.String abstract_, LegendURL[] legendURLs, StyleSheetURL styleSheetURL, StyleURL styleURL, java.net.URL styleResource) throws XMLParsingException
name
- title
- abstract_
- legendURLs
- styleSheetURL
- styleURL
- styleResource
-
XMLParsingException
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getTitle()
public java.lang.String getAbstract()
public LegendURL[] getLegendURL()
public StyleSheetURL getStyleSheetURL()
public StyleURL getStyleURL()
public java.net.URL getStyleResource()
public UserStyle getStyleContent()
public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org