Package com.luciad.format.kml22.util
Class TLcdKML22ResourceDescriptor
java.lang.Object
com.luciad.format.kml22.util.TLcdKML22ResourceDescriptor
A descriptor for KML resources.
This class can be used as a generic way to define any KML resource. The equals()
and hashCode
have been overridden so that two TLcdKML22ResourceDescriptor
instances are equal when their internal states are equal.
- Since:
- 10.0
-
Constructor Summary
ConstructorDescriptionTLcdKML22ResourceDescriptor
(TLcdKML22Link aLink, Map<String, String> aParameters) Creates a new resource descriptor with the given parametersTLcdKML22ResourceDescriptor
(String aHref, String aKMLSourceName) Creates a new resource descriptor with the given parameters -
Method Summary
Modifier and TypeMethodDescriptionboolean
getHref()
Gets the href to the resource, if available.Returns an absolute reference to the KML document that requested the resource, if available.getLink()
Gets a link to the resource, if available.Returns the parameters used to retrieve the resource, if available.int
hashCode()
-
Constructor Details
-
TLcdKML22ResourceDescriptor
Creates a new resource descriptor with the given parameters- Parameters:
aHref
- An href to the resource. Can be absolute or relative.aKMLSourceName
- The original document that links to the resource. If aHref is given in a relative manner, this parameter should not be null, so the resource can correctly be identified.
-
TLcdKML22ResourceDescriptor
Creates a new resource descriptor with the given parameters- Parameters:
aLink
- A link to the object, if relevant. Can be null.aParameters
- The parameters used to retrieve the resource.
-
-
Method Details
-
getHref
Gets the href to the resource, if available.- Returns:
- the href to the resource, or null.
-
getLink
Gets a link to the resource, if available.- Returns:
- A TLcdKML22Link, or null.
-
getParameters
Returns the parameters used to retrieve the resource, if available.- Returns:
- A
Map
of parameters used to retrieve the resource, of null.
-
getKMLSourceName
Returns an absolute reference to the KML document that requested the resource, if available.- Returns:
- an absolute reference to the KML document that requested the resource, or null.
-
equals
-
hashCode
public int hashCode()
-