Package com.luciad.wms.server.model
Class TLcdWMSCapabilities
java.lang.Object
com.luciad.wms.server.model.ALcdWMSCapabilities
com.luciad.wms.server.model.TLcdWMSCapabilities
- All Implemented Interfaces:
ILcdCloneable,Cloneable
This class is an implementation of the
ALcdWMSCapabilities interface.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new emptyTLcdWMSCapabilitiesinstance.TLcdWMSCapabilities(ALcdWMSCapabilities aCapabilities) Creates a newTLcdWMSCapabilitiesinstance based on the given capabilities. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescribeLayerFormat(String aDescribeLayerFormatAsMIMEType) Adds a describe layer format to be published.voidaddFeatureInfoFormat(String aFeatureInfoFormatAsMIMEType) Adds a feature info format to be published.voidaddLegendGraphicFormat(String aLegendGraphicFormatAsMIMEType) Adds a legend graphic format to be published.voidaddMapFormat(String aMapFormatAsMIMEType) Adds a map format to be published.voidaddRootWMSLayer(ALcdWMSLayer aRootLayer) Adds a top-level layer.voidaddSpatialReferenceSystem(String aSpatialReferenceSystem) Adds a spatial reference system to be published.clone()Returns a clone of this object.findWMSLayer(String aLayerName) Find theALcdWMSLayerobject for a layer name.getDescribeLayerFormat(int aIndex) Returns the describe layer format at a given index (MIME type).intReturns the number of describe layer formats.getFeatureInfoFormat(int aIndex) Returns the feature info format at a given index (MIME type).intReturns the number of feature info formats.getLegendGraphicFormat(int aIndex) Returns the legend graphic format at a given index (MIME type).intReturns the number of legend graphic formats.Returns the path of the root folder from which map data is loaded.getMapFormat(int aIndex) Returns the map format at a given index (MIME type).intReturns the number of map formats.getRootWMSLayer(int aIndex) Returns the top-level layer at an index.intReturns the number of root layers.intgetRootWMSLayerIndex(ALcdWMSLayer aLayer) Returns the index of a top-level layer in the list.getSpatialReferenceSystem(int aIndex) Returns the published spatial reference system (SRS) at an index.intReturns the number of published spatial reference systems (SRS).Returns the update sequence value associated with this capabilities object.Returns the service meta data of the WMS.booleanisAllowedStyleID(String aLayerName, String aStyleID) Returns true is a given style id is allowed for a given layer.voidmoveLayerAt(ALcdWMSLayer aRootLayer, int aIndex) Moves a root layer to a different position in the list.voidremoveDescribeLayerFormat(String aDescribeLayerFormatAsMIMEType) Removes a describe layer format that is published.voidremoveFeatureInfoFormat(String aFeatureInfoFormatAsMIMEType) Removes a feature info format to be published.voidremoveLegendGraphicFormat(String aLegendGraphicFormatAsMIMEType) Removes a legend graphic format that is published.voidremoveMapFormat(String aMapFormatAsMIMEType) Removes a map format to be published.voidremoveRootWMSLayer(ALcdWMSLayer aRootLayer) Removes a top-level layer.voidsetMapDataFolder(String aPath) Sets the path of the root folder from which map data is loaded.voidsetUpdateSequence(String aUpdateSequence) Sets the update sequence value for this capabilities object.voidsetWMSServiceMetaData(ALcdWMSServiceMetaData aWMSServiceMetaData) Sets the service meta data for this capabilities object.
-
Constructor Details
-
TLcdWMSCapabilities
public TLcdWMSCapabilities()Creates a new emptyTLcdWMSCapabilitiesinstance. -
TLcdWMSCapabilities
Creates a newTLcdWMSCapabilitiesinstance based on the given capabilities. All content is copied from the given capabilities to this new instance: service metadata, layers, map formats, feature info formats, legend graphic formats, describe layer formats, spatial reference systems, the map data folder and the update sequence parameter. References to non-primitive objects are shared.- Since:
- 2014.0
-
-
Method Details
-
getWMSServiceMetaData
Description copied from class:ALcdWMSCapabilitiesReturns the service meta data of the WMS.- Specified by:
getWMSServiceMetaDatain classALcdWMSCapabilities- Returns:
- the service meta data of the WMS.
-
setWMSServiceMetaData
Sets the service meta data for this capabilities object.- Parameters:
aWMSServiceMetaData- the service meta data.- See Also:
-
getRootWMSLayerCount
public int getRootWMSLayerCount()Description copied from class:ALcdWMSCapabilitiesReturns the number of root layers.- Specified by:
getRootWMSLayerCountin classALcdWMSCapabilities- Returns:
- the number of root layers.
-
getRootWMSLayer
Description copied from class:ALcdWMSCapabilitiesReturns the top-level layer at an index.- Specified by:
getRootWMSLayerin classALcdWMSCapabilities- Parameters:
aIndex- the index of the root layer.- Returns:
- the top-level
ALcdWMSLayerat an index. - Throws:
IndexOutOfBoundsException- if the index is out of bounds.
-
findWMSLayer
Description copied from class:ALcdWMSCapabilitiesFind theALcdWMSLayerobject for a layer name.- Specified by:
findWMSLayerin classALcdWMSCapabilities- Parameters:
aLayerName- aStringwith name.- Returns:
- the requested
ALcdWMSLayer.
-
isAllowedStyleID
Description copied from class:ALcdWMSCapabilitiesReturns true is a given style id is allowed for a given layer.- Specified by:
isAllowedStyleIDin classALcdWMSCapabilities- Parameters:
aLayerName- aStringwith the layername.aStyleID- aStringwith the style id to be checked.- Returns:
- true if the style ID is allowed, else false.
-
addRootWMSLayer
Adds a top-level layer. In order to be fully compliant with the OGC WMS specification and have optimal interoperability with WMS clients, only one top-level layer should be used.- Parameters:
aRootLayer- aALcdWMSLayer.
-
removeRootWMSLayer
Removes a top-level layer.- Parameters:
aRootLayer- aALcdWMSLayer.
-
moveLayerAt
Moves a root layer to a different position in the list.- Parameters:
aRootLayer- anALcdWMSLayer.aIndex- the new list index to which the layer should be moved.
-
getRootWMSLayerIndex
Returns the index of a top-level layer in the list.- Parameters:
aLayer- anALcdWMSLayer.- Returns:
- the index of the specified layer in the list, or -1 if the layer is not found.
-
getMapFormatCount
public int getMapFormatCount()Description copied from class:ALcdWMSCapabilitiesReturns the number of map formats.- Specified by:
getMapFormatCountin classALcdWMSCapabilities- Returns:
- the number of map formats.
-
getMapFormat
Description copied from class:ALcdWMSCapabilitiesReturns the map format at a given index (MIME type).- Specified by:
getMapFormatin classALcdWMSCapabilities- Parameters:
aIndex- the index of the map format.- Returns:
- the map format at a given index (MIME type).
- Throws:
IndexOutOfBoundsException- if invalid index.
-
addMapFormat
Adds a map format to be published.- Parameters:
aMapFormatAsMIMEType- the MIME type of the map format to be published.
-
removeMapFormat
Removes a map format to be published.- Parameters:
aMapFormatAsMIMEType- the MIME type of the map format.
-
getFeatureInfoFormatCount
public int getFeatureInfoFormatCount()Description copied from class:ALcdWMSCapabilitiesReturns the number of feature info formats.- Specified by:
getFeatureInfoFormatCountin classALcdWMSCapabilities- Returns:
- the number of feature info formats.
-
getFeatureInfoFormat
Description copied from class:ALcdWMSCapabilitiesReturns the feature info format at a given index (MIME type).- Specified by:
getFeatureInfoFormatin classALcdWMSCapabilities- Parameters:
aIndex- the index of the feature info format.- Returns:
- the feature info format at a given index (MIME type).
- Throws:
IndexOutOfBoundsException- if invalid index.
-
addFeatureInfoFormat
Adds a feature info format to be published.- Parameters:
aFeatureInfoFormatAsMIMEType- the MIME type of the feature info format to be published.
-
removeFeatureInfoFormat
Removes a feature info format to be published.- Parameters:
aFeatureInfoFormatAsMIMEType- the MIME type of the feature info format.
-
getLegendGraphicFormatCount
public int getLegendGraphicFormatCount()Description copied from class:ALcdWMSCapabilitiesReturns the number of legend graphic formats.- Overrides:
getLegendGraphicFormatCountin classALcdWMSCapabilities- Returns:
- the number of legend graphic formats.
-
getLegendGraphicFormat
Description copied from class:ALcdWMSCapabilitiesReturns the legend graphic format at a given index (MIME type).- Overrides:
getLegendGraphicFormatin classALcdWMSCapabilities- Parameters:
aIndex- the index of the legend graphic format.- Returns:
- the legend graphic format at a given index (MIME type).
- Throws:
IndexOutOfBoundsException- if invalid index.
-
addLegendGraphicFormat
Adds a legend graphic format to be published.- Parameters:
aLegendGraphicFormatAsMIMEType- the MIME type of the legend graphic format to be published.
-
removeLegendGraphicFormat
Removes a legend graphic format that is published.- Parameters:
aLegendGraphicFormatAsMIMEType- the MIME type of the legend graphic format.
-
getDescribeLayerFormatCount
public int getDescribeLayerFormatCount()Description copied from class:ALcdWMSCapabilitiesReturns the number of describe layer formats.- Overrides:
getDescribeLayerFormatCountin classALcdWMSCapabilities- Returns:
- the number of describe layer formats.
-
getDescribeLayerFormat
Description copied from class:ALcdWMSCapabilitiesReturns the describe layer format at a given index (MIME type).- Overrides:
getDescribeLayerFormatin classALcdWMSCapabilities- Parameters:
aIndex- the index of the describe layer format.- Returns:
- the describe layer format at a given index (MIME type).
- Throws:
IndexOutOfBoundsException- if invalid index.
-
addDescribeLayerFormat
Adds a describe layer format to be published.- Parameters:
aDescribeLayerFormatAsMIMEType- the MIME type of the describe layer format to be published.
-
removeDescribeLayerFormat
Removes a describe layer format that is published.- Parameters:
aDescribeLayerFormatAsMIMEType- the MIME type of the describe layer format.
-
addSpatialReferenceSystem
Adds a spatial reference system to be published.- Parameters:
aSpatialReferenceSystem- the spatial reference system to add.
-
getSpatialReferenceSystemCount
public int getSpatialReferenceSystemCount()Description copied from class:ALcdWMSCapabilitiesReturns the number of published spatial reference systems (SRS).- Specified by:
getSpatialReferenceSystemCountin classALcdWMSCapabilities- Returns:
- the number of published spatial reference systems (SRS).
-
getSpatialReferenceSystem
Description copied from class:ALcdWMSCapabilitiesReturns the published spatial reference system (SRS) at an index.- Specified by:
getSpatialReferenceSystemin classALcdWMSCapabilities- Parameters:
aIndex- the index of the spatial reference system.- Returns:
- the published spatial reference system (SRS) at an index.
- Throws:
IndexOutOfBoundsException- if index is out of bounds.
-
setMapDataFolder
Sets the path of the root folder from which map data is loaded.- Parameters:
aPath- the path of the root folder from which map data is loaded.- See Also:
-
getMapDataFolder
Description copied from class:ALcdWMSCapabilitiesReturns the path of the root folder from which map data is loaded.- Specified by:
getMapDataFolderin classALcdWMSCapabilities- Returns:
- the path of the root folder from which map data is loaded.
-
getUpdateSequence
Description copied from class:ALcdWMSCapabilitiesReturns the update sequence value associated with this capabilities object.- Specified by:
getUpdateSequencein classALcdWMSCapabilities- Returns:
- the update sequence value associated with this capabilities object.
-
setUpdateSequence
Sets the update sequence value for this capabilities object. When the capabilities have been updated (e.g. a new layer), this method should be called to indicate a new version.- Parameters:
aUpdateSequence- the update sequence value for this capabilities object.
-
clone
Returns a clone of this object. All content is shared except for the data structures listing the layers, formats (map, feature info, legend graphic, describe layer) and reference systems; these are cloned.- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classALcdWMSCapabilities- Returns:
- a clone of this object.
- Since:
- 2014.0
- See Also:
-