public class AssociationImpl extends RegistryObjectImpl implements Association, Serializable
| Constructor and Description |
|---|
AssociationImpl()
Default constructor
|
AssociationImpl(RegistryObject targetObject,
Concept associationType) |
| Modifier and Type | Method and Description |
|---|---|
void |
createKey() |
Concept |
getAssociationType()
Gets the predefined association type for this Association.
|
RegistryObject |
getSourceObject()
Gets the Object that is the source of this Association.
|
RegistryObject |
getTargetObject()
Gets the Object that is the target of this Association.
|
boolean |
isConfirmed()
Convenience method that returns true if isConfirmedBySourceOwner and
isConfirmedByTargetOwner both return true.
|
boolean |
isConfirmedBySourceOwner()
Returns true if the association has been confirmed by the owner of the sourceObject.
|
boolean |
isConfirmedByTargetOwner()
Returns true if the association has been confirmed by the owner of the targetObject.
|
boolean |
isExtramural()
Returns true if the sourceObject and targetObject are owned by two different
Users.
|
void |
setAssociationType(Concept associationType)
Sets the predefined association type for this Association.
|
void |
setIsConfirmedBySourceOwner(boolean confirmation)
Returns true if the association has been confirmed by the owner of the sourceObject.
|
void |
setIsConfirmedByTargetOwner(boolean confirmation)
Returns true if the association has been confirmed by the owner of the targetObject.
|
void |
setIsExtramural(boolean extramural)
Returns true if the sourceObject and targetObject are owned by two different
Users.
|
void |
setSourceObject(RegistryObject srcObject)
Sets the Object that is the source of this Association.
|
void |
setTargetObject(RegistryObject targetObject)
Sets the Object that is the target of this Association.
|
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, addSlot, addSlots, areAssociationsLoaded, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getConnection, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getRegistryService, getServiceId, getSubmittingOrganization, isDeleted, isLoaded, isModified, isNew, isRetrieved, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, removeSlot, removeSlots, setAssociations, setAssociationsLoaded, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setIsDeleted, setIsLoaded, setIsModified, setIsNew, setIsRetrieved, setKey, setLifeCycleManager, setName, setObjectType, setRegistryService, setServiceId, setStatusFlags, setSubmittingOrganization, toXMLgetSlot, getSlotsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXMLaddSlot, addSlots, getSlot, getSlots, removeSlot, removeSlotspublic AssociationImpl()
public AssociationImpl(RegistryObject targetObject, Concept associationType) throws JAXRException
JAXRExceptionpublic boolean isConfirmedBySourceOwner()
throws JAXRException
isConfirmedBySourceOwner in interface Associationtrue if the association has been confirmed by the owner of the sourceObject;
false otherwise. For intramural Associations always return trueJAXRException - If the JAXR provider encounters an internal errorpublic boolean isConfirmedByTargetOwner()
throws JAXRException
isConfirmedByTargetOwner in interface Associationtrue if the association has been confirmed by the owner of the targetObject;
false otherwise. For intramural Associations always return trueJAXRException - If the JAXR provider encounters an internal errorpublic void setIsConfirmedBySourceOwner(boolean confirmation)
throws JAXRException
JAXRExceptionpublic void setIsConfirmedByTargetOwner(boolean confirmation)
throws JAXRException
JAXRExceptionpublic boolean isConfirmed()
throws JAXRException
isConfirmed in interface Associationtrue if the isConfirmedBySourceOwner and isConfirmedByTargetOwner methods both return true;
false otherwise. For intramural Associations always return trueJAXRException - If the JAXR provider encounters an internal errorAssociation.isConfirmedBySourceOwner(),
Association.isConfirmedByTargetOwner()public RegistryObject getSourceObject() throws JAXRException
getSourceObject in interface AssociationJAXRException - If the JAXR provider encounters an internal errorpublic void setSourceObject(RegistryObject srcObject) throws JAXRException
setSourceObject in interface AssociationsrcObject - the RegistryObject that is the source object of this AssociationJAXRException - If the JAXR provider encounters an internal errorpublic RegistryObject getTargetObject() throws JAXRException
getTargetObject in interface AssociationJAXRException - If the JAXR provider encounters an internal errorpublic void setTargetObject(RegistryObject targetObject) throws JAXRException
setTargetObject in interface AssociationtargetObject - the RegistryObject that is the target object of this AssociationJAXRException - If the JAXR provider encounters an internal errorpublic Concept getAssociationType() throws JAXRException
getAssociationType in interface AssociationJAXRException - If the JAXR provider encounters an internal errorpublic void setAssociationType(Concept associationType) throws JAXRException
setAssociationType in interface AssociationassociationType - the association type for this Association which is a Concept in the AssociationType ClassificationSchemeJAXRException - If the JAXR provider encounters an internal errorpublic boolean isExtramural()
throws JAXRException
isExtramural in interface Associationtrue if the sourceObject and/or the targetObject are
owned by a User that is different from the User that created the Association;
false otherwiseJAXRException - If the JAXR provider encounters an internal errorpublic void setIsExtramural(boolean extramural)
throws JAXRException
JAXRExceptionpublic void createKey()
throws JAXRException
JAXRExceptionCopyright © 2005–2017 Oracle Corporation. All rights reserved.