

Public Member Functions | |
| Attribute (String name, SimpleIntrospectable introspectable, Class type, boolean readOnly) | |
| Class | getAttributeType () |
| SimpleIntrospectable | getIntrospectable () |
| abstract RemoteCall | invokeAccessor () |
| abstract RemoteCall | invokeMutator (Object value) |
| boolean | isReadOnly () |
| String | toString () |
Private Attributes | |
| Class | type = null |
| String | name = null |
| boolean | readOnly = false |
| SimpleIntrospectable | introspectable = null |
Attribute is a class that represents an attribute (or Java property) design pattern on remote objects. Attributes are characterized by a pair of functions, called accessor and mutator functions. An attribute has a type. An accessor is used to retrieve the value of a given type, and the mutator is used to change the value. A read only attribute is an attribute that only declares an accessor method. Attributes are treated separately from normal operations because their explicit declaration is often chosen for special design reasons and thus they have a special status for the final user.
| si::ijs::acs::objectexplorer::engine::Attribute::Attribute | ( | String | name, | |
| SimpleIntrospectable | introspectable, | |||
| Class | type, | |||
| boolean | readOnly | |||
| ) | [inline] |
Constructs a new instance of this class. All parameters must be non-null.
| name | the name of the attribute | |
| introspectable | the remote instance that contains this attribute | |
| type | a Class instance that represents the type of this attribute. Note that the class should declare public constructors with all parameters neccessary for the construction of the value, if applicable. GUI can then use introspection to create new instances and pass them to mutator methods. | |
| readOnly | true if this attribute only supports accessor method. |
| Class si::ijs::acs::objectexplorer::engine::Attribute::getAttributeType | ( | ) | [inline] |
Returns the Class object that represents the type of this attribute. The value is the same as that passed into the constructor.
this References type.
Referenced by si::ijs::acs::objectexplorer::engine::BACI::BACIAttribute::BACIAttribute(), and si::ijs::acs::objectexplorer::engine::ANKA::BACIAttribute::BACIAttribute().
| SimpleIntrospectable si::ijs::acs::objectexplorer::engine::Attribute::getIntrospectable | ( | ) | [inline] |
Returns the container for this attribute. The function returns the parameter passed into the constructor.
References introspectable.
Referenced by si::ijs::acs::objectexplorer::engine::BACI::BACIRemoteAccess::invokeAccessor(), and si::ijs::acs::objectexplorer::engine::ANKA::ANKARemoteAccess::invokeAccessor().
| abstract RemoteCall si::ijs::acs::objectexplorer::engine::Attribute::invokeAccessor | ( | ) | [pure virtual] |
The method invokes remote accessor method on the introspectable instance. The return value is packed into the standard RemoteCall structure.
true when isAttributeAccess() is invoked. Implemented in si::ijs::acs::objectexplorer::engine::ANKA::BACIAttribute, si::ijs::acs::objectexplorer::engine::BACI::BACIAttribute, and si::ijs::acs::objectexplorer::engine::BACI::BACIAttribute.
Referenced by si::ijs::acs::objectexplorer::ListsHandlerBean::OperationAcquiry::run().
| abstract RemoteCall si::ijs::acs::objectexplorer::engine::Attribute::invokeMutator | ( | Object | value | ) | [pure virtual] |
NOT SUPPORTED yet. Will be used for changing the value of a writable attribute.
| value | java.lang.Object the new value of the attribute |
Implemented in si::ijs::acs::objectexplorer::engine::ANKA::BACIAttribute, si::ijs::acs::objectexplorer::engine::BACI::BACIAttribute, and si::ijs::acs::objectexplorer::engine::BACI::BACIAttribute.
| boolean si::ijs::acs::objectexplorer::engine::Attribute::isReadOnly | ( | ) | [inline] |
Returns true if the attribute is read only. Returns the same value as that passed into the constructor.
References readOnly.
Referenced by si::ijs::acs::objectexplorer::ListsHandlerBean::clickedItem().
| String si::ijs::acs::objectexplorer::engine::Attribute::toString | ( | ) | [inline] |
Overloaded to return the name of the attribute as passed into the constructor. This should be the display name in the GUI.
References name.
Referenced by si::ijs::acs::objectexplorer::engine::BACI::BACIRemoteAccess::BACIAttributeNameComparator::compare().
SimpleIntrospectable si::ijs::acs::objectexplorer::engine::Attribute::introspectable = null [private] |
Referenced by getIntrospectable().
String si::ijs::acs::objectexplorer::engine::Attribute::name = null [private] |
Referenced by toString().
boolean si::ijs::acs::objectexplorer::engine::Attribute::readOnly = false [private] |
Referenced by isReadOnly().
Class si::ijs::acs::objectexplorer::engine::Attribute::type = null [private] |
Referenced by getAttributeType().
1.6.2