Interface Descriptor

    • Method Detail

      • getFileName

        String getFileName()
        Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.
        Returns:
        the file name
      • getDocument

        org.jdom.Document getDocument()
        Specified by:
        getDocument in interface org.jdom.Parent
        Returns:
        this descriptor as a document
      • getRootElement

        org.jdom.Element getRootElement()
        Returns:
        Root element.
      • addElement

        org.jdom.Element addElement​(DescriptorTag tag,
                                    org.jdom.Element right,
                                    org.jdom.Element rootElement)
        Add an element into the descriptor.
        Parameters:
        tag - Descriptor Tag
        right - Element insert before
        rootElement - Parent element
        Returns:
        The added element
      • getTagByIdentifier

        org.jdom.Element getTagByIdentifier​(DescriptorTag tag,
                                            String value)
        Get elements of a particular descriptor tag whose identifier matches the passed parameter.
        Parameters:
        tag - tag to search for
        value - value for the identifier to match
        Returns:
        the element that matches
      • getTagByIdentifier

        org.jdom.Element getTagByIdentifier​(String tagName,
                                            String value)
        Get elements of a particular descriptor tag whose identifier matches the passed parameter.
        Parameters:
        tagName - Name of the tag to search for
        value - value for the identifier to match
        Returns:
        the element that matches
      • getTags

        List<org.jdom.Element> getTags​(DescriptorTag tag)
        Get tags of a particular type.
        Parameters:
        tag - type of elements to find
        Returns:
        list of tags
      • getTags

        List<org.jdom.Element> getTags​(String tagName)
        Get tags of a particular type.
        Parameters:
        tagName - type of elements to find
        Returns:
        list of tags
      • getDescriptorType

        DescriptorType getDescriptorType()
        Get the descriptor type for this descriptor.
        Returns:
        descriptor type.