Package com.luciad.wms.server.model
Class ALcdWMSLayerStyle
java.lang.Object
com.luciad.wms.server.model.ALcdWMSLayerStyle
- Direct Known Subclasses:
TLcdWMSLayerStyle
Defines a WMS layer style.
This class is a direct representation of the layer style concept introduced in the OGC WMS specification.
A layer style is identified by a name
and represents an available style for a layer.
To describe the style, a number of optional metadata properties are available such as title
,
and abstract
. A client can find this information in the XML capabilities and use the
style name to request the layer in the corresponding style.
To render the layer with the requested style is the responsibility of the layer factories available in the WMS,
represented by the interface ILcdWMSGXYLayerFactory
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Returns an abstract for this layer style.getLegendURL
(int aIndex) Returns theTLcdWMSURL
representing a LegendURL at the given index.int
Returns the number ofTLcdWMSURL
objects representing LegendURLs.abstract String
getName()
Returns the name of the layer style (required to be not null).Returns theTLcdWMSURL
representing a StyleSheetURL.Returns theTLcdWMSURL
representing a StyleURL.abstract String
getTitle()
Returns the title of the layer style.
-
Constructor Details
-
ALcdWMSLayerStyle
public ALcdWMSLayerStyle()
-
-
Method Details
-
getName
Returns the name of the layer style (required to be not null).- Returns:
- the name of the layer style (required to be not null).
-
getTitle
Returns the title of the layer style.- Returns:
- the title of the layer style.
-
getAbstract
Returns an abstract for this layer style.- Returns:
- an abstract for this layer style. Value may be null if no abstract is available.
-
getLegendURLCount
public int getLegendURLCount()Returns the number ofTLcdWMSURL
objects representing LegendURLs. By default, 0 is returned.- Returns:
- the number of
TLcdWMSURL
objects representing LegendURLs.
-
getLegendURL
Returns theTLcdWMSURL
representing a LegendURL at the given index. By default, no LegendURLs are available and anIndexOutOfBoundsException
will be thrown.- Parameters:
aIndex
- the index of theTLcdWMSURL
representing a LegendURL.- Returns:
- the
TLcdWMSURL
representing a LegendURL at the given index. - Throws:
IndexOutOfBoundsException
- if the index value is invalid.
-
getStyleSheetURL
Returns theTLcdWMSURL
representing a StyleSheetURL. By default, no StyleSheetURL is available andnull
is returned.- Returns:
- the
TLcdWMSURL
representing a StyleSheetURL.
-
getStyleURL
Returns theTLcdWMSURL
representing a StyleURL. By default, no StyleURL is available andnull
is returned.- Returns:
- the
TLcdWMSURL
representing a StyleURL.
-