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,Association,ExtensibleObject,RegistryObject
public class AssociationImpl extends RegistryObjectImpl implements Association, Serializable
Implementation of Association interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssociationImpl()Default constructorAssociationImpl(RegistryObject targetObject, Concept associationType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateKey()ConceptgetAssociationType()Gets the predefined association type for this Association.RegistryObjectgetSourceObject()Gets the Object that is the source of this Association.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(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(RegistryObject srcObject)Sets the Object that is the source of this Association.voidsetTargetObject(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(RegistryObject targetObject, Concept associationType) throws JAXRException
- Throws:
JAXRException
-
-
Method Detail
-
isConfirmedBySourceOwner
public boolean isConfirmedBySourceOwner() throws JAXRExceptionReturns true if the association has been confirmed by the owner of the sourceObject. For intramural Associations always return true.- Specified by:
isConfirmedBySourceOwnerin interfaceAssociation- Returns:
trueif the association has been confirmed by the owner of the sourceObject;falseotherwise. For intramural Associations always return true- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
isConfirmedByTargetOwner
public boolean isConfirmedByTargetOwner() throws JAXRExceptionReturns true if the association has been confirmed by the owner of the targetObject. For intramural Associations always return true.- Specified by:
isConfirmedByTargetOwnerin interfaceAssociation- Returns:
trueif the association has been confirmed by the owner of the targetObject;falseotherwise. For intramural Associations always return true- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setIsConfirmedBySourceOwner
public void setIsConfirmedBySourceOwner(boolean confirmation) throws JAXRExceptionReturns true if the association has been confirmed by the owner of the sourceObject. For intramural Associations always return true.- Throws:
JAXRException
-
setIsConfirmedByTargetOwner
public void setIsConfirmedByTargetOwner(boolean confirmation) throws JAXRExceptionReturns true if the association has been confirmed by the owner of the targetObject. For intramural Associations always return true.- Throws:
JAXRException
-
isConfirmed
public boolean isConfirmed() throws JAXRExceptionConvenience method that returns true if isConfirmedBySourceOwner and isConfirmedByTargetOwner both return true. For intramural Associations always return true.- Specified by:
isConfirmedin interfaceAssociation- Returns:
trueif the isConfirmedBySourceOwner and isConfirmedByTargetOwner methods both return true;falseotherwise. For intramural Associations always return true- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
Association.isConfirmedBySourceOwner(),Association.isConfirmedByTargetOwner()
-
getSourceObject
public RegistryObject getSourceObject() throws JAXRException
Gets the Object that is the source of this Association.- Specified by:
getSourceObjectin interfaceAssociation- Returns:
- The RegistryObject that is the source object of this Association
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setSourceObject
public void setSourceObject(RegistryObject srcObject) throws JAXRException
Sets the Object that is the source of this Association.- Specified by:
setSourceObjectin interfaceAssociation- Parameters:
srcObject- the RegistryObject that is the source object of this Association- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getTargetObject
public RegistryObject getTargetObject() throws JAXRException
Gets the Object that is the target of this Association.- Specified by:
getTargetObjectin interfaceAssociation- Returns:
- The RegistryObject that is the target object of this Association
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setTargetObject
public void setTargetObject(RegistryObject targetObject) throws JAXRException
Sets the Object that is the target of this Association.- Specified by:
setTargetObjectin interfaceAssociation- Parameters:
targetObject- the RegistryObject that is the target object of this Association- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getAssociationType
public Concept getAssociationType() throws JAXRException
Gets the predefined association type for this Association.- Specified by:
getAssociationTypein interfaceAssociation- Returns:
- The association type for this Association which is a Concept in the AssociationType ClassificationScheme
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setAssociationType
public void setAssociationType(Concept associationType) throws JAXRException
Sets the predefined association type for this Association.- Specified by:
setAssociationTypein interfaceAssociation- Parameters:
associationType- the association type for this Association which is a Concept in the AssociationType ClassificationScheme- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
isExtramural
public boolean isExtramural() throws 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 interfaceAssociation- Returns:
trueif the sourceObject and/or the targetObject are owned by a User that is different from the User that created the Association;falseotherwise- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setIsExtramural
public void setIsExtramural(boolean extramural) throws 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:
JAXRException
-
createKey
public void createKey() throws JAXRException- Throws:
JAXRException
-
-