|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.beanutils.DynaProperty
The metadata describing an individual property of a DynaBean.
Field Summary | |
private static int |
BOOLEAN_TYPE
|
private static int |
BYTE_TYPE
|
private static int |
CHAR_TYPE
|
private static int |
DOUBLE_TYPE
|
private static int |
FLOAT_TYPE
|
private static int |
INT_TYPE
|
private static int |
LONG_TYPE
|
protected java.lang.String |
name
The name of this property. |
private static int |
SHORT_TYPE
|
protected java.lang.Class |
type
The Java class representing the data type of the underlying property values. |
Constructor Summary | |
DynaProperty(java.lang.String name)
Construct a property that accepts any data type. |
|
DynaProperty(java.lang.String name,
java.lang.Class type)
Construct a property of the specified data type. |
Method Summary | |
java.lang.String |
getName()
|
java.lang.Class |
getType()
|
boolean |
isIndexed()
Does this property represent an indexed value (ie an array or List)? |
boolean |
isMapped()
Does this property represent a mapped value (ie a Map)? |
private void |
readObject(java.io.ObjectInputStream in)
Reads field values for this object safely. |
java.lang.String |
toString()
Return a String representation of this Object. |
private void |
writeObject(java.io.ObjectOutputStream out)
Writes this object safely. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final int BOOLEAN_TYPE
private static final int BYTE_TYPE
private static final int CHAR_TYPE
private static final int DOUBLE_TYPE
private static final int FLOAT_TYPE
private static final int INT_TYPE
private static final int LONG_TYPE
private static final int SHORT_TYPE
protected java.lang.String name
protected transient java.lang.Class type
The Java class representing the data type of the underlying property values.
There are issues with serializing primitive class types on certain JVM versions (including java 1.3). Therefore, this field must not be serialized using the standard methods.
Please leave this field as transient
Constructor Detail |
public DynaProperty(java.lang.String name)
name
- Name of the property being describedpublic DynaProperty(java.lang.String name, java.lang.Class type)
name
- Name of the property being describedtype
- Java class representing the property data typeMethod Detail |
public java.lang.String getName()
public java.lang.Class getType()
public boolean isIndexed()
public boolean isMapped()
public java.lang.String toString()
toString
in class java.lang.Object
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.StreamCorruptedException
- when the stream data values are outside expected range
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |