deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.wms.capabilities
Class Style

java.lang.Object
  extended by org.deegree.ogcwebservices.wms.capabilities.Style

public class Style
extends java.lang.Object

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.

Version:
$Revision: 18195 $
Author:
Katharina Lupp, Markus Schneider

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

styles

static java.util.Map<java.lang.String,UserStyle> styles
Constructor Detail

Style

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
constructor initializing the class with the <Style>

Parameters:
name -
title -
abstract_ -
legendURLs -
styleSheetURL -
styleURL -
styleResource -
Throws:
XMLParsingException
Method Detail

getName

public java.lang.String getName()
Returns:
the name - machine code - of the style

getTitle

public java.lang.String getTitle()
Returns:
the title (human readable) of the style

getAbstract

public java.lang.String getAbstract()
Returns:
a short narrative description of the style

getLegendURL

public LegendURL[] getLegendURL()
Returns:
an array of LegendURL objects that defines the location, size and format of the legend graphics

getStyleSheetURL

public StyleSheetURL getStyleSheetURL()
Returns:
StyleSheeetURL that provides symbology information for each style of a layer.

getStyleURL

public 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.

Returns:
the style URL data

getStyleResource

public java.net.URL getStyleResource()
Returns:
the URL where to access the XML (SLD) document definingthe style

getStyleContent

public UserStyle getStyleContent()
returns the content of the style as SLD style object

Returns:
instance of org.deegree.graphics.sld.Style

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org