org.kohsuke.stapler.export
Class Model<T>

java.lang.Object
  extended by org.kohsuke.stapler.export.Model<T>

public class Model<T>
extends java.lang.Object

Writes all the property of one ExportedBean to DataWriter.

Author:
Kohsuke Kawaguchi

Field Summary
 Model<? super T> superModel
          Model for the super class.
 java.lang.Class<T> type
          The class being modeled.
 
Method Summary
 java.util.List<Property> getProperties()
          Gets all the exported properties.
 void writeTo(T object, DataWriter writer)
          Writes the property values of the given object to the writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final java.lang.Class<T> type
The class being modeled.


superModel

public final Model<? super T> superModel
Model for the super class.

Method Detail

getProperties

public java.util.List<Property> getProperties()
Gets all the exported properties.


writeTo

public void writeTo(T object,
                    DataWriter writer)
             throws java.io.IOException
Writes the property values of the given object to the writer.

Throws:
java.io.IOException


Copyright © 2007. All Rights Reserved.