@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface TextDocumentController
Modifier and Type | Method and Description |
---|---|
void |
insertXMLFragment(java.lang.String xmlFragment,
java.lang.String xpathLocation,
RelativeInsertPosition relativePosition)
Insert an XML fragment relative to the node identified by the
xpathLocation
and according with the relativePosition . |
void insertXMLFragment(java.lang.String xmlFragment, java.lang.String xpathLocation, RelativeInsertPosition relativePosition) throws TextOperationException
xpathLocation
and according with the relativePosition
.
After the operation the caret will be positioned in the first leaf of the fragment.
xmlFragment
- The XML fragment.xpathLocation
- The XPath location.relativePosition
- The position relative to the node identified by the XPath location.
Can be one of the constants: AuthorConstants.POSITION_BEFORE
, AuthorConstants.POSITION_AFTER
,
AuthorConstants.POSITION_INSIDE_FIRST
or AuthorConstants.POSITION_INSIDE_LAST
.TextOperationException
© Copyright SyncRO Soft SRL 2002 - 2015. All rights reserved.