Style Intelligence v12.0

inetsoft.report
Class BeanPropertyDefinition

java.lang.Object
  extended by inetsoft.report.BeanPropertyDefinition
All Implemented Interfaces:
Serializable

public class BeanPropertyDefinition
extends Object
implements Serializable

This class describes a bean property, and its mapping to an element's property. It is used in the BeanSheet to define report bean property definitions.

See Also:
Serialized Form

Constructor Summary
BeanPropertyDefinition(String elemID, String elemProperty, Class type)
          Create a bean property definition.
 
Method Summary
 boolean equals(Object obj)
          Compare two property definition.
 String getElementID()
          Get the target element ID.
 String getElementProperty()
          Get the target element property name.
protected  Method getGetter(ReportSheet bean)
          Get the property getter method.
 Object getProperty(BeanSheet bean)
          Get a bean property.
protected  Method getSetter(ReportSheet bean)
          Get the property setter method.
 Class getType()
          Get property type.
 void setElementID(String id)
          Set the target element ID.
 void setElementProperty(String prop)
          Set the target element property name.
 void setProperty(BeanSheet bean, Object value)
          Set a bean property.
 void setType(Class type)
          Set property type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanPropertyDefinition

public BeanPropertyDefinition(String elemID,
                              String elemProperty,
                              Class type)
Create a bean property definition.

Parameters:
elemID - - the id of the element inside a bean sheet
elemProperty - - the property name of the element
type - - class type of this element
Method Detail

getElementID

public String getElementID()
Get the target element ID.


setElementID

public void setElementID(String id)
Set the target element ID.


getElementProperty

public String getElementProperty()
Get the target element property name.


setElementProperty

public void setElementProperty(String prop)
Set the target element property name.


getType

public Class getType()
Get property type.


setType

public void setType(Class type)
Set property type.


getProperty

public Object getProperty(BeanSheet bean)
Get a bean property. A bean property is mapped to a property in an element contained in the bean.


setProperty

public void setProperty(BeanSheet bean,
                        Object value)
Set a bean property. This call is normally translated to a call to set the corresponding property in an element inside the bean.


getGetter

protected Method getGetter(ReportSheet bean)
                    throws Exception
Get the property getter method.

Throws:
Exception

getSetter

protected Method getSetter(ReportSheet bean)
                    throws Exception
Get the property setter method.

Throws:
Exception

equals

public boolean equals(Object obj)
Compare two property definition.

Overrides:
equals in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.