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.
  • Constructor Details

    • XmlOperationDescribable

      protected XmlOperationDescribable(String xpath)
  • Method Details

    • getXpath

      public String getXpath()
    • getExpected

      @CheckForNull public String getExpected()
      ONE, AT_LEAST_ONE (default when empty), ANY or a number.
    • setExpected

      @DataBoundSetter public void setExpected(String expected)
    • toCore

      public abstract XmlOperation toCore(UnaryOperator<String> expand)
      Parameters:
      expand - expansion applied to user values (environment variables in Freestyle, identity in Pipeline)
    • expand

      protected static String expand(UnaryOperator<String> expand, String value)