Interface ConfigurationElementBase<T>

  • All Known Subinterfaces:
    ConfigurationElement, ConfigurationSchemaElement, DomElement
    All Known Implementing Classes:
    DefaultDomElement, XppDomElement

    public interface ConfigurationElementBase<T>
    A configuration element, with its attributes and children, directly reflects the content and structure of the extension and extension point sections within the declaring module's manifest (module.xml) file.

    This interface is not intended to be implemented by clients.

    • Method Detail

      • getName

        String getName()
        Gets the name of this element.
        Returns:
        The name of this element.
      • getValue

        String getValue()
        Gets the value of this element.
        Returns:
        The value of this element, or null.
      • getAttribute

        String getAttribute​(String attributeName)
        Gets the value of the attribute with the specified name.
        Parameters:
        attributeName - The attribute name.
        Returns:
        The value of the attribute, or null.
      • getAttributeNames

        String[] getAttributeNames()
        Gets the names of all attributes.
        Returns:
        The array of names, which may be empty.
      • getParent

        T getParent()
        Gets the element which contains this element. If this element is an immediate child of an extension or an extension point, the returned value is null.
        Returns:
        The parent of this configuration element or null if this is a root element.
      • getChild

        T getChild​(String elementName)
        Gets the child element with the specified element name.
        Parameters:
        elementName - The element name.
        Returns:
        The child element or null if no such could be found.
      • getChildren

        T[] getChildren()
        Gets all children.
        Returns:
        The array of children, which may be empty.
      • getChildren

        T[] getChildren​(String elementName)
        Gets all children with the specified element name.
        Parameters:
        elementName - The element name.
        Returns:
        The array of children, which may be empty.