Interface Node

    • Method Detail

      • qualify

        static java.lang.String qualify​(java.lang.String... names)
        Creates the qualified name, handling null names.
        Parameters:
        names - Names. Entries may be null.
        Returns:
        Qualified name.
      • escape

        static java.lang.String escape​(java.lang.String name)
        Creates an escaped name.
        Parameters:
        name - Name.
        Returns:
        Escaped name.
      • getNodeName

        java.lang.String getNodeName()
        Obtains the name of the Node.
        Returns:
        Name of the Node.
      • getNodeType

        java.lang.String getNodeType()
        Obtains the Node type.
        Returns:
        Node type.
      • getLocation

        java.lang.String getLocation()
        Obtains the location of the Node.
        Returns:
        Location of the Node. May be null if Node does not support a location.
      • getParentNode

        Node getParentNode()
        Obtains the Node containing this Node.
        Returns:
        Node containing this Node.
      • getQualifiedName

        default java.lang.String getQualifiedName()
        Obtains the qualified name of the Node.
        Returns:
        Qualified name of the Node.
      • getQualifiedName

        default java.lang.String getQualifiedName​(java.lang.String name)
        Obtains the qualified name for child Node.
        Parameters:
        name - Name of child Node.
        Returns:
        Name qualified by this Node.
      • isInitialised

        boolean isInitialised()
        Indicates if the Node has been initialised. Node instances should only be initialised once. Initialising the Node twice is an issue.
        Returns:
        true if initialised.
      • getChildNodes

        Node[] getChildNodes()
        Obtains the child Node instances.
        Returns:
        Child Node instances.