public class TLcdWMSCapabilities extends ALcdWMSCapabilities
ALcdWMSCapabilities
interface.ALcdWMSCapabilities.
Constructor and Description |
---|
TLcdWMSCapabilities()
Creates a new empty
TLcdWMSCapabilities instance. |
TLcdWMSCapabilities(ALcdWMSCapabilities aCapabilities)
Creates a new
TLcdWMSCapabilities instance based on the given capabilities. |
Modifier and Type | Method and Description |
---|---|
void |
addDescribeLayerFormat(String aDescribeLayerFormatAsMIMEType)
Adds a describe layer format to be published.
|
void |
addFeatureInfoFormat(String aFeatureInfoFormatAsMIMEType)
Adds a feature info format to be published.
|
void |
addLegendGraphicFormat(String aLegendGraphicFormatAsMIMEType)
Adds a legend graphic format to be published.
|
void |
addMapFormat(String aMapFormatAsMIMEType)
Adds a map format to be published.
|
void |
addRootWMSLayer(ALcdWMSLayer aRootLayer)
Adds a top-level layer.
|
void |
addSpatialReferenceSystem(String aSpatialReferenceSystem)
Adds a spatial reference system to be published.
|
Object |
clone()
Returns a clone of this object.
|
ALcdWMSLayer |
findWMSLayer(String aLayerName)
Find the
ALcdWMSLayer object for a layer name. |
String |
getDescribeLayerFormat(int aIndex)
Returns the describe layer format at a given index (MIME type).
|
int |
getDescribeLayerFormatCount()
Returns the number of describe layer formats.
|
String |
getFeatureInfoFormat(int aIndex)
Returns the feature info format at a given index (MIME type).
|
int |
getFeatureInfoFormatCount()
Returns the number of feature info formats.
|
String |
getLegendGraphicFormat(int aIndex)
Returns the legend graphic format at a given index (MIME type).
|
int |
getLegendGraphicFormatCount()
Returns the number of legend graphic formats.
|
String |
getMapDataFolder()
Returns the path of the root folder from which map data is loaded.
|
String |
getMapFormat(int aIndex)
Returns the map format at a given index (MIME type).
|
int |
getMapFormatCount()
Returns the number of map formats.
|
ALcdWMSLayer |
getRootWMSLayer(int aIndex)
Returns the top-level layer at an index.
|
int |
getRootWMSLayerCount()
Returns the number of root layers.
|
int |
getRootWMSLayerIndex(ALcdWMSLayer aLayer)
Returns the index of a top-level layer in the list.
|
String |
getSpatialReferenceSystem(int aIndex)
Returns the published spatial reference system (SRS) at an index.
|
int |
getSpatialReferenceSystemCount()
Returns the number of published spatial reference systems (SRS).
|
String |
getUpdateSequence()
Returns the update sequence value associated with this capabilities object.
|
ALcdWMSServiceMetaData |
getWMSServiceMetaData()
Returns the service meta data of the WMS.
|
boolean |
isAllowedStyleID(String aLayerName,
String aStyleID)
Returns true is a given style id is allowed for a given layer.
|
void |
moveLayerAt(ALcdWMSLayer aRootLayer,
int aIndex)
Moves a root layer to a different position in the list.
|
void |
removeDescribeLayerFormat(String aDescribeLayerFormatAsMIMEType)
Removes a describe layer format that is published.
|
void |
removeFeatureInfoFormat(String aFeatureInfoFormatAsMIMEType)
Removes a feature info format to be published.
|
void |
removeLegendGraphicFormat(String aLegendGraphicFormatAsMIMEType)
Removes a legend graphic format that is published.
|
void |
removeMapFormat(String aMapFormatAsMIMEType)
Removes a map format to be published.
|
void |
removeRootWMSLayer(ALcdWMSLayer aRootLayer)
Removes a top-level layer.
|
void |
setMapDataFolder(String aPath)
Sets the path of the root folder from which map data is loaded.
|
void |
setUpdateSequence(String aUpdateSequence)
Sets the update sequence value for this capabilities object.
|
void |
setWMSServiceMetaData(ALcdWMSServiceMetaData aWMSServiceMetaData)
Sets the service meta data for this capabilities object.
|
public TLcdWMSCapabilities()
TLcdWMSCapabilities
instance.public TLcdWMSCapabilities(ALcdWMSCapabilities aCapabilities)
TLcdWMSCapabilities
instance 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.public ALcdWMSServiceMetaData getWMSServiceMetaData()
ALcdWMSCapabilities
getWMSServiceMetaData
in class ALcdWMSCapabilities
public void setWMSServiceMetaData(ALcdWMSServiceMetaData aWMSServiceMetaData)
aWMSServiceMetaData
- the service meta data.getWMSServiceMetaData()
public int getRootWMSLayerCount()
ALcdWMSCapabilities
getRootWMSLayerCount
in class ALcdWMSCapabilities
public ALcdWMSLayer getRootWMSLayer(int aIndex) throws IndexOutOfBoundsException
ALcdWMSCapabilities
getRootWMSLayer
in class ALcdWMSCapabilities
aIndex
- the index of the root layer.ALcdWMSLayer
at an index.IndexOutOfBoundsException
- if the index is out of bounds.public ALcdWMSLayer findWMSLayer(String aLayerName)
ALcdWMSCapabilities
ALcdWMSLayer
object for a layer name.findWMSLayer
in class ALcdWMSCapabilities
aLayerName
- a String
with name.ALcdWMSLayer
.public boolean isAllowedStyleID(String aLayerName, String aStyleID)
ALcdWMSCapabilities
isAllowedStyleID
in class ALcdWMSCapabilities
aLayerName
- a String
with the layername.aStyleID
- a String
with the style id to be checked.public void addRootWMSLayer(ALcdWMSLayer aRootLayer)
aRootLayer
- a ALcdWMSLayer
.public void removeRootWMSLayer(ALcdWMSLayer aRootLayer)
aRootLayer
- a ALcdWMSLayer
.public void moveLayerAt(ALcdWMSLayer aRootLayer, int aIndex)
aRootLayer
- an ALcdWMSLayer.
aIndex
- the new list index to which the layer should be moved.public int getRootWMSLayerIndex(ALcdWMSLayer aLayer)
aLayer
- an ALcdWMSLayer.
public int getMapFormatCount()
ALcdWMSCapabilities
getMapFormatCount
in class ALcdWMSCapabilities
public String getMapFormat(int aIndex) throws IndexOutOfBoundsException
ALcdWMSCapabilities
getMapFormat
in class ALcdWMSCapabilities
aIndex
- the index of the map format.IndexOutOfBoundsException
- if invalid index.public void addMapFormat(String aMapFormatAsMIMEType)
aMapFormatAsMIMEType
- the MIME type of the map format to be published.public void removeMapFormat(String aMapFormatAsMIMEType)
aMapFormatAsMIMEType
- the MIME type of the map format.public int getFeatureInfoFormatCount()
ALcdWMSCapabilities
getFeatureInfoFormatCount
in class ALcdWMSCapabilities
public String getFeatureInfoFormat(int aIndex) throws IndexOutOfBoundsException
ALcdWMSCapabilities
getFeatureInfoFormat
in class ALcdWMSCapabilities
aIndex
- the index of the feature info format.IndexOutOfBoundsException
- if invalid index.public void addFeatureInfoFormat(String aFeatureInfoFormatAsMIMEType)
aFeatureInfoFormatAsMIMEType
- the MIME type of the feature info format to be published.public void removeFeatureInfoFormat(String aFeatureInfoFormatAsMIMEType)
aFeatureInfoFormatAsMIMEType
- the MIME type of the feature info format.public int getLegendGraphicFormatCount()
ALcdWMSCapabilities
getLegendGraphicFormatCount
in class ALcdWMSCapabilities
public String getLegendGraphicFormat(int aIndex) throws IndexOutOfBoundsException
ALcdWMSCapabilities
getLegendGraphicFormat
in class ALcdWMSCapabilities
aIndex
- the index of the legend graphic format.IndexOutOfBoundsException
- if invalid index.public void addLegendGraphicFormat(String aLegendGraphicFormatAsMIMEType)
aLegendGraphicFormatAsMIMEType
- the MIME type of the legend graphic format to be published.public void removeLegendGraphicFormat(String aLegendGraphicFormatAsMIMEType)
aLegendGraphicFormatAsMIMEType
- the MIME type of the legend graphic format.public int getDescribeLayerFormatCount()
ALcdWMSCapabilities
getDescribeLayerFormatCount
in class ALcdWMSCapabilities
public String getDescribeLayerFormat(int aIndex) throws IndexOutOfBoundsException
ALcdWMSCapabilities
getDescribeLayerFormat
in class ALcdWMSCapabilities
aIndex
- the index of the describe layer format.IndexOutOfBoundsException
- if invalid index.public void addDescribeLayerFormat(String aDescribeLayerFormatAsMIMEType)
aDescribeLayerFormatAsMIMEType
- the MIME type of the describe layer format to be published.public void removeDescribeLayerFormat(String aDescribeLayerFormatAsMIMEType)
aDescribeLayerFormatAsMIMEType
- the MIME type of the describe layer format.public void addSpatialReferenceSystem(String aSpatialReferenceSystem)
aSpatialReferenceSystem
- the spatial reference system to add.public int getSpatialReferenceSystemCount()
ALcdWMSCapabilities
getSpatialReferenceSystemCount
in class ALcdWMSCapabilities
public String getSpatialReferenceSystem(int aIndex) throws IndexOutOfBoundsException
ALcdWMSCapabilities
getSpatialReferenceSystem
in class ALcdWMSCapabilities
aIndex
- the index of the spatial reference system.IndexOutOfBoundsException
- if index is out of bounds.public void setMapDataFolder(String aPath)
aPath
- the path of the root folder from which map data is loaded.getMapDataFolder()
public String getMapDataFolder()
ALcdWMSCapabilities
getMapDataFolder
in class ALcdWMSCapabilities
public String getUpdateSequence()
ALcdWMSCapabilities
getUpdateSequence
in class ALcdWMSCapabilities
public void setUpdateSequence(String aUpdateSequence)
aUpdateSequence
- the update sequence value for this capabilities object.public Object clone()
clone
in interface ILcdCloneable
clone
in class ALcdWMSCapabilities
Object.clone()