public class UserDefinedBean extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<UserDefinedBean>, java.lang.Cloneable
Constructor and Description |
---|
UserDefinedBean()
Create user defined bean.
|
UserDefinedBean(java.lang.String name,
java.lang.Object value)
Create user defined bean with default name, and value.
|
Modifier and Type | Method and Description |
---|---|
UserDefinedBean |
appendChild(UserDefinedBean child)
Set the specified value with the specified user defined in this report.
|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
int |
compareTo(UserDefinedBean o)
Compares this object with the specified object for order.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.util.List<UserDefinedBean> |
getChildren()
Get a list of user defined beans in this bean.
|
java.lang.String |
getDescription()
Return a description.
|
java.lang.String |
getId()
Return an id of this bean.
|
java.lang.String |
getName()
Return a name.
|
UserDefinedBean |
getParent()
Get the parent of this bean.
|
java.lang.String |
getType()
Get the type of the value.
|
java.lang.Object |
getValue()
Return a value.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isHTML()
Return true if user define is in HTML mode.
|
void |
setDescription(java.lang.String description)
Set a description.
|
void |
setHTML(boolean isHTML)
Set true if user define is in HTML mode.
|
void |
setName(java.lang.String name)
Set a name.
|
void |
setType(java.lang.String type)
Set the type of the value.
|
void |
setValue(java.lang.Object value)
Set a value.
|
java.lang.String |
toString()
Return name of this descriptor.
|
public UserDefinedBean()
public UserDefinedBean(java.lang.String name, java.lang.Object value)
name
- name of the valuevalue
- valuepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- Stringpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- the value to setpublic java.util.List<UserDefinedBean> getChildren()
public boolean isHTML()
public void setHTML(boolean isHTML)
isHTML
- true if user define is in HTML mode, otherwise falsepublic UserDefinedBean appendChild(UserDefinedBean child)
child
- user defined beanpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object's class does not support the Cloneable
interface. Subclasses that override the clone
method can also throw this
exception to indicate that an instance cannot be cloned.Cloneable
public UserDefinedBean getParent()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
public int compareTo(UserDefinedBean o)
compareTo
in interface java.lang.Comparable<UserDefinedBean>
o
- the Object to be compared.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.