Package jadex.rules.state
Class OAVJavaAttributeType
- java.lang.Object
-
- jadex.rules.state.OAVAttributeType
-
- jadex.rules.state.OAVJavaAttributeType
-
public class OAVJavaAttributeType extends OAVAttributeType
Attribute type for Java object types.
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertyDescriptor
propdesc
The property descriptor.protected static java.lang.reflect.Method
propreadmethod
The property object read method.-
Fields inherited from class jadex.rules.state.OAVAttributeType
def, hashcode, idxattr, LIST, MAP, mult, MULTIPLICITIES_ALL, MULTIPLICITIES_MAPS, MULTIPLICITIES_MULT, name, NONE, OBJECTTYPE, ORDEREDMAP, otype, QUEUE, SET, type
-
-
Constructor Summary
Constructors Constructor Description OAVJavaAttributeType(OAVObjectType otype, java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def, PropertyDescriptor propdesc)
Create a new OAV attribute type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
accessProperty(java.lang.Object object)
Get the attribute value from a given object.protected int
calcHashCode()
Compute the hashcode.boolean
equals(java.lang.Object obj)
Test for equality.-
Methods inherited from class jadex.rules.state.OAVAttributeType
getDefaultValue, getIndexAttribute, getMultiplicity, getName, getObjectType, getType, hashCode, toString
-
-
-
-
Field Detail
-
propdesc
protected PropertyDescriptor propdesc
The property descriptor.
-
propreadmethod
protected static volatile java.lang.reflect.Method propreadmethod
The property object read method.
-
-
Constructor Detail
-
OAVJavaAttributeType
public OAVJavaAttributeType(OAVObjectType otype, java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def, PropertyDescriptor propdesc)
Create a new OAV attribute type.- Parameters:
otype
- The object type holding the attribute.name
- The name of the OAV attribute type.mult
- The multiplicity.type
- The type.def
- The default value.
-
-
Method Detail
-
calcHashCode
protected int calcHashCode()
Compute the hashcode.- Overrides:
calcHashCode
in classOAVAttributeType
- Returns:
- The hashcode.
-
equals
public boolean equals(java.lang.Object obj)
Test for equality.- Overrides:
equals
in classOAVAttributeType
- Returns:
- True, if equal.
-
accessProperty
public java.lang.Object accessProperty(java.lang.Object object)
Get the attribute value from a given object.- Parameters:
object
- The object.- Returns:
- The value.
-
-