Class Copyright
java.lang.Object
org.apache.sis.internal.storage.gpx.Copyright
- All Implemented Interfaces:
org.opengis.metadata.citation.Citation
,org.opengis.metadata.citation.CitationDate
,org.opengis.metadata.citation.ResponsibleParty
,org.opengis.metadata.constraint.Constraints
,org.opengis.metadata.constraint.LegalConstraints
public final class Copyright
extends Object
implements org.opengis.metadata.constraint.LegalConstraints, org.opengis.metadata.citation.ResponsibleParty, org.opengis.metadata.citation.Citation, org.opengis.metadata.citation.CitationDate
Information about the copyright holder and any license governing use of a GPX file.
Information in this element allow to place data into the public domain or grant additional usage rights.
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:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Copyright
castOrCopy
(org.opengis.metadata.constraint.LegalConstraints c, Locale locale) Returns the given ISO 19115 metadata as aCopyright
instance.boolean
Compares thisCopyright
with the given object for equality.Collection
<org.opengis.metadata.constraint.Restriction> ISO 19115 metadata property fixed toRestriction.COPYRIGHT
.Collection
<org.opengis.util.InternationalString> ISO 19115 metadata property not specified by GPX.Collection
<org.opengis.metadata.citation.ResponsibleParty> ISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalString
Deprecated.org.opengis.metadata.citation.Contact
ISO 19115 metadata property not specified by GPX.getDate()
ISO 19115 metadata property determined by theyear
field.Collection
<? extends org.opengis.metadata.citation.CitationDate> getDates()
ISO 19115 metadata property determined by theyear
field.org.opengis.metadata.citation.DateType
ISO 19115 metadata property fixed toDateType.IN_FORCE
.org.opengis.util.InternationalString
ISO 19115 metadata property not specified by GPX.ISO 19115 metadata property not specified by GPX.Collection
<org.opengis.metadata.Identifier> Returns citation or party identifiers, which is an empty list.ISO 19115 metadata property determined by theauthor
field.getISBN()
ISO 19115 metadata property not specified by GPX.getISSN()
ISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalString
ISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalString
ISO 19115 metadata property not specified by GPX.Collection
<org.opengis.util.InternationalString> ISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalString
ISO 19115 metadata property not specified by GPX.Collection
<org.opengis.metadata.citation.PresentationForm> ISO 19115 metadata property fixed toPresentationForm.DOCUMENT_DIGITAL
.org.opengis.metadata.citation.Role
getRole()
ISO 19115 metadata property fixed toRole.OWNER
.org.opengis.metadata.citation.Series
ISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalString
getTitle()
ISO 19115 metadata property not specified by GPX.Collection
<org.opengis.metadata.constraint.Restriction> ISO 19115 metadata property determined by thelicense
field.Collection
<org.opengis.util.InternationalString> ISO 19115 metadata property not specified by GPX.int
hashCode()
Returns a hash code value for thisCopyright
.private Collection
<Copyright> thisOrEmpty
(boolean condition) Returns this object as a singleton if the given condition istrue
, or an empty set if the given condition isfalse
.toString()
Returns a string representation of the copyright statement.
-
Field Details
-
author
The copyright holder. This field is mandatory in principle, butCopyright
implementation is robust to null value. This field is mapped to thegetName() responsible party name
in ISO 19115 metadata. -
year
The copyright year, ornull
if unspecified. This field is mapped to the citation date in ISO 19115 metadata.- See Also:
-
license
Link to an external file containing the license text, ornull
if none. This field is mapped to the online resources in ISO 19115 metadata.
-
-
Constructor Details
-
Copyright
public Copyright()Creates an initially empty instance. Callers should set at least theauthor
field after construction. -
Copyright
Copies properties from the given ISO 19115 metadata.
-
-
Method Details
-
castOrCopy
public static Copyright castOrCopy(org.opengis.metadata.constraint.LegalConstraints c, Locale locale) Returns the given ISO 19115 metadata as aCopyright
instance. This method copies the data only if needed.- Parameters:
c
- the ISO 19115 metadata, ornull
.locale
- the locale to use for localized strings.- Returns:
- the GPX metadata, or
null
.
-
getAccessConstraints
ISO 19115 metadata property fixed toRestriction.COPYRIGHT
.- Specified by:
getAccessConstraints
in interfaceorg.opengis.metadata.constraint.LegalConstraints
- Returns:
- restrictions or limitations on obtaining the data.
-
getUseConstraints
ISO 19115 metadata property determined by thelicense
field.- Specified by:
getUseConstraints
in interfaceorg.opengis.metadata.constraint.LegalConstraints
- Returns:
- restrictions or limitations or warnings on using the data.
-
getOtherConstraints
ISO 19115 metadata property not specified by GPX.- Specified by:
getOtherConstraints
in interfaceorg.opengis.metadata.constraint.LegalConstraints
- Returns:
- other restrictions and legal prerequisites for accessing and using the resource.
-
getUseLimitations
ISO 19115 metadata property not specified by GPX.- Specified by:
getUseLimitations
in interfaceorg.opengis.metadata.constraint.Constraints
- Returns:
- limitation affecting the fitness for use of the resource.
-
getRole
public org.opengis.metadata.citation.Role getRole()ISO 19115 metadata property fixed toRole.OWNER
. This is part of the properties returned bygetResponsibleParties()
.- Specified by:
getRole
in interfaceorg.opengis.metadata.citation.ResponsibleParty
- Returns:
- function performed by the responsible party.
-
getOrganisationName
public org.opengis.util.InternationalString getOrganisationName()ISO 19115 metadata property not specified by GPX. Actually could be theauthor
, but we have no way to know if the author is an individual or an organization.- Specified by:
getOrganisationName
in interfaceorg.opengis.metadata.citation.ResponsibleParty
- Returns:
- name of the organization, or
null
if none.
-
getPositionName
public org.opengis.util.InternationalString getPositionName()ISO 19115 metadata property not specified by GPX.- Specified by:
getPositionName
in interfaceorg.opengis.metadata.citation.ResponsibleParty
- Returns:
- position of the individual in the organization, or
null
if none.
-
getIndividualName
ISO 19115 metadata property determined by theauthor
field. This is part of the properties returned bygetParties()
.- Specified by:
getIndividualName
in interfaceorg.opengis.metadata.citation.ResponsibleParty
- Returns:
- name of the party, or
null
if none.
-
getContactInfo
public org.opengis.metadata.citation.Contact getContactInfo()ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetParties()
.- Specified by:
getContactInfo
in interfaceorg.opengis.metadata.citation.ResponsibleParty
- Returns:
- contact information for the party.
-
getIdentifiers
Returns citation or party identifiers, which is an empty list.- Specified by:
getIdentifiers
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- empty.
-
getTitle
public org.opengis.util.InternationalString getTitle()ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
. It would be the license title if that information was provided.- Specified by:
getTitle
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the license name.
-
getAlternateTitles
ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
.- Specified by:
getAlternateTitles
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- other names for the resource.
-
getDates
ISO 19115 metadata property determined by theyear
field. This is part of the properties returned bygetReferences()
. Invoking this method is one of the steps in the path from theLegalConstraints
root to thegetDate()
method.- Specified by:
getDates
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- reference date for the cited resource.
- See Also:
-
getDate
ISO 19115 metadata property determined by theyear
field. This is part of the properties returned bygetDates()
.- Specified by:
getDate
in interfaceorg.opengis.metadata.citation.CitationDate
- Returns:
- reference date for the cited resource.
-
getDateType
public org.opengis.metadata.citation.DateType getDateType()ISO 19115 metadata property fixed toDateType.IN_FORCE
. This is part of the properties returned bygetDates()
.- Specified by:
getDateType
in interfaceorg.opengis.metadata.citation.CitationDate
- Returns:
- event used for reference date.
-
getEdition
public org.opengis.util.InternationalString getEdition()ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
.- Specified by:
getEdition
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the license version, or
null
if none.
-
getEditionDate
ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
.- Specified by:
getEditionDate
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the license edition date, or
null
if none.
-
getCitedResponsibleParties
ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
. It would be the license author if that information was provided.- Specified by:
getCitedResponsibleParties
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the information for individuals or organisations that are responsible for the license.
-
getPresentationForms
ISO 19115 metadata property fixed toPresentationForm.DOCUMENT_DIGITAL
. This is part of the properties returned bygetReferences()
.- Specified by:
getPresentationForms
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the presentation mode of the license.
-
getSeries
public org.opengis.metadata.citation.Series getSeries()ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
.- Specified by:
getSeries
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the series or aggregate dataset of which the dataset is a part.
-
getOtherCitationDetails
public org.opengis.util.InternationalString getOtherCitationDetails()ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
.- Specified by:
getOtherCitationDetails
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- other details.
-
getCollectiveTitle
Deprecated.ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
.- Specified by:
getCollectiveTitle
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the common title.
-
getISBN
ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
.- Specified by:
getISBN
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the International Standard Book Number.
-
getISSN
ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences()
.- Specified by:
getISSN
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the International Standard Serial Number.
-
thisOrEmpty
Returns this object as a singleton if the given condition istrue
, or an empty set if the given condition isfalse
. -
equals
Compares thisCopyright
with the given object for equality. -
hashCode
public int hashCode()Returns a hash code value for thisCopyright
. -
toString
Returns a string representation of the copyright statement. The statement is formatted in a way similar to the copyright statements found in file header. Example:Copyright 2016 John Smith http://john.smith.com
-