com.sun.xml.registry.uddi.infomodel
Class AssociationImpl

java.lang.Object
  extended by com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
      extended by com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
          extended by 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
AssociationImpl()
          Default constructor
AssociationImpl(RegistryObject targetObject, Concept associationType)
           
 
Method Summary
 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.
 
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.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
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 

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 JAXRException
Returns true if the association has been confirmed by the owner of the sourceObject. For intramural Associations always return true.

Specified by:
isConfirmedBySourceOwner in interface Association
Returns:
true if the association has been confirmed by the owner of the sourceObject; false otherwise. For intramural Associations always return true
Throws:
JAXRException - If the JAXR provider encounters an internal error

isConfirmedByTargetOwner

public boolean isConfirmedByTargetOwner()
                                 throws JAXRException
Returns true if the association has been confirmed by the owner of the targetObject. For intramural Associations always return true.

Specified by:
isConfirmedByTargetOwner in interface Association
Returns:
true if the association has been confirmed by the owner of the targetObject; false otherwise. For intramural Associations always return true
Throws:
JAXRException - If the JAXR provider encounters an internal error

setIsConfirmedBySourceOwner

public void setIsConfirmedBySourceOwner(boolean confirmation)
                                 throws JAXRException
Returns 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 JAXRException
Returns 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 JAXRException
Convenience method that returns true if isConfirmedBySourceOwner and isConfirmedByTargetOwner both return true. For intramural Associations always return true.

Specified by:
isConfirmed in interface Association
Returns:
true if the isConfirmedBySourceOwner and isConfirmedByTargetOwner methods both return true; false otherwise. 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:
getSourceObject in interface Association
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:
setSourceObject in interface Association
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:
getTargetObject in interface Association
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:
setTargetObject in interface Association
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:
getAssociationType in interface Association
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:
setAssociationType in interface Association
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 JAXRException
Returns 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:
isExtramural in interface Association
Returns:
true if the sourceObject and/or the targetObject are owned by a User that is different from the User that created the Association; false otherwise
Throws:
JAXRException - If the JAXR provider encounters an internal error

setIsExtramural

public void setIsExtramural(boolean extramural)
                     throws JAXRException
Returns 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


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.