|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.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 IJavaPropertyDescriptor
public 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 IJavaPropertyDescriptor
public boolean isStatic()
isStatic
in interface IJavaPropertyDescriptor
public boolean isBound()
isBound
in interface IJavaPropertyDescriptor
public boolean isConstrained()
isConstrained
in interface IJavaPropertyDescriptor
public boolean isReadable()
isReadable
in interface IJavaPropertyDescriptor
public boolean isWritable()
isWritable
in interface IJavaPropertyDescriptor
public IJavaReadAccessor getReadAccessor()
getReadAccessor
in interface IJavaPropertyDescriptor
public IJavaWriteAccessor getWriteAccessor()
getWriteAccessor
in interface IJavaPropertyDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |