Class AbstractParty
java.lang.Object
org.apache.sis.metadata.AbstractMetadata
org.apache.sis.metadata.ModifiableMetadata
org.apache.sis.metadata.iso.ISOMetadata
org.apache.sis.metadata.iso.citation.AbstractParty
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
- Direct Known Subclasses:
DefaultIndividual
,DefaultOrganisation
@TitleProperty(name="name")
@UML(identifier="CI_Party",
specification=ISO_19115)
public class AbstractParty
extends ISOMetadata
Information about the individual and / or organization of the party.
The following property is conditional (i.e. mandatory under some circumstances)
in a well-formed metadata according ISO 19115:
CI_Party
└─name……
Name of the party.Note on International Standard versions
This class is derived from a new type defined in the ISO 19115 international standard published in 2014, while GeoAPI 3.0 is based on the version published in 2003. Consequently this implementation class does not yet implement a GeoAPI interface, but is expected to do so after the next GeoAPI releases. When the interface will become available, all references to this implementation class in Apache SIS will be replaced be references to the
This class is derived from a new type defined in the ISO 19115 international standard published in 2014, while GeoAPI 3.0 is based on the version published in 2003. Consequently this implementation class does not yet implement a GeoAPI interface, but is expected to do so after the next GeoAPI releases. When the interface will become available, all references to this implementation class in Apache SIS will be replaced be references to the
Party
interface.
Limitations
- Instances of this class are not synchronized for multi-threading. Synchronization, if needed, is caller's responsibility.
- Serialized objects of this class are not guaranteed to be compatible with future Apache SIS releases.
Serialization support is appropriate for short term storage or RMI between applications running the
same version of Apache SIS. For long term storage, use
XML
instead.
- Since:
- 0.5
- Version:
- 1.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.ModifiableMetadata
ModifiableMetadata.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection
<org.opengis.metadata.citation.Contact> Contact information for the party.private org.opengis.util.InternationalString
Name of the party.private static final long
Serial number for compatibility with different versions.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty party.AbstractParty
(CharSequence name, org.opengis.metadata.citation.Contact contactInfo) Constructs a party initialized with the specified name and contact information.AbstractParty
(AbstractParty object) Constructs a new instance initialized with the values from the specified metadata object. -
Method Summary
Modifier and TypeMethodDescriptionCollection
<org.opengis.metadata.citation.Contact> Returns the contact information for the party.Collection
<org.opengis.metadata.Identifier> Identifiers of the party.org.opengis.util.InternationalString
getName()
Return the name of the party.void
setContactInfo
(Collection<? extends org.opengis.metadata.citation.Contact> newValues) Sets the contact information for the party.void
setIdentifiers
(Collection<? extends org.opengis.metadata.Identifier> newValues) Sets the identifiers of the party.void
setName
(org.opengis.util.InternationalString newValue) Sets the name of the party.Methods inherited from class org.apache.sis.metadata.iso.ISOMetadata
getIdentifier, getIdentifierMap, getStandard, setIdentifier, transitionTo
Methods inherited from class org.apache.sis.metadata.ModifiableMetadata
checkWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSet
Methods inherited from class org.apache.sis.metadata.AbstractMetadata
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for compatibility with different versions.- See Also:
-
name
private org.opengis.util.InternationalString nameName of the party. -
contactInfo
Contact information for the party.
-
-
Constructor Details
-
AbstractParty
public AbstractParty()Constructs an initially empty party. -
AbstractParty
Constructs a party initialized with the specified name and contact information.- Parameters:
name
- name of the party, ornull
if none.contactInfo
- contact information for the party, ornull
if none.
-
AbstractParty
Constructs a new instance initialized with the values from the specified metadata object. This is a shallow copy constructor, because the other metadata contained in the given object are not recursively copied.- Parameters:
object
- the metadata to copy values from, ornull
if none.
-
-
Method Details
-
getName
@UML(identifier="name", obligation=CONDITIONAL, specification=ISO_19115) public org.opengis.util.InternationalString getName()Return the name of the party.- Returns:
- name of the party.
-
setName
public void setName(org.opengis.util.InternationalString newValue) Sets the name of the party.- Parameters:
newValue
- the new name of the party.
-
getIdentifiers
Identifiers of the party.Unified identifiers view
In this SIS implementation, the collection returned by this method includes the XML identifiers (ID, UUID, etc.), thus providing a unified view of every kind of identifiers associated to this party.XML note: The<mac:identifier>
element marshalled to XML will exclude all the above cited identifiers, for compliance with ISO 19115 model. Those identifiers will appear in other XML elements or attributes.- Specified by:
getIdentifiers
in interfaceIdentifiedObject
- Overrides:
getIdentifiers
in classISOMetadata
- Returns:
- identifiers of the party, or an empty collection if none.
- Since:
- 1.3
- See Also:
-
setIdentifiers
Sets the identifiers of the party.XML identifiers (ID, UUID, etc.), are not affected by this method, unless they are explicitly provided in the given collection.
- Parameters:
newValues
- the new identifiers values.- Since:
- 1.3
-
getContactInfo
@UML(identifier="contactInfo", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.Contact> getContactInfo()Returns the contact information for the party.- Returns:
- contact information for the party.
-
setContactInfo
Sets the contact information for the party.- Parameters:
newValues
- the new contact information for the party.
-