org.apache.commons.beanutils
Class DynaProperty

java.lang.Object
  |
  +--org.apache.commons.beanutils.DynaProperty
All Implemented Interfaces:
java.io.Serializable

public class DynaProperty
extends java.lang.Object
implements java.io.Serializable

The metadata describing an individual property of a DynaBean.

Version:
$Revision: 1.4 $ $Date: 2002/07/13 18:03:39 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

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, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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 described
type - Java class representing the property data type
Method Detail

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