Class ClassificationSchemeImpl

  • All Implemented Interfaces:
    Serializable, javax.xml.registry.infomodel.ClassificationScheme, javax.xml.registry.infomodel.ExtensibleObject, javax.xml.registry.infomodel.RegistryEntry, javax.xml.registry.infomodel.RegistryObject, javax.xml.registry.infomodel.Versionable

    public class ClassificationSchemeImpl
    extends RegistryEntryImpl
    implements javax.xml.registry.infomodel.ClassificationScheme, Serializable
    Implementation of ClassificationScheme interface
    See Also:
    Serialized Form
    • Constructor Detail

      • ClassificationSchemeImpl

        public ClassificationSchemeImpl()
      • ClassificationSchemeImpl

        public ClassificationSchemeImpl​(javax.xml.registry.infomodel.Key key)
      • ClassificationSchemeImpl

        public ClassificationSchemeImpl​(javax.xml.registry.infomodel.Concept concept)
                                 throws javax.xml.registry.JAXRException
        Throws:
        javax.xml.registry.JAXRException
      • ClassificationSchemeImpl

        public ClassificationSchemeImpl​(javax.xml.registry.infomodel.Key key,
                                        String description,
                                        String name)
      • ClassificationSchemeImpl

        public ClassificationSchemeImpl​(String key,
                                        String description,
                                        String name)
      • ClassificationSchemeImpl

        public ClassificationSchemeImpl​(String name,
                                        String description)
    • Method Detail

      • addChildConcept

        public void addChildConcept​(javax.xml.registry.infomodel.Concept concept)
                             throws javax.xml.registry.JAXRException
        Add a child Concept
        Specified by:
        addChildConcept in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException
      • addChildConcepts

        public void addChildConcepts​(Collection concepts)
                              throws javax.xml.registry.JAXRException
        Add a Collection of Concept children. Treat null parameter as empty collection.
        Specified by:
        addChildConcepts in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException
      • removeChildConcept

        public void removeChildConcept​(javax.xml.registry.infomodel.Concept concept)
                                throws javax.xml.registry.JAXRException
        Remove child concept
        Specified by:
        removeChildConcept in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException
      • removeChildConcepts

        public void removeChildConcepts​(Collection concepts)
                                 throws javax.xml.registry.JAXRException
        Remove a Collection of children Concepts. Treat null paramter as empty collection.
        Specified by:
        removeChildConcepts in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException
      • getChildConceptCount

        public int getChildConceptCount()
                                 throws javax.xml.registry.JAXRException
        Get number of children
        Specified by:
        getChildConceptCount in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException
      • getChildrenConcepts

        public Collection getChildrenConcepts()
                                       throws javax.xml.registry.JAXRException
        Get all immediate children Concepts
        Specified by:
        getChildrenConcepts in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException
      • getDescendantConcepts

        public Collection getDescendantConcepts()
                                         throws javax.xml.registry.JAXRException
        Get all descendant Concepts
        Specified by:
        getDescendantConcepts in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException
      • isExternal

        public boolean isExternal()
        Specified by:
        isExternal in interface javax.xml.registry.infomodel.ClassificationScheme
      • isPredefined

        public boolean isPredefined()
      • setPredefined

        public void setPredefined​(boolean predefined)
      • childrenLoaded

        public boolean childrenLoaded()
      • setChildrenLoaded

        public void setChildrenLoaded​(boolean loaded)
      • addExternalLink

        public void addExternalLink​(javax.xml.registry.infomodel.ExternalLink link)
                             throws javax.xml.registry.JAXRException
        Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists, this method throws UnsupportedCapabilityException. See appendix D of specification.
        Specified by:
        addExternalLink in interface javax.xml.registry.infomodel.RegistryObject
        Overrides:
        addExternalLink in class RegistryObjectImpl
        Throws:
        javax.xml.registry.JAXRException
      • addExternalLinks

        public void addExternalLinks​(Collection links)
                              throws javax.xml.registry.JAXRException
        Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists or if the collection contains more than one external link, this method throws UnsupportedCapabilityException. See appendix D of specification.
        Specified by:
        addExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
        Overrides:
        addExternalLinks in class RegistryObjectImpl
        Throws:
        javax.xml.registry.JAXRException
      • setExternalLinks

        public void setExternalLinks​(Collection links)
                              throws javax.xml.registry.JAXRException
        Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists or if the collection contains more than one external link, this method throws UnsupportedCapabilityException. See appendix D of specification.
        Specified by:
        setExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
        Overrides:
        setExternalLinks in class RegistryObjectImpl
        Throws:
        javax.xml.registry.JAXRException
      • getValueType

        public int getValueType()
                         throws javax.xml.registry.JAXRException
        Level 1 method
        Specified by:
        getValueType in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException
      • setValueType

        public void setValueType​(int valueType)
                          throws javax.xml.registry.JAXRException
        Level 1 method
        Specified by:
        setValueType in interface javax.xml.registry.infomodel.ClassificationScheme
        Throws:
        javax.xml.registry.JAXRException