Class RegistryObjectImpl

    • Constructor Detail

      • RegistryObjectImpl

        public RegistryObjectImpl()
        Default constructor
      • RegistryObjectImpl

        public RegistryObjectImpl​(javax.xml.registry.infomodel.Key key)
        Utility constructor used when key is known
      • RegistryObjectImpl

        public RegistryObjectImpl​(javax.xml.registry.infomodel.Key key,
                                  String description,
                                  String name)
        Utility constructor used when key, name, and description are known
    • Method Detail

      • addSlot

        public void addSlot​(javax.xml.registry.infomodel.Slot slot)
                     throws javax.xml.registry.JAXRException
        Override superclass to set isModified
        Specified by:
        addSlot in interface javax.xml.registry.infomodel.ExtensibleObject
        Overrides:
        addSlot in class ExtensibleObjectImpl
        Throws:
        javax.xml.registry.JAXRException
      • addSlots

        public void addSlots​(Collection slots)
                      throws javax.xml.registry.JAXRException
        Override superclass to set isModified
        Specified by:
        addSlots in interface javax.xml.registry.infomodel.ExtensibleObject
        Overrides:
        addSlots in class ExtensibleObjectImpl
        Throws:
        javax.xml.registry.JAXRException
      • removeSlot

        public void removeSlot​(String slotName)
                        throws javax.xml.registry.JAXRException
        Override superclass to set isModified
        Specified by:
        removeSlot in interface javax.xml.registry.infomodel.ExtensibleObject
        Overrides:
        removeSlot in class ExtensibleObjectImpl
        Throws:
        javax.xml.registry.JAXRException
      • removeSlots

        public void removeSlots​(Collection slotNames)
                         throws javax.xml.registry.JAXRException
        Override superclass to set isModified
        Specified by:
        removeSlots in interface javax.xml.registry.infomodel.ExtensibleObject
        Overrides:
        removeSlots in class ExtensibleObjectImpl
        Throws:
        javax.xml.registry.JAXRException
      • addAssociation

        public void addAssociation​(javax.xml.registry.infomodel.Association association)
                            throws javax.xml.registry.JAXRException
        Adds specified Association to use this object as source.
        Specified by:
        addAssociation in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • addAssociations

        public void addAssociations​(Collection associations)
                             throws javax.xml.registry.JAXRException
        Adds specified Associations to use this object as source. Treat null parameter as empty collection.
        Specified by:
        addAssociations in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • removeAssociation

        public void removeAssociation​(javax.xml.registry.infomodel.Association association)
                               throws javax.xml.registry.JAXRException
        Removes specified Association from this object.
        Specified by:
        removeAssociation in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • removeAssociations

        public void removeAssociations​(Collection associations)
                                throws javax.xml.registry.JAXRException
        Removes specified Associations from this object. Treat null parameter as empty collection.
        Specified by:
        removeAssociations in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getAssociations

        public Collection getAssociations()
                                   throws javax.xml.registry.JAXRException
        Gets all Associations where this object is source.
        Specified by:
        getAssociations in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setAssociations

        public void setAssociations​(Collection associations)
                             throws javax.xml.registry.JAXRException
        Replaces all previous Associations from this object with specified Associations. Treat null param as empty collection.
        Specified by:
        setAssociations in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setAssociationsLoaded

        public void setAssociationsLoaded​(boolean loaded)
        Internal method to set if associations are loaded
      • areAssociationsLoaded

        public boolean areAssociationsLoaded()
        Internal method to check if associations are loaded
      • addClassification

        public void addClassification​(javax.xml.registry.infomodel.Classification classification)
                               throws javax.xml.registry.JAXRException
        Adds specified Classification to this object.
        Specified by:
        addClassification in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • addClassifications

        public void addClassifications​(Collection classifications)
                                throws javax.xml.registry.JAXRException
        Adds specified Classifications to this object. Treat null parameter as empty collection.
        Specified by:
        addClassifications in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • removeClassification

        public void removeClassification​(javax.xml.registry.infomodel.Classification classification)
                                  throws javax.xml.registry.JAXRException
        Removes specified Classification from this object.
        Specified by:
        removeClassification in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • removeClassifications

        public void removeClassifications​(Collection classifications)
                                   throws javax.xml.registry.JAXRException
        Removes specified Classifications from this object. Treat null parameter as empty collection.
        Specified by:
        removeClassifications in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getClassifications

        public Collection getClassifications()
                                      throws javax.xml.registry.JAXRException
        Gets the Classification that classify this object.
        Specified by:
        getClassifications in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setClassifications

        public void setClassifications​(Collection classifications)
                                throws javax.xml.registry.JAXRException
        Replaces all previous Classifications with specified Classififications. Treat null param as empty collection.
        Specified by:
        setClassifications in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • addExternalIdentifier

        public void addExternalIdentifier​(javax.xml.registry.infomodel.ExternalIdentifier identifier)
                                   throws javax.xml.registry.JAXRException
        Adds specified ExternalIdentifier to this object.
        Specified by:
        addExternalIdentifier in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • addExternalIdentifiers

        public void addExternalIdentifiers​(Collection identifiers)
                                    throws javax.xml.registry.JAXRException
        Adds specified ExternalIdentifiers to this object. Treat null parameter as empty collection.
        Specified by:
        addExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • removeExternalIdentifier

        public void removeExternalIdentifier​(javax.xml.registry.infomodel.ExternalIdentifier externalIdentifier)
                                      throws javax.xml.registry.JAXRException
        Removes specified ExternalIdentifier from this object.
        Specified by:
        removeExternalIdentifier in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • removeExternalIdentifiers

        public void removeExternalIdentifiers​(Collection externalIdentifiers)
                                       throws javax.xml.registry.JAXRException
        Removes specified ExternalIdentifiers from this object. Treat null parameter as empty collection.
        Specified by:
        removeExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getExternalIdentifiers

        public Collection getExternalIdentifiers()
                                          throws javax.xml.registry.JAXRException
        Returns the ExternalIdentifiers associated with this object.
        Specified by:
        getExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setExternalIdentifiers

        public void setExternalIdentifiers​(Collection externalIdentifiers)
                                    throws javax.xml.registry.JAXRException
        Replaces all previous ExternalIdentifiers with specified ExternalIdentifiers. Treat null param as empty collection.
        Specified by:
        setExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • addExternalLink

        public void addExternalLink​(javax.xml.registry.infomodel.ExternalLink link)
                             throws javax.xml.registry.JAXRException
        Adds specified ExternalLink to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.
        Specified by:
        addExternalLink in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • addExternalLinks

        public void addExternalLinks​(Collection links)
                              throws javax.xml.registry.JAXRException
        Adds specified ExternalLinks to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.
        Specified by:
        addExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • removeExternalLink

        public void removeExternalLink​(javax.xml.registry.infomodel.ExternalLink externalLink)
                                throws javax.xml.registry.JAXRException
        Removes specified ExternalLink from this object.
        Specified by:
        removeExternalLink in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • removeExternalLinks

        public void removeExternalLinks​(Collection externalLinks)
                                 throws javax.xml.registry.JAXRException
        Removes specified ExternalLinks from this object. Treat null parameter as empty collection.
        Specified by:
        removeExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getExternalLinks

        public Collection getExternalLinks()
                                    throws javax.xml.registry.JAXRException
        Returns the ExternalLinks associated with this object.
        Specified by:
        getExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setExternalLinks

        public void setExternalLinks​(Collection links)
                              throws javax.xml.registry.JAXRException
        Sets specified ExternalLinks to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.
        Specified by:
        setExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getDescription

        public javax.xml.registry.infomodel.InternationalString getDescription()
                                                                        throws javax.xml.registry.JAXRException
        Gets the context independent textual description for this object. Description will not be null.
        Specified by:
        getDescription in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setDescription

        public void setDescription​(javax.xml.registry.infomodel.InternationalString description)
                            throws javax.xml.registry.JAXRException
        Set the desciption for the object
        Specified by:
        setDescription in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getName

        public javax.xml.registry.infomodel.InternationalString getName()
                                                                 throws javax.xml.registry.JAXRException
        Gets user friendly context independent name of object in repository.
        Specified by:
        getName in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setName

        public void setName​(javax.xml.registry.infomodel.InternationalString name)
                     throws javax.xml.registry.JAXRException
        Set the name for the object
        Specified by:
        setName in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getKey

        public javax.xml.registry.infomodel.Key getKey()
                                                throws javax.xml.registry.JAXRException
        Get registry key identifying this object
        Specified by:
        getKey in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setKey

        public void setKey​(javax.xml.registry.infomodel.Key key)
                    throws javax.xml.registry.JAXRException
        Set registry key on this object
        Specified by:
        setKey in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getSubmittingOrganization

        public javax.xml.registry.infomodel.Organization getSubmittingOrganization()
                                                                            throws javax.xml.registry.JAXRException
        Specified by:
        getSubmittingOrganization in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setSubmittingOrganization

        public void setSubmittingOrganization​(javax.xml.registry.infomodel.Organization org)
                                       throws javax.xml.registry.JAXRException
        Internal method for setting submitting organization
        Throws:
        javax.xml.registry.JAXRException
      • getConnection

        public javax.xml.registry.Connection getConnection()
                                                    throws javax.xml.registry.JAXRException
        Returns the Connection associated with this object.
        Throws:
        javax.xml.registry.JAXRException
      • getLifeCycleManager

        public javax.xml.registry.LifeCycleManager getLifeCycleManager()
        Specified by:
        getLifeCycleManager in interface javax.xml.registry.infomodel.RegistryObject
      • setLifeCycleManager

        public void setLifeCycleManager​(javax.xml.registry.LifeCycleManager manager)
        Internal method for setting manager when object is created
      • setServiceId

        public void setServiceId​(String serviceId)
      • getServiceId

        public String getServiceId()
      • setRegistryService

        public void setRegistryService​(javax.xml.registry.RegistryService service)
      • getRegistryService

        public javax.xml.registry.RegistryService getRegistryService()
      • setStatusFlags

        public void setStatusFlags​(boolean retrieved,
                                   boolean loaded,
                                   boolean isNew)
      • isLoaded

        public boolean isLoaded()
      • setIsLoaded

        public void setIsLoaded​(boolean loaded)
      • isRetrieved

        public boolean isRetrieved()
      • setIsRetrieved

        public void setIsRetrieved​(boolean retrieved)
      • isNew

        public boolean isNew()
      • setIsNew

        public void setIsNew​(boolean isNew)
      • isModified

        public boolean isModified()
      • setIsModified

        public void setIsModified​(boolean modified)
      • isDeleted

        public boolean isDeleted()
      • setIsDeleted

        public void setIsDeleted​(boolean deleted)
      • toXML

        public String toXML()
                     throws javax.xml.registry.JAXRException
        Implementation may choose to throw an UnsupportedCapabilityException. Currently not implemented.
        Specified by:
        toXML in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getAssociatedObjects

        public Collection getAssociatedObjects()
                                        throws javax.xml.registry.JAXRException
        Level 1 method
        Specified by:
        getAssociatedObjects in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getObjectType

        public javax.xml.registry.infomodel.Concept getObjectType()
                                                           throws javax.xml.registry.JAXRException
        Level 1 method
        Specified by:
        getObjectType in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • setObjectType

        public void setObjectType​(javax.xml.registry.infomodel.Concept objectType)
                           throws javax.xml.registry.JAXRException
        Level 1 method
        Throws:
        javax.xml.registry.JAXRException
      • getAuditTrail

        public Collection getAuditTrail()
                                 throws javax.xml.registry.JAXRException
        Level 1 method
        Specified by:
        getAuditTrail in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException
      • getRegistryPackages

        public Collection getRegistryPackages()
                                       throws javax.xml.registry.JAXRException
        Level 1 method
        Specified by:
        getRegistryPackages in interface javax.xml.registry.infomodel.RegistryObject
        Throws:
        javax.xml.registry.JAXRException