public abstract class Attribute
extends java.lang.Object
| Constructor and Description |
|---|
Attribute(java.lang.String name,
SimpleIntrospectable introspectable,
DataType type,
boolean readOnly)
Constructs a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
DataType |
getAttributeType()
Returns the
DataType object that represents
the type of this attribute. |
SimpleIntrospectable |
getIntrospectable()
Returns the container for this attribute.
|
abstract RemoteCall |
invokeAccessor()
The method invokes remote accessor method on the
introspectable instance.
|
abstract RemoteCall |
invokeMutator(java.lang.Object value)
NOT SUPPORTED yet.
|
boolean |
isReadOnly()
Returns
true if the attribute is read
only. |
java.lang.String |
toString()
Overloaded to return the name of the attribute as
passed into the constructor.
|
public Attribute(java.lang.String name,
SimpleIntrospectable introspectable,
DataType type,
boolean readOnly)
null.name - the name of the attributeintrospectable - the remote instance that contains this
attributetype - a DataType 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.public DataType getAttributeType()
DataType object that represents
the type of this attribute. The value is the same
as that passed into the constructor.thispublic SimpleIntrospectable getIntrospectable()
public abstract RemoteCall invokeAccessor()
RemoteCall
structure.true when isAttributeAccess()
is invoked.public abstract RemoteCall invokeMutator(java.lang.Object value)
value - java.lang.Object the new value of the attributepublic boolean isReadOnly()
true if the attribute is read
only. Returns the same value as that passed into the
constructor.public java.lang.String toString()
toString in class java.lang.Object