public class DefaultResponsibleParty extends DefaultResponsibility implements ResponsibleParty
ResponsibleParty
type has been replaced by Responsibility
to allow more flexible associations of individuals, organisations, and roles.
This ResponsibleParty
interface may be deprecated in GeoAPI 4.0.
Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultResponsibleParty()
Constructs an initially empty responsible party.
|
DefaultResponsibleParty(DefaultResponsibility object)
Constructs a new instance initialized with the values from the specified metadata object.
|
DefaultResponsibleParty(ResponsibleParty object)
Constructs a new instance initialized with the values from the specified metadata object.
|
DefaultResponsibleParty(Role role)
Constructs a responsibility party with the given role.
|
Modifier and Type | Method and Description |
---|---|
static DefaultResponsibleParty |
castOrCopy(ResponsibleParty object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Contact |
getContactInfo()
Deprecated.
As of ISO 19115:2014, replaced by
AbstractParty.getContactInfo() . |
String |
getIndividualName()
Deprecated.
As of ISO 19115:2014, replaced by
getName() in DefaultIndividual . |
InternationalString |
getOrganisationName()
Deprecated.
As of ISO 19115:2014, replaced by
getName() in DefaultOrganisation . |
InternationalString |
getPositionName()
Deprecated.
As of ISO 19115:2014, replaced by
DefaultIndividual.getPositionName() . |
Role |
getRole()
Returns the function performed by the responsible party.
|
void |
setContactInfo(Contact newValue)
Deprecated.
As of ISO 19115:2014, replaced by
AbstractParty.setContactInfo(Collection) . |
void |
setIndividualName(String newValue)
Deprecated.
As of ISO 19115:2014, replaced by
setName(InternationalString) in DefaultIndividual . |
void |
setOrganisationName(InternationalString newValue)
Deprecated.
As of ISO 19115:2014, replaced by
setName(InternationalString) in DefaultOrganisation . |
void |
setPositionName(InternationalString newValue)
Deprecated.
As of ISO 19115:2014, replaced by
DefaultIndividual.setPositionName(InternationalString) . |
void |
setRole(Role newValue)
Sets the function performed by the responsible party.
|
getExtents, getParties, setExtents, setParties
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultResponsibleParty()
public DefaultResponsibleParty(Role role)
role
- The function performed by the responsible party, or null
.public DefaultResponsibleParty(DefaultResponsibility object)
object
- The metadata to copy values from, or null
if none.public DefaultResponsibleParty(ResponsibleParty object)
object
- The metadata to copy values from, or null
if none.castOrCopy(ResponsibleParty)
public static DefaultResponsibleParty castOrCopy(ResponsibleParty object)
null
, then this method returns null
.DefaultResponsibleParty
, then it is returned unchanged.DefaultResponsibleParty
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.@Deprecated public String getIndividualName()
getName()
in DefaultIndividual
.individualName
, organisationName
and positionName
shall be provided.
This implementation returns the name of the first Individual
found in the collection of
parties. If no individual is found in the parties, then this method fallbacks
on the first organisation member.
getIndividualName
in interface ResponsibleParty
null
.@Deprecated public void setIndividualName(String newValue)
setName(InternationalString)
in DefaultIndividual
.individualName
, organisationName
and positionName
shall be provided.
This implementation sets the name of the first Individual
found in the collection of
parties, or create a new individual if no existing instance was found.
newValue
- The new individual name, or null
if none.@Deprecated public InternationalString getOrganisationName()
getName()
in DefaultOrganisation
.individualName
, organisationName
and positionName
shall be provided.
This implementation returns the name of the first Organisation
found in the collection of parties.
getOrganisationName
in interface ResponsibleParty
null
.@Deprecated public void setOrganisationName(InternationalString newValue)
setName(InternationalString)
in DefaultOrganisation
.individualName
, organisationName
and positionName
shall be provided.
This implementation sets the name of the first Organisation
found in the collection of
parties, or create a new organization if no existing instance was found.
newValue
- The new organization name, or null
if none.@Deprecated public InternationalString getPositionName()
DefaultIndividual.getPositionName()
.individualName
, organisationName
and positionName
shall be provided.
This implementation returns the position of the first Individual
found in the collection of
parties. If no individual is found in the parties, then this method fallbacks
on the first organisation member.
getPositionName
in interface ResponsibleParty
null
@Deprecated public void setPositionName(InternationalString newValue)
DefaultIndividual.setPositionName(InternationalString)
.individualName
, organisationName
and positionName
shall be provided.
This implementation sets the position name of the first Individual
found in the collection of
parties, or create a new individual if no existing instance was found.
newValue
- The new position name, or null
if none.@Deprecated public Contact getContactInfo()
AbstractParty.getContactInfo()
.This implementation returns the first non-null contact found in the collection of parties.
getContactInfo
in interface ResponsibleParty
null
.@Deprecated public void setContactInfo(Contact newValue)
AbstractParty.setContactInfo(Collection)
.This implementation sets the contact info in the first party found in the collection of parties.
newValue
- The new contact info, or null
if none.public Role getRole()
getRole
in interface ResponsibleParty
getRole
in class DefaultResponsibility
public void setRole(Role newValue)
setRole
in class DefaultResponsibility
newValue
- The new role.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.