Class ClassificationImpl

  • All Implemented Interfaces:
    Serializable, javax.xml.registry.infomodel.Classification, javax.xml.registry.infomodel.ExtensibleObject, javax.xml.registry.infomodel.RegistryObject

    public class ClassificationImpl
    extends RegistryObjectImpl
    implements javax.xml.registry.infomodel.Classification, Serializable
    Implementation of Classification interface
    Author:
    Bobby Bissett
    See Also:
    Serialized Form
    • Constructor Detail

      • ClassificationImpl

        public ClassificationImpl()
        Default constructor
      • ClassificationImpl

        public ClassificationImpl​(javax.xml.registry.infomodel.ClassificationScheme scheme,
                                  String name,
                                  String value)
      • ClassificationImpl

        public ClassificationImpl​(javax.xml.registry.infomodel.Concept concept)
    • Method Detail

      • getConcept

        public javax.xml.registry.infomodel.Concept getConcept()
                                                        throws javax.xml.registry.JAXRException
        Gets the Concept that is classifying the object.
        Specified by:
        getConcept in interface javax.xml.registry.infomodel.Classification
        Throws:
        javax.xml.registry.JAXRException
      • setConcept

        public void setConcept​(javax.xml.registry.infomodel.Concept concept)
                        throws javax.xml.registry.JAXRException
        Sets the Concept for this classification.
        Specified by:
        setConcept in interface javax.xml.registry.infomodel.Classification
        Throws:
        javax.xml.registry.JAXRException
      • getClassificationScheme

        public javax.xml.registry.infomodel.ClassificationScheme getClassificationScheme()
                                                                                  throws javax.xml.registry.JAXRException
        Get the classifiation scheme
        Specified by:
        getClassificationScheme in interface javax.xml.registry.infomodel.Classification
        Throws:
        javax.xml.registry.JAXRException
      • setClassificationScheme

        public void setClassificationScheme​(javax.xml.registry.infomodel.ClassificationScheme classificationScheme)
                                     throws javax.xml.registry.JAXRException
        Sets the ClassificationScheme for this classification. If this method is called then you must also call setValue method. This method should be used mutually exclusively with the setConcept method.
        Specified by:
        setClassificationScheme in interface javax.xml.registry.infomodel.Classification
        Throws:
        javax.xml.registry.JAXRException
      • getValue

        public String getValue()
                        throws javax.xml.registry.JAXRException
        Gets the value of the classification. If it is an internal Classification, then return the value of the concept.
        Specified by:
        getValue in interface javax.xml.registry.infomodel.Classification
        Throws:
        javax.xml.registry.JAXRException
      • setValue

        public void setValue​(String value)
        Set the classification value. This causes the classification to become external if it is not already.
        Specified by:
        setValue in interface javax.xml.registry.infomodel.Classification
      • getClassifiedObject

        public javax.xml.registry.infomodel.RegistryObject getClassifiedObject()
                                                                        throws javax.xml.registry.JAXRException
        Gets the Object that is being classified.
        Specified by:
        getClassifiedObject in interface javax.xml.registry.infomodel.Classification
        Throws:
        javax.xml.registry.JAXRException
      • setClassifiedObject

        public void setClassifiedObject​(javax.xml.registry.infomodel.RegistryObject object)
                                 throws javax.xml.registry.JAXRException
        Sets the Object that is being classified.
        Specified by:
        setClassifiedObject in interface javax.xml.registry.infomodel.Classification
        Throws:
        javax.xml.registry.JAXRException
      • isExternal

        public boolean isExternal()
        Returns whether or not this is an external (has value, no concept) or internal (gets value from concept) classification.
        Specified by:
        isExternal in interface javax.xml.registry.infomodel.Classification
      • getKey

        public javax.xml.registry.infomodel.Key getKey()
                                                throws javax.xml.registry.JAXRException
        Override the behavior in RegistryObject to return a provider generated id.
        Specified by:
        getKey in interface javax.xml.registry.infomodel.RegistryObject
        Overrides:
        getKey in class RegistryObjectImpl
        Throws:
        javax.xml.registry.JAXRException