Class AbstractDescriptorType

    • Constructor Detail

      • AbstractDescriptorType

        protected AbstractDescriptorType​(DescriptorType parent,
                                         Class descriptorClass,
                                         Grammar grammar)
        Constructor.
        Parameters:
        parent - the parent of this type
        descriptorClass - the class that implements this descriptor
        grammar - grammar for this type (or null if none).
    • Method Detail

      • setDescriptorIo

        protected void setDescriptorIo​(DescriptorIo descriptorIo)
        Set the IO class for this descriptor type.
        Parameters:
        descriptorIo - the IO class
      • getGrammar

        public Grammar getGrammar()
        Get the grammar for this descriptor type.
        Specified by:
        getGrammar in interface DescriptorType
        Returns:
        grammar
      • addTag

        public void addTag​(DescriptorTag tag)
        Add a descriptor tag to this descriptor type.
        Specified by:
        addTag in interface DescriptorType
        Parameters:
        tag - the tag to add.
      • element

        public org.jdom.Element element​(String name)
        Specified by:
        element in interface org.jdom.JDOMFactory
        Overrides:
        element in class org.jdom.DefaultJDOMFactory
      • element

        public org.jdom.Element element​(String name,
                                        org.jdom.Namespace namespace)
        Specified by:
        element in interface org.jdom.JDOMFactory
        Overrides:
        element in class org.jdom.DefaultJDOMFactory
      • document

        public org.jdom.Document document​(org.jdom.Element rootElement)
        Create a JDOM Document.
        Specified by:
        document in interface org.jdom.JDOMFactory
        Overrides:
        document in class org.jdom.DefaultJDOMFactory
        Parameters:
        rootElement - the root element for the document
        Returns:
        the document created
      • getJDOMFactory

        public org.jdom.JDOMFactory getJDOMFactory()
        Specified by:
        getJDOMFactory in interface DescriptorType
        Returns:
        JDOM Factory that can create typed descriptor elements.