Package jadex.rules.state
Class OAVAttributeType
- java.lang.Object
- 
- jadex.rules.state.OAVAttributeType
 
- 
- Direct Known Subclasses:
- OAVJavaAttributeType
 
 public class OAVAttributeType extends java.lang.ObjectType definition for an attribute of objects stored as OAV triples. Type handling is useful for debugging and may be ignored for performance in production environments.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.ObjectdefThe default value (only supported for single-valued attributes).protected inthashcodeHash code (cached for speed).protected OAVAttributeTypeidxattrThe index attribute (used for fetching the key value of an oav object).static java.lang.StringLISTConstant for list multiplicity.static java.lang.StringMAPConstant for map multiplicity.protected java.lang.StringmultThe multiplicity type.static java.util.SetMULTIPLICITIES_ALLSet of all multiplicity types (->use an enum).static java.util.SetMULTIPLICITIES_MAPSSet of map multiplicity types.static java.util.SetMULTIPLICITIES_MULTSet of collection multiplicity types.protected java.lang.StringnameThe name of the OAV attribute type.static java.lang.StringNONEConstants for no multiplicity.static OAVAttributeTypeOBJECTTYPEstatic java.lang.StringORDEREDMAPConstant for an ordered map multiplicity.protected OAVObjectTypeotypeThe object type having the attribute.static java.lang.StringQUEUEConstants for queue multiplicity.static java.lang.StringSETConstant for set multiplicity.protected OAVObjectTypetypeThe type.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedOAVAttributeType(OAVObjectType otype, java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def, OAVAttributeType idxattr)Create a new OAV attribute type.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcalcHashCode()Compute the hashcode.booleanequals(java.lang.Object obj)Test for equality.java.lang.ObjectgetDefaultValue()Get the default value.OAVAttributeTypegetIndexAttribute()Get the index attribute.java.lang.StringgetMultiplicity()Get the multiplicity.java.lang.StringgetName()Get the name of the OAV attribute type.OAVObjectTypegetObjectType()Get the object type (the type of the object holding this attribute).OAVObjectTypegetType()Get the attribute type (the type of the value stored via this attribute).inthashCode()Compute the hashcode.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
OBJECTTYPEpublic static final OAVAttributeType OBJECTTYPE 
 - 
NONEpublic static final java.lang.String NONE Constants for no multiplicity.- See Also:
- Constant Field Values
 
 - 
QUEUEpublic static final java.lang.String QUEUE Constants for queue multiplicity.- See Also:
- Constant Field Values
 
 - 
LISTpublic static final java.lang.String LIST Constant for list multiplicity.- See Also:
- Constant Field Values
 
 - 
SETpublic static final java.lang.String SET Constant for set multiplicity.- See Also:
- Constant Field Values
 
 - 
MAPpublic static final java.lang.String MAP Constant for map multiplicity.- See Also:
- Constant Field Values
 
 - 
ORDEREDMAPpublic static final java.lang.String ORDEREDMAP Constant for an ordered map multiplicity.- See Also:
- Constant Field Values
 
 - 
MULTIPLICITIES_ALLpublic static final java.util.Set MULTIPLICITIES_ALL Set of all multiplicity types (->use an enum).
 - 
MULTIPLICITIES_MULTpublic static final java.util.Set MULTIPLICITIES_MULT Set of collection multiplicity types.
 - 
MULTIPLICITIES_MAPSpublic static final java.util.Set MULTIPLICITIES_MAPS Set of map multiplicity types.
 - 
otypeprotected OAVObjectType otype The object type having the attribute.
 - 
nameprotected java.lang.String name The name of the OAV attribute type.
 - 
multprotected java.lang.String mult The multiplicity type.
 - 
typeprotected OAVObjectType type The type.
 - 
defprotected java.lang.Object def The default value (only supported for single-valued attributes).
 - 
idxattrprotected OAVAttributeType idxattr The index attribute (used for fetching the key value of an oav object).
 - 
hashcodeprotected final int hashcode Hash code (cached for speed).
 
- 
 - 
Constructor Detail- 
OAVAttributeTypeprotected OAVAttributeType(OAVObjectType otype, java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def, OAVAttributeType idxattr) 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- 
getObjectTypepublic OAVObjectType getObjectType() Get the object type (the type of the object holding this attribute).- Returns:
- The objecttype.
 
 - 
getNamepublic java.lang.String getName() Get the name of the OAV attribute type.- Returns:
- The name of the OAV attribute type.
 
 - 
getMultiplicitypublic java.lang.String getMultiplicity() Get the multiplicity.- Returns:
- The multiplicity.
 
 - 
getTypepublic OAVObjectType getType() Get the attribute type (the type of the value stored via this attribute).- Returns:
- The type.
 
 - 
getDefaultValuepublic java.lang.Object getDefaultValue() Get the default value.- Returns:
- The default value.
 
 - 
getIndexAttributepublic OAVAttributeType getIndexAttribute() Get the index attribute.- Returns:
- The index attribute.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
hashCodepublic final int hashCode() Compute the hashcode.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hashcode.
 
 - 
calcHashCodeprotected int calcHashCode() Compute the hashcode.- Returns:
- The hashcode.
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test for equality.- Overrides:
- equalsin class- java.lang.Object
- Returns:
- True, if equal.
 
 
- 
 
-