org.apache.commons.beanutils
Class DynaProperty
java.lang.Object
|
+--org.apache.commons.beanutils.DynaProperty
- public class DynaProperty
- extends java.lang.Object
The metadata describing an individual property of a DynaBean.
- Version:
- $Revision: 1.3 $ $Date: 2002/03/24 09:15:03 $
- Author:
- Craig R. McClanahan
Field Summary |
protected java.lang.String |
name
The name of this property. |
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)? |
java.lang.String |
toString()
Return a String representation of this Object. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
name
protected java.lang.String name
- The name of this property.
type
protected java.lang.Class type
- The Java class representing the data type of the underlying property
values.
DynaProperty
public DynaProperty(java.lang.String name)
- Construct a property that accepts any data type.
- Parameters:
name
- Name of the property being described
DynaProperty
public DynaProperty(java.lang.String name,
java.lang.Class type)
- Construct a property of the specified data type.
- Parameters:
name
- Name of the property being describedtype
- Java class representing the property data type
getName
public java.lang.String getName()
getType
public java.lang.Class getType()
isIndexed
public boolean isIndexed()
- Does this property represent an indexed value (ie an array or List)?
isMapped
public boolean isMapped()
- Does this property represent a mapped value (ie a Map)?
toString
public java.lang.String toString()
- Return a String representation of this Object.
- Overrides:
toString
in class java.lang.Object
Copyright (c) 2001-2002 - Apache Software Foundation