Class ClassificationImpl

    • Constructor Detail

      • ClassificationImpl

        public ClassificationImpl()
        Default constructor
      • ClassificationImpl

        public ClassificationImpl​(Concept concept)
    • Method Detail

      • getConcept

        public Concept getConcept()
                           throws JAXRException
        Gets the Concept that is classifying the object.
        Specified by:
        getConcept in interface Classification
        Returns:
        the Concept that is classifying the classified object. null if this is a external Classification
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setConcept

        public void setConcept​(Concept concept)
                        throws JAXRException
        Sets the Concept for this classification.
        Specified by:
        setConcept in interface Classification
        Parameters:
        concept - the Concept that is classifying the classified object.
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setClassificationScheme

        public void setClassificationScheme​(ClassificationScheme classificationScheme)
                                     throws 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 Classification
        Parameters:
        classificationScheme - the ClassificationScheme used by this Classification
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getValue

        public String getValue()
                        throws 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 Classification
        Returns:
        the value of the taxonomy element if external Classification; the value of the Concept representing the taxonomy element if internal Classification
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • 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 Classification
        Parameters:
        value - the taxonomy value used by this external Classification
      • setClassifiedObject

        public void setClassifiedObject​(RegistryObject object)
                                 throws JAXRException
        Sets the Object that is being classified.
        Specified by:
        setClassifiedObject in interface Classification
        Parameters:
        object - the RegistryObject that is classified by this Classification
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • 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 Classification
        Returns:
        true if this is an external Classification; false otherwise