Class AssociationImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.AssociationImpl
-
- All Implemented Interfaces:
Serializable,javax.xml.registry.infomodel.Association,javax.xml.registry.infomodel.ExtensibleObject,javax.xml.registry.infomodel.RegistryObject
public class AssociationImpl extends RegistryObjectImpl implements javax.xml.registry.infomodel.Association, Serializable
Implementation of Association interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssociationImpl()Default constructorAssociationImpl(javax.xml.registry.infomodel.RegistryObject targetObject, javax.xml.registry.infomodel.Concept associationType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateKey()javax.xml.registry.infomodel.ConceptgetAssociationType()Gets the predefined association type for this Association.javax.xml.registry.infomodel.RegistryObjectgetSourceObject()Gets the Object that is the source of this Association.javax.xml.registry.infomodel.RegistryObjectgetTargetObject()Gets the Object that is the target of this Association.booleanisConfirmed()Convenience method that returns true if isConfirmedBySourceOwner and isConfirmedByTargetOwner both return true.booleanisConfirmedBySourceOwner()Returns true if the association has been confirmed by the owner of the sourceObject.booleanisConfirmedByTargetOwner()Returns true if the association has been confirmed by the owner of the targetObject.booleanisExtramural()Returns true if the sourceObject and targetObject are owned by two different Users.voidsetAssociationType(javax.xml.registry.infomodel.Concept associationType)Sets the predefined association type for this Association.voidsetIsConfirmedBySourceOwner(boolean confirmation)Returns true if the association has been confirmed by the owner of the sourceObject.voidsetIsConfirmedByTargetOwner(boolean confirmation)Returns true if the association has been confirmed by the owner of the targetObject.voidsetIsExtramural(boolean extramural)Returns true if the sourceObject and targetObject are owned by two different Users.voidsetSourceObject(javax.xml.registry.infomodel.RegistryObject srcObject)Sets the Object that is the source of this Association.voidsetTargetObject(javax.xml.registry.infomodel.RegistryObject targetObject)Sets the Object that is the target of this Association.-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
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, toXML
-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
getSlot, getSlots
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
-
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
addAssociation, 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, toXML
-
-
-
-
Constructor Detail
-
AssociationImpl
public AssociationImpl()
Default constructor
-
AssociationImpl
public AssociationImpl(javax.xml.registry.infomodel.RegistryObject targetObject, javax.xml.registry.infomodel.Concept associationType) throws javax.xml.registry.JAXRException- Throws:
javax.xml.registry.JAXRException
-
-
Method Detail
-
isConfirmedBySourceOwner
public boolean isConfirmedBySourceOwner() throws javax.xml.registry.JAXRExceptionReturns true if the association has been confirmed by the owner of the sourceObject. For intramural Associations always return true.- Specified by:
isConfirmedBySourceOwnerin interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
isConfirmedByTargetOwner
public boolean isConfirmedByTargetOwner() throws javax.xml.registry.JAXRExceptionReturns true if the association has been confirmed by the owner of the targetObject. For intramural Associations always return true.- Specified by:
isConfirmedByTargetOwnerin interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
setIsConfirmedBySourceOwner
public void setIsConfirmedBySourceOwner(boolean confirmation) throws javax.xml.registry.JAXRExceptionReturns true if the association has been confirmed by the owner of the sourceObject. For intramural Associations always return true.- Throws:
javax.xml.registry.JAXRException
-
setIsConfirmedByTargetOwner
public void setIsConfirmedByTargetOwner(boolean confirmation) throws javax.xml.registry.JAXRExceptionReturns true if the association has been confirmed by the owner of the targetObject. For intramural Associations always return true.- Throws:
javax.xml.registry.JAXRException
-
isConfirmed
public boolean isConfirmed() throws javax.xml.registry.JAXRExceptionConvenience method that returns true if isConfirmedBySourceOwner and isConfirmedByTargetOwner both return true. For intramural Associations always return true.- Specified by:
isConfirmedin interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
getSourceObject
public javax.xml.registry.infomodel.RegistryObject getSourceObject() throws javax.xml.registry.JAXRExceptionGets the Object that is the source of this Association.- Specified by:
getSourceObjectin interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
setSourceObject
public void setSourceObject(javax.xml.registry.infomodel.RegistryObject srcObject) throws javax.xml.registry.JAXRExceptionSets the Object that is the source of this Association.- Specified by:
setSourceObjectin interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
getTargetObject
public javax.xml.registry.infomodel.RegistryObject getTargetObject() throws javax.xml.registry.JAXRExceptionGets the Object that is the target of this Association.- Specified by:
getTargetObjectin interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
setTargetObject
public void setTargetObject(javax.xml.registry.infomodel.RegistryObject targetObject) throws javax.xml.registry.JAXRExceptionSets the Object that is the target of this Association.- Specified by:
setTargetObjectin interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
getAssociationType
public javax.xml.registry.infomodel.Concept getAssociationType() throws javax.xml.registry.JAXRExceptionGets the predefined association type for this Association.- Specified by:
getAssociationTypein interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
setAssociationType
public void setAssociationType(javax.xml.registry.infomodel.Concept associationType) throws javax.xml.registry.JAXRExceptionSets the predefined association type for this Association.- Specified by:
setAssociationTypein interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
isExtramural
public boolean isExtramural() throws javax.xml.registry.JAXRExceptionReturns true if the sourceObject and targetObject are owned by two different Users. An Extramural Association must be made bilateral by the User that is not the creator of the Extramural Association, in order for it to be visible to third parties.- Specified by:
isExtramuralin interfacejavax.xml.registry.infomodel.Association- Throws:
javax.xml.registry.JAXRException
-
setIsExtramural
public void setIsExtramural(boolean extramural) throws javax.xml.registry.JAXRExceptionReturns true if the sourceObject and targetObject are owned by two different Users. An Extramural Association must be made bilateral by the User that is not the creator of the Extramural Association, in order for it to be visible to third parties.- Throws:
javax.xml.registry.JAXRException
-
createKey
public void createKey() throws javax.xml.registry.JAXRException- Throws:
javax.xml.registry.JAXRException
-
-