Class 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 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.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 javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • isConfirmedByTargetOwner

        public boolean isConfirmedByTargetOwner()
                                         throws javax.xml.registry.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 javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • setIsConfirmedBySourceOwner

        public void setIsConfirmedBySourceOwner​(boolean confirmation)
                                         throws javax.xml.registry.JAXRException
        Returns 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.JAXRException
        Returns 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.JAXRException
        Convenience method that returns true if isConfirmedBySourceOwner and isConfirmedByTargetOwner both return true. For intramural Associations always return true.
        Specified by:
        isConfirmed in interface javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • getSourceObject

        public javax.xml.registry.infomodel.RegistryObject getSourceObject()
                                                                    throws javax.xml.registry.JAXRException
        Gets the Object that is the source of this Association.
        Specified by:
        getSourceObject in interface javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • setSourceObject

        public void setSourceObject​(javax.xml.registry.infomodel.RegistryObject srcObject)
                             throws javax.xml.registry.JAXRException
        Sets the Object that is the source of this Association.
        Specified by:
        setSourceObject in interface javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • getTargetObject

        public javax.xml.registry.infomodel.RegistryObject getTargetObject()
                                                                    throws javax.xml.registry.JAXRException
        Gets the Object that is the target of this Association.
        Specified by:
        getTargetObject in interface javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • setTargetObject

        public void setTargetObject​(javax.xml.registry.infomodel.RegistryObject targetObject)
                             throws javax.xml.registry.JAXRException
        Sets the Object that is the target of this Association.
        Specified by:
        setTargetObject in interface javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • getAssociationType

        public javax.xml.registry.infomodel.Concept getAssociationType()
                                                                throws javax.xml.registry.JAXRException
        Gets the predefined association type for this Association.
        Specified by:
        getAssociationType in interface javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • setAssociationType

        public void setAssociationType​(javax.xml.registry.infomodel.Concept associationType)
                                throws javax.xml.registry.JAXRException
        Sets the predefined association type for this Association.
        Specified by:
        setAssociationType in interface javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • isExtramural

        public boolean isExtramural()
                             throws javax.xml.registry.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 javax.xml.registry.infomodel.Association
        Throws:
        javax.xml.registry.JAXRException
      • setIsExtramural

        public void setIsExtramural​(boolean extramural)
                             throws javax.xml.registry.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:
        javax.xml.registry.JAXRException
      • createKey

        public void createKey()
                       throws javax.xml.registry.JAXRException
        Throws:
        javax.xml.registry.JAXRException