com.moximedia.ows.wms
Class WmsPortalResource

java.lang.Object
  extended bycom.moximedia.ows.wms.WmsPortalResource
All Implemented Interfaces:
java.io.Serializable

public class WmsPortalResource
extends java.lang.Object
implements java.io.Serializable

Stores a named url to a WMS capabilities.

Author:
Doug Cates - www.moximedia.com
See Also:
Serialized Form

Constructor Summary
WmsPortalResource()
          Creates a new instance of WmsPortalResource
WmsPortalResource(java.lang.String name, java.lang.String url)
          Creates a new instance of WmsPortalResource
 
Method Summary
 java.lang.String getName()
          Gets the name for the resource.
 java.lang.String getSrs()
          Gets the srs for the resource, usually null.
 java.lang.String getUrl()
          Gets the url for the resource.
 void setName(java.lang.String name)
          Sets the name for the resource.
 void setSrs(java.lang.String srs)
          Sets the srs for the resource.
 void setUrl(java.lang.String url)
          Sets the url for the resource.
 void setXmlAttribute(java.lang.String element, java.lang.String name, java.lang.String value)
          Sets one of the attributes of this object using a string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WmsPortalResource

public WmsPortalResource()
Creates a new instance of WmsPortalResource


WmsPortalResource

public WmsPortalResource(java.lang.String name,
                         java.lang.String url)
Creates a new instance of WmsPortalResource

Parameters:
name - The name of the resource.
url - The complete URL to the capabilities.
Method Detail

setName

public void setName(java.lang.String name)
Sets the name for the resource.

Parameters:
name - The name of the resource.

getName

public java.lang.String getName()
Gets the name for the resource.

Returns:
name The name of the resource.

setSrs

public void setSrs(java.lang.String srs)
Sets the srs for the resource. Only used if the capabilities response does not contain the proper SRS, like brain-dead ESRI older impmentations.

Parameters:
srs - The srs of the resource.

getSrs

public java.lang.String getSrs()
Gets the srs for the resource, usually null. Only used if the capabilities response does not contain the proper SRS, like brain-dead ESRI older impmentations.

Returns:
srs The url of the resource.

setUrl

public void setUrl(java.lang.String url)
Sets the url for the resource.

Parameters:
url - The url of the resource.

getUrl

public java.lang.String getUrl()
Gets the url for the resource.

Returns:
url The url of the resource.

setXmlAttribute

public void setXmlAttribute(java.lang.String element,
                            java.lang.String name,
                            java.lang.String value)
Sets one of the attributes of this object using a string value. This method should only be called from the SAX event handler.

Parameters:
element - The XML element tag containing this attribute.
name - The XML attribute name.
value - The XML attribute value.


Internet Mapping Framework for OpenGIS Java Object Model API (v1.3.007)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.