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 CopyrightcastOrCopy(org.opengis.metadata.constraint.LegalConstraints c, Locale locale) Returns the given ISO 19115 metadata as aCopyrightinstance.booleanCompares thisCopyrightwith 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.InternationalStringDeprecated.org.opengis.metadata.citation.ContactISO 19115 metadata property not specified by GPX.getDate()ISO 19115 metadata property determined by theyearfield.Collection<? extends org.opengis.metadata.citation.CitationDate>getDates()ISO 19115 metadata property determined by theyearfield.org.opengis.metadata.citation.DateTypeISO 19115 metadata property fixed toDateType.IN_FORCE.org.opengis.util.InternationalStringISO 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 theauthorfield.getISBN()ISO 19115 metadata property not specified by GPX.getISSN()ISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalStringISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalStringISO 19115 metadata property not specified by GPX.Collection<org.opengis.util.InternationalString>ISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalStringISO 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.RolegetRole()ISO 19115 metadata property fixed toRole.OWNER.org.opengis.metadata.citation.SeriesISO 19115 metadata property not specified by GPX.org.opengis.util.InternationalStringgetTitle()ISO 19115 metadata property not specified by GPX.Collection<org.opengis.metadata.constraint.Restriction>ISO 19115 metadata property determined by thelicensefield.Collection<org.opengis.util.InternationalString>ISO 19115 metadata property not specified by GPX.inthashCode()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, butCopyrightimplementation is robust to null value. This field is mapped to thegetName() responsible party namein ISO 19115 metadata. -
year
The copyright year, ornullif 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, ornullif 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 theauthorfield 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 aCopyrightinstance. 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:
getAccessConstraintsin interfaceorg.opengis.metadata.constraint.LegalConstraints- Returns:
- restrictions or limitations on obtaining the data.
-
getUseConstraints
ISO 19115 metadata property determined by thelicensefield.- Specified by:
getUseConstraintsin 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:
getOtherConstraintsin 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:
getUseLimitationsin 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:
getRolein 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:
getOrganisationNamein interfaceorg.opengis.metadata.citation.ResponsibleParty- Returns:
- name of the organization, or
nullif none.
-
getPositionName
public org.opengis.util.InternationalString getPositionName()ISO 19115 metadata property not specified by GPX.- Specified by:
getPositionNamein interfaceorg.opengis.metadata.citation.ResponsibleParty- Returns:
- position of the individual in the organization, or
nullif none.
-
getIndividualName
ISO 19115 metadata property determined by theauthorfield. This is part of the properties returned bygetParties().- Specified by:
getIndividualNamein interfaceorg.opengis.metadata.citation.ResponsibleParty- Returns:
- name of the party, or
nullif 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:
getContactInfoin interfaceorg.opengis.metadata.citation.ResponsibleParty- Returns:
- contact information for the party.
-
getIdentifiers
Returns citation or party identifiers, which is an empty list.- Specified by:
getIdentifiersin 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:
getTitlein 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:
getAlternateTitlesin interfaceorg.opengis.metadata.citation.Citation- Returns:
- other names for the resource.
-
getDates
ISO 19115 metadata property determined by theyearfield. This is part of the properties returned bygetReferences(). Invoking this method is one of the steps in the path from theLegalConstraintsroot to thegetDate()method.- Specified by:
getDatesin interfaceorg.opengis.metadata.citation.Citation- Returns:
- reference date for the cited resource.
- See Also:
-
getDate
ISO 19115 metadata property determined by theyearfield. This is part of the properties returned bygetDates().- Specified by:
getDatein 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:
getDateTypein 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:
getEditionin interfaceorg.opengis.metadata.citation.Citation- Returns:
- the license version, or
nullif none.
-
getEditionDate
ISO 19115 metadata property not specified by GPX. This is part of the properties returned bygetReferences().- Specified by:
getEditionDatein interfaceorg.opengis.metadata.citation.Citation- Returns:
- the license edition date, or
nullif 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:
getCitedResponsiblePartiesin 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:
getPresentationFormsin 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:
getSeriesin 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:
getOtherCitationDetailsin 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:
getCollectiveTitlein 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:
getISBNin 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:
getISSNin 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 thisCopyrightwith 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
-