Package org.kohsuke.stapler.export
Class Model<T>
- java.lang.Object
-
- org.kohsuke.stapler.export.Model<T>
-
public class Model<T> extends Object
Writes all the property of oneExportedBean
toDataWriter
.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Property>
getProperties()
Gets all the exported properties.void
writeTo(T object, int baseVisibility, DataWriter writer)
Deprecated.as of 1.139void
writeTo(T object, DataWriter writer)
Writes the property values of the given object to the writer.void
writeTo(T object, TreePruner pruner, DataWriter writer)
Writes the property values of the given object to the writer.
-
-
-
Method Detail
-
writeTo
public void writeTo(T object, DataWriter writer) throws IOException
Writes the property values of the given object to the writer.- Throws:
IOException
-
writeTo
public void writeTo(T object, TreePruner pruner, DataWriter writer) throws IOException
Writes the property values of the given object to the writer.- Parameters:
pruner
- Controls which portion of the object graph will be sent to the writer.- Throws:
IOException
-
writeTo
@Deprecated public void writeTo(T object, int baseVisibility, DataWriter writer) throws IOException
Deprecated.as of 1.139Writes the property values of the given object to the writer.- Parameters:
baseVisibility
- This parameters controls how much data we'd be writing, by adding bias to the sub tree cutting. A property withvisibility
X will be written if the current depth Y and baseVisibility Z satisfiesX + Z > Y
. 0 is the normal value. Positive value means writing bigger tree, and negative value means writing smaller trees.- Throws:
IOException
-
-