Class Link
java.lang.Object
org.apache.sis.internal.storage.gpx.Link
- All Implemented Interfaces:
org.opengis.metadata.citation.OnlineResource
A link to an external resource (Web page, digital photo, video clip, etc) with additional information.
This element provides 3 properties:
Those properties can be read or modified directly. All methods defined in this class are bridges to
the ISO 19115 metadata model and can be ignored if the user only wants to manipulate the GPX model.
- Since:
- 0.8
- Version:
- 0.8
- Author:
- Johann Sorel (Geomatys), Martin Desruisseaux (Geomatys)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkcastOrCopy(org.opengis.metadata.citation.OnlineResource r, Locale locale) Returns the given ISO 19115 metadata as aLinkinstance.booleanCompares thisLinkwith the given object for equality.ISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalStringISO 19115 metadata property not specified by GPX.org.opengis.metadata.citation.OnLineFunctionISO 19115 metadata property not specified by GPX.ISO 19115 metadata property determined by theurifield.getName()ISO 19115 metadata property determined by thetextfield.ISO 19115 metadata property not specified by GPX.inthashCode()Returns a hash code value for thisLink.toString()
-
Field Details
-
uri
URL of hyper-link.- See Also:
-
text
Text of hyper-link.- See Also:
-
type
MIME type of content (for example "image/jpeg").
-
-
Constructor Details
-
Link
public Link()Creates an initially empty instance. Callers should set at least theurifield after construction. -
Link
Creates a new instance initialized to the given URI.- Parameters:
uri- the URI.
-
-
Method Details
-
castOrCopy
Returns the given ISO 19115 metadata as aLinkinstance. This method copies the data only if needed.- Parameters:
r- the ISO 19115 metadata, ornull.locale- the locale to use for localized strings.- Returns:
- the GPX metadata, or
null.
-
getLinkage
ISO 19115 metadata property determined by theurifield.- Specified by:
getLinkagein interfaceorg.opengis.metadata.citation.OnlineResource- Returns:
- location for on-line access using a URL address or similar scheme.
-
getProtocol
ISO 19115 metadata property not specified by GPX.- Specified by:
getProtocolin interfaceorg.opengis.metadata.citation.OnlineResource- Returns:
- connection protocol to be used.
-
getApplicationProfile
ISO 19115 metadata property not specified by GPX.- Specified by:
getApplicationProfilein interfaceorg.opengis.metadata.citation.OnlineResource- Returns:
- application profile that can be used with the online resource.
-
getName
ISO 19115 metadata property determined by thetextfield.- Specified by:
getNamein interfaceorg.opengis.metadata.citation.OnlineResource- Returns:
- name of the online resource.
-
getDescription
public org.opengis.util.InternationalString getDescription()ISO 19115 metadata property not specified by GPX.- Specified by:
getDescriptionin interfaceorg.opengis.metadata.citation.OnlineResource- Returns:
- text description of what the online resource is/does.
-
getFunction
public org.opengis.metadata.citation.OnLineFunction getFunction()ISO 19115 metadata property not specified by GPX.- Specified by:
getFunctionin interfaceorg.opengis.metadata.citation.OnlineResource- Returns:
- function performed by the online resource.
-
equals
Compares thisLinkwith the given object for equality. -
hashCode
public int hashCode()Returns a hash code value for thisLink. -
toString
-