|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.beanform.prop.BeanProperty
public class BeanProperty
A property of a Java bean, identified by the owner class and the name of the property.
Note that the name of the property may be recursive; for example, if the owner class is Person, and the property name is address.state.abbreviation, then this bean property represents a person's address's state's 2-letter abbreviation, and its type is java.lang.String (not Address or State).
Constructor Summary | |
---|---|
BeanProperty(Class ownerClass,
String name,
String validators,
String input)
|
Method Summary | ||
---|---|---|
boolean |
equals(Object o)
Compares two BeanProperty instances based on the same fields that hashCode()
uses: ownerClass, name, validators and input. |
|
|
getAnnotation(Class<T> clazz)
|
|
List<Annotation> |
getAnnotations()
|
|
String |
getInput()
|
|
String |
getName()
|
|
Class |
getOwnerClass()
|
|
Class |
getType()
|
|
String |
getTypeName()
|
|
String |
getValidators()
|
|
Object |
getValue()
|
|
int |
hashCode()
Builds a hashCode based on the same fields that equals(Object) uses: ownerClass,
name, validators and input. |
|
boolean |
isBoolean()
|
|
boolean |
isByteArray()
|
|
boolean |
isDate()
|
|
boolean |
isDouble()
|
|
boolean |
isEditableType()
|
|
boolean |
isEnum()
|
|
boolean |
isFloat()
|
|
boolean |
isInteger()
|
|
boolean |
isLong()
|
|
boolean |
isLongString()
|
|
boolean |
isNullable()
|
|
boolean |
isNumber()
|
|
boolean |
isReadable()
|
|
boolean |
isShort()
|
|
boolean |
isShortString()
|
|
boolean |
isString()
|
|
boolean |
isWriteable()
|
|
void |
setBean(Object bean)
|
|
void |
setValue(Object value)
|
|
String |
toString()
|
|
boolean |
usesCheckbox()
|
|
boolean |
usesDatePicker()
|
|
boolean |
usesInsert()
|
|
boolean |
usesTextArea()
|
|
boolean |
usesTextField()
|
|
boolean |
usesUpload()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanProperty(Class ownerClass, String name, String validators, String input)
Method Detail |
---|
public Class getOwnerClass()
public String getName()
public String getValidators()
public String getInput()
public boolean usesTextField()
public boolean usesTextArea()
public boolean usesCheckbox()
public boolean usesDatePicker()
public boolean usesUpload()
public boolean usesInsert()
public List<Annotation> getAnnotations()
public <T extends Annotation> T getAnnotation(Class<T> clazz)
public boolean isReadable()
public boolean isWriteable()
public boolean isNullable()
public Class getType()
public String getTypeName()
public boolean isEnum()
public boolean isString()
public boolean isShortString()
public boolean isLongString()
public boolean isBoolean()
public boolean isShort()
public boolean isInteger()
public boolean isLong()
public boolean isFloat()
public boolean isDouble()
public boolean isNumber()
public boolean isDate()
public boolean isByteArray()
public boolean isEditableType()
public String toString()
toString
in class Object
public boolean equals(Object o)
hashCode()
uses: ownerClass, name, validators and input.
equals
in class Object
public int hashCode()
equals(Object)
uses: ownerClass,
name, validators and input.
hashCode
in class Object
http://jakarta.apache.org/commons/lang/xref/org/apache/commons/lang/builder/HashCodeBuilder.html
public void setBean(Object bean)
public Object getValue()
public void setValue(Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |