@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface WSXMLTextEditorPage extends WSTextEditorPage
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
evaluateXPath(java.lang.String xpathExpression)
Evaluates an XPath expression.
|
WSXMLTextNodeRange[] |
findElementsByXPath(java.lang.String xpathExpression)
Finds the nodes selected by the given XPath expression.
|
WSTextXMLSchemaManager |
getXMLSchemaManager()
Get the schema manager used to ask useful information about allowed elements and the context of the current offset.
|
addPopUpMenuCustomizer, beginCompoundUndoableEdit, endCompoundUndoableEdit, getActionsProvider, getColumnOfOffset, getDocument, getLineOfOffset, getOffsetOfLineEnd, getOffsetOfLineStart, getTextComponent, removePopUpMenuCustomizer
deleteSelection, getCaretOffset, getLocationOnScreenAsPoint, getLocationRelativeToEditorFromScreen, getSelectedText, getSelectionEnd, getSelectionStart, getStartEndOffsets, getWordAtCaret, hasSelection, isEditable, modelToViewRectangle, select, selectWord, setCaretPosition, setEditable, viewToModelOffset
WSXMLTextNodeRange[] findElementsByXPath(java.lang.String xpathExpression) throws XPathException
WSXMLTextNodeRange
selected
by the given XPath expression.
//node()
will return an array with all the node ranges in the document.
count(//node())
will return an empty array.xpathExpression
- The XPath expression. If the XPath expression is relative, it will be computed in the context of the current caret position.null
array of nodes.
If the evaluation of the XPath expression fails it will return an empty array.XPathException
- If the XPath expression failed to be evaluated.java.lang.Object[] evaluateXPath(java.lang.String xpathExpression) throws XPathException
Object
.
//node()
will return an array with all the DOM Nodes created over the XML structure.
count(//node())
will return an array having a single component representing the number of nodes in the document.
//node(), count(//node())
will return an array containing all DOM Nodes and having as last component
the total number of nodes.xpathExpression
- The XPath expression. If the XPath expression is relative, it will be computed in the context of the current caret position.null
array. If the XPath evaluation fails it will return
an empty array.XPathException
- If the XPath expression failed to be evaluated.WSTextXMLSchemaManager getXMLSchemaManager()
getXMLSchemaManager
in interface WSTextEditorPage
© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.