Package org.kohsuke.stapler.export
Class Model<T>
java.lang.Object
org.kohsuke.stapler.export.Model<T>
Writes all the property of one
ExportedBean to DataWriter.- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets all the exported properties.voidwriteTo(T object, int baseVisibility, DataWriter writer) Deprecated.as of 1.139voidwriteTo(T object, DataWriter writer) Writes the property values of the given object to the writer.voidwriteTo(T object, TreePruner pruner, DataWriter writer) Writes the property values of the given object to the writer.
-
Field Details
-
type
The class being modeled. -
superModel
Modelfor the super class.
-
-
Method Details
-
getProperties
Gets all the exported properties. -
writeTo
Writes the property values of the given object to the writer.- Throws:
IOException
-
writeTo
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.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 withvisibilityX 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
-