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.jdom2.Element element​(int line,
                                         int col,
                                         String name)
        Specified by:
        element in interface org.jdom2.JDOMFactory
        Overrides:
        element in class org.jdom2.DefaultJDOMFactory
      • element

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

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

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