Class MetaDataObject

    • Field Detail

      • fragmentIdentifier

        protected String fragmentIdentifier
        The fragment identifier.
      • description

        protected org.jdom2.Element description
        The description.
    • Constructor Detail

      • MetaDataObject

        public MetaDataObject​(org.jdom2.Element describingElement)
        Instantiates a new meta data object.
        Parameters:
        describingElement - the element rooting the subtree that describes an entity
    • Method Detail

      • setAbout

        public void setAbout​(MetaDataHolder about)
        Sets the about.
        Parameters:
        about - the path to the entity described by this object
      • setAbout

        public void setAbout​(MetaDataHolder about,
                             String fragmentIdentifier)
        Sets the about.
        Parameters:
        about - the path to the entity described by this object
        fragmentIdentifier - the fragment identifier pointing into about
      • getAbout

        public String getAbout()
        Gets the about.
        Returns:
        the path to the entity described by this object
      • injectDescription

        public abstract void injectDescription​(org.jdom2.Element parent)
        Inject the description into parent.
        Parameters:
        parent - the parent element that will host the description
      • getXmlDescription

        public org.jdom2.Element getXmlDescription()
        Get the XML description of getAbout().
        Returns:
        the XML subtree rooting the description
      • equalsPathNoMatter

        public boolean equalsPathNoMatter​(MetaDataObject otherMeta)
        Checks if two meta data objects are equal, but it neglects the paths to the meta data holder. Thus, it just checks the fragment identifier and the actual meta data
        Parameters:
        otherMeta - the other meta data object
        Returns:
        true, if both objects are equal w/o respect to the path