Package org.kohsuke.stapler.export
Class NamedPathPruner
java.lang.Object
org.kohsuke.stapler.export.TreePruner
org.kohsuke.stapler.export.NamedPathPruner
Tree pruner which operates according to a textual description of what tree leaves should be included.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.stapler.export.TreePruner
TreePruner.ByDepth -
Field Summary
Fields inherited from class org.kohsuke.stapler.export.TreePruner
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionNamedPathPruner(String spec) Constructs a pruner by parsing a textual specification. -
Method Summary
-
Constructor Details
-
NamedPathPruner
Constructs a pruner by parsing a textual specification. This lists the properties which should be included at each level of the hierarchy. Properties are separated by commas and nested objects are inside square braces. For example,a,b[c,d]will emit the top-level propertyabut none of its children, and the top-level propertyband only those of its children namedcandd.- Parameters:
spec- textual specification of tree- Throws:
IllegalArgumentException- if the syntax is incorrect
-
-
Method Details
-
accept
Description copied from class:TreePrunerCalled before Hudson writes a new property.- Specified by:
acceptin classTreePruner- Returns:
- null if this property shouldn't be written. Otherwise the returned
TreePrunerobject will be consulted to determine properties of the child object in turn.
-
getRange
- Overrides:
getRangein classTreePruner
-