gov.nasa.arc.brahms.common.data
Interface IJavaPropertyDescriptor

All Known Implementing Classes:
JavaPropertyDescriptor

public interface IJavaPropertyDescriptor

IJavaPropertyDescriptor describes one property that a Java class has available to set and/or get its value.

Version:
$Revision: 1.1 $ $Date: 2009/11/23 18:28:41 $ $Author: rnado $
Author:
Ron van Hoof

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.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the property.

Returns:
String the property name

getPropertyType

java.lang.Class<?> getPropertyType()
Returns the type of the property.

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.

Returns:
Class the Java type info for the property.

isStatic

boolean isStatic()
Indicates whether the property is a static/Class property.

Returns:
boolean true if static, false if not

isBound

boolean isBound()
Indicates whether the property is a bound property. A bound property will cause a PropertyChange event to get fired when the property is changed.

Returns:
boolean true if this is a bound property, false otherwise

isConstrained

boolean isConstrained()
Indicates whether the property is a constrained property. A constrained property will cause a VetoableChange event to get fired when an attempt is made to change the property value.

Returns:
boolean true if this is a constrained property, false otherwise

isReadable

boolean isReadable()
Indicates whether the property provides read access.

Returns:
boolean true if readable, false if not

isWritable

boolean isWritable()
Indicates whether the property provides write access.

Returns:
boolean true if writable, false if not

getReadAccessor

IJavaReadAccessor getReadAccessor()
Returns the accessor used to obtain the property's value.

Returns:
IReadAccessor the accessor, null if the property's value cannot be read

getWriteAccessor

IJavaWriteAccessor getWriteAccessor()
Returns the accessor used to set the property's value.

Returns:
IWriteAccessor the accessor, null if the property's value cannot be written


Copyright © 1997-2012 All Rights Reserved.