Class PlainTextLanguage.PlainTextFile

    • Method Detail

      • getXPathNodeName

        public String getXPathNodeName()
        Description copied from class: AbstractNode
        Gets the name of the node that is used to match it with XPath queries.

        This default implementation adds compatibility with the previous way to get the xpath node name, which used Object.toString().

        Please override it. It will be removed in version 7.0.0.

        Specified by:
        getXPathNodeName in interface Node
        Overrides:
        getXPathNodeName in class AbstractNode
        Returns:
        The XPath node name
      • getImage

        public String getImage()
        Description copied from interface: Node
        Returns a string token, usually filled-in by the parser, which describes some textual characteristic of this node. This is usually an identifier, but you should check that using the Designer. On most nodes though, this method returns null.
        Specified by:
        getImage in interface Node
        Overrides:
        getImage in class AbstractNode
      • remove

        public void remove()
        Description copied from interface: Node
        Remove the current node from its parent.
        Specified by:
        remove in interface Node
        Overrides:
        remove in class AbstractNode
      • removeChildAtIndex

        public void removeChildAtIndex​(int childIndex)
        Description copied from interface: Node
        This method tells the node to remove the child node at the given index from the node's list of children, if any; if not, no changes are done.
        Specified by:
        removeChildAtIndex in interface Node
        Overrides:
        removeChildAtIndex in class AbstractNode
        Parameters:
        childIndex - The index of the child to be removed