|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nasa.arc.brahms.common.data.JavaPropertyDescriptor
public class JavaPropertyDescriptor
JavaPropertyDescriptor describes one property that a Java class has available to set and/or get its value.
| Constructor Summary | |
|---|---|
JavaPropertyDescriptor(java.lang.String name,
java.lang.reflect.Field field,
java.lang.Class<?> targetClass)
Constructor, creates a new JavaPropertyDescriptor for a Java property accessible via the specified Field. |
|
JavaPropertyDescriptor(java.lang.String name,
java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
Constructor, creates a new JavaPropertyDescriptor for a Java property accessible via the specified Method. |
|
JavaPropertyDescriptor(java.lang.String name,
java.beans.PropertyDescriptor descriptor,
java.lang.Class<?> targetClass)
Constructor, creates a new JavaPropertyDescriptor for a Java property accessible via the specified PropertyDescriptor used for a property that follows the standard Java convention by having getFoo and setFoo accessor method. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of the property. |
java.lang.Class<?> |
getPropertyType()
Returns the type of the property. |
IJavaReadAccessor |
getReadAccessor()
Returns the accessor used to obtain the property's value. |
IJavaWriteAccessor |
getWriteAccessor()
Returns the accessor used to set the property's value. |
boolean |
isBound()
Indicates whether the property is a bound property. |
boolean |
isConstrained()
Indicates whether the property is a constrained property. |
boolean |
isReadable()
Indicates whether the property provides read access. |
boolean |
isStatic()
Indicates whether the property is a static/Class property. |
boolean |
isWritable()
Indicates whether the property provides write access. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaPropertyDescriptor(java.lang.String name,
java.beans.PropertyDescriptor descriptor,
java.lang.Class<?> targetClass)
name - the programmatic name of the propertydescriptor - the PropertyDescriptor used to access the propertytargetClass - the Class object for the target object.
public JavaPropertyDescriptor(java.lang.String name,
java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
name - the programmatic name of the propertymethod - the Method used to access the propertytargetClass - the Class object for the target object.
public JavaPropertyDescriptor(java.lang.String name,
java.lang.reflect.Field field,
java.lang.Class<?> targetClass)
name - the programmatic name of the propertyfield - the Field used to access the propertytargetClass - the Class object for the target object.| Method Detail |
|---|
public java.lang.String getName()
getName in interface IJavaPropertyDescriptorpublic java.lang.Class<?> getPropertyType()
Note that the "Class" object may describe a built-in Java type such as "int". The result may be "null" if this is an indexed property that does not support non-indexed access.
This is the type that will be returned by the ReadAccessor.
getPropertyType in interface IJavaPropertyDescriptorpublic boolean isStatic()
isStatic in interface IJavaPropertyDescriptorpublic boolean isBound()
isBound in interface IJavaPropertyDescriptorpublic boolean isConstrained()
isConstrained in interface IJavaPropertyDescriptorpublic boolean isReadable()
isReadable in interface IJavaPropertyDescriptorpublic boolean isWritable()
isWritable in interface IJavaPropertyDescriptorpublic IJavaReadAccessor getReadAccessor()
getReadAccessor in interface IJavaPropertyDescriptorpublic IJavaWriteAccessor getWriteAccessor()
getWriteAccessor in interface IJavaPropertyDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||