Package io.jenkins.plugins.xmleditor.ops
Class XmlOperationDescribable
java.lang.Object
hudson.model.AbstractDescribableImpl<XmlOperationDescribable>
io.jenkins.plugins.xmleditor.ops.XmlOperationDescribable
- All Implemented Interfaces:
Describable<XmlOperationDescribable>
- Direct Known Subclasses:
AddElementOp,RemoveAttributeOp,RemoveOp,SetAttributeOp,SetTextOp,UpsertOp
public abstract class XmlOperationDescribable
extends AbstractDescribableImpl<XmlOperationDescribable>
An edit operation as configured in a Pipeline (
setText(xpath: ..., value: ...)) or in the UI. It is
converted to the Jenkins-independent XmlOperation before running on the agent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBase descriptor, so that the UI lists all operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringexpand(UnaryOperator<String> expand, String value) ONE,AT_LEAST_ONE(default when empty),ANYor a number.getXpath()voidsetExpected(String expected) abstract XmlOperationtoCore(UnaryOperator<String> expand) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
XmlOperationDescribable
-
-
Method Details
-
getXpath
-
getExpected
ONE,AT_LEAST_ONE(default when empty),ANYor a number. -
setExpected
-
toCore
- Parameters:
expand- expansion applied to user values (environment variables in Freestyle, identity in Pipeline)
-
expand
-