Class EditContext
java.lang.Object
io.jenkins.plugins.xmleditor.core.edit.EditContext
What operations need to know about the document they modify: encoding, line separator, style.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoc()escapeAttribute(String value, char quote) escapeText(String value) Escapes element content; line breaks follow the file's line separator.Indentation conventions, detected once from the document as it was before the first insertion.charThe quote used by most attributes of the document ("when there are none or on a tie).voidrecordOldValue(String value) Records the value a node had before the current operation touched it.static StringstringValue(LItem item) XPath string-value: text of an element and its descendants, value of attributes, text and comments.
-
Constructor Details
-
EditContext
-
-
Method Details
-
recordOldValue
Records the value a node had before the current operation touched it. -
stringValue
XPath string-value: text of an element and its descendants, value of attributes, text and comments. -
doc
-
lineSeparator
-
indentation
Indentation conventions, detected once from the document as it was before the first insertion. -
escapeText
Escapes element content; line breaks follow the file's line separator. -
escapeAttribute
-
prevailingQuote
public char prevailingQuote()The quote used by most attributes of the document ("when there are none or on a tie).
-