Class AddElementOp

All Implemented Interfaces:
Describable<XmlOperationDescribable>

public class AddElementOp extends XmlOperationDescribable
addElement(xpath: ..., fragment: ..., position: 'LAST_CHILD'): inserts an XML fragment.
  • Constructor Details

    • AddElementOp

      @DataBoundConstructor public AddElementOp(String xpath, String fragment)
  • Method Details

    • getFragment

      public String getFragment()
    • getPosition

      public String getPosition()
    • setPosition

      @DataBoundSetter public void setPosition(String position)
    • toCore

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