Class TreePruner

java.lang.Object
org.kohsuke.stapler.export.TreePruner
Direct Known Subclasses:
NamedPathPruner, TreePruner.ByDepth

public abstract class TreePruner extends Object
Controls the portion of the object graph to be written to DataWriter.
Author:
Kohsuke Kawaguchi
See Also:
  • Field Details

    • DEFAULT

      public static final TreePruner DEFAULT
      Probably the most common TreePruner that just visits the top object and its properties, but none of the referenced objects.
  • Constructor Details

    • TreePruner

      public TreePruner()
  • Method Details

    • accept

      public abstract TreePruner accept(Object node, Property prop)
      Called before Hudson writes a new property.
      Returns:
      null if this property shouldn't be written. Otherwise the returned TreePruner object will be consulted to determine properties of the child object in turn.
    • getRange

      public Range getRange()