Class AddElement
java.lang.Object
io.jenkins.plugins.xmleditor.core.edit.XmlOperation
io.jenkins.plugins.xmleditor.core.edit.AddElement
- All Implemented Interfaces:
Serializable
Inserts an XML fragment relative to the selected elements. In indented documents the fragment follows the
indentation of its new siblings: a compact fragment is laid out like the document, a multi-line fragment keeps its
own relative layout. Documents written on a single line stay on a single line.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapplyTo(LItem target, EditContext context) Applies the operation to one selected node.type()Name used in reports and messages, e.g.Methods inherited from class io.jenkins.plugins.xmleditor.core.edit.XmlOperation
applyWhenNoMatch, defaultExpected, expected, unsupported, xpath
-
Constructor Details
-
AddElement
-
-
Method Details
-
type
Description copied from class:XmlOperationName used in reports and messages, e.g.setText.- Specified by:
typein classXmlOperation
-
applyTo
Description copied from class:XmlOperationApplies the operation to one selected node.- Specified by:
applyToin classXmlOperation- Returns:
truewhen the document actually changed- Throws:
XmlEditorException
-