Package jadex.rules.state
Class OAVObjectType
- java.lang.Object
- 
- jadex.rules.state.OAVObjectType
 
- 
- Direct Known Subclasses:
- OAVJavaType
 
 public class OAVObjectType extends java.lang.ObjectType definition for an object 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.util.MapattributesThe attribute descriptions.protected java.lang.StringnameThe name of the OAV object type.protected OAVObjectTypesupertypeThe supertype of this type (if any).protected OAVTypeModeltmodelThe type model.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedOAVObjectType(java.lang.String name, OAVObjectType supertype, OAVTypeModel tmodel)Create a new OAV object type.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributeType(OAVAttributeType attribute)Add an attribute type description.OAVAttributeTypecreateAttributeType(java.lang.String name, OAVObjectType type)Create a new attribute type.OAVAttributeTypecreateAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult)Create a new attribute type.OAVAttributeTypecreateAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def)Create a new attribute type.OAVAttributeTypecreateAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def, OAVAttributeType idxattr)Create a new attribute type.booleanequals(java.lang.Object object)Test if two types are equal.OAVAttributeTypegetAttributeType(java.lang.String attribute)Get an attribute type description.OAVAttributeTypegetAttributeType0(java.lang.String attribute)Get an attribute type description.OAVAttributeTypegetDeclaredAttributeType0(java.lang.String attribute)Get an attribute type description.java.util.CollectiongetDeclaredAttributeTypes()Get the declared attribute types (i.e.java.lang.StringgetName()Get the name of the OAV object type.OAVObjectTypegetSupertype()Get the supertype of this typ.OAVTypeModelgetTypeModel()Get the supertype of this typ.inthashCode()Get the hash code.booleanisSubtype(OAVObjectType type)Test if this type is same type or subtype of another type.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
nameprotected java.lang.String name The name of the OAV object type.
 - 
supertypeprotected OAVObjectType supertype The supertype of this type (if any).
 - 
attributesprotected java.util.Map attributes The attribute descriptions.
 - 
tmodelprotected OAVTypeModel tmodel The type model.
 
- 
 - 
Constructor Detail- 
OAVObjectTypeprotected OAVObjectType(java.lang.String name, OAVObjectType supertype, OAVTypeModel tmodel)Create a new OAV object type.- Parameters:
- name- The name of the OAV object type.
- supertype- The supertype.
 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Get the name of the OAV object type.- Returns:
- The name of the OAV object type.
 
 - 
addAttributeTypeprotected void addAttributeType(OAVAttributeType attribute) Add an attribute type description.- Parameters:
- attribute- The OAV attribute type.
 
 - 
createAttributeTypepublic OAVAttributeType createAttributeType(java.lang.String name, OAVObjectType type) Create a new attribute type.- Parameters:
- name- The name.
- type- The type.
- mult- The multiplicity.
- def- The default value.
 
 - 
createAttributeTypepublic OAVAttributeType createAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult) Create a new attribute type.- Parameters:
- name- The name.
- type- The type.
- mult- The multiplicity.
- def- The default value.
 
 - 
createAttributeTypepublic OAVAttributeType createAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def) Create a new attribute type.- Parameters:
- name- The name.
- type- The type.
- mult- The multiplicity.
- def- The default value.
 
 - 
createAttributeTypepublic OAVAttributeType createAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def, OAVAttributeType idxattr) Create a new attribute type.- Parameters:
- name- The name.
- type- The type.
- mult- The multiplicity.
- def- The default value.
 
 - 
getAttributeTypepublic OAVAttributeType getAttributeType(java.lang.String attribute) Get an attribute type description.- Parameters:
- attribute- The name of the attribute.
- Returns:
- The OAV attribute type.
 
 - 
getAttributeType0public OAVAttributeType getAttributeType0(java.lang.String attribute) Get an attribute type description.- Parameters:
- attribute- The name of the attribute.
- Returns:
- The OAV attribute type.
 
 - 
getDeclaredAttributeType0public OAVAttributeType getDeclaredAttributeType0(java.lang.String attribute) Get an attribute type description.- Parameters:
- attribute- The name of the attribute.
- Returns:
- The OAV attribute type.
 
 - 
getDeclaredAttributeTypespublic java.util.Collection getDeclaredAttributeTypes() Get the declared attribute types (i.e. not those of super types).
 - 
getTypeModelpublic OAVTypeModel getTypeModel() Get the supertype of this typ.- Returns:
- The supertype (if any).
 
 - 
getSupertypepublic OAVObjectType getSupertype() Get the supertype of this typ.- Returns:
- The supertype (if any).
 
 - 
equalspublic boolean equals(java.lang.Object object) Test if two types are equal.- Overrides:
- equalsin class- java.lang.Object
- Returns:
- True if equal.
 
 - 
hashCodepublic int hashCode() Get the hash code.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hashcode.
 
 - 
isSubtypepublic boolean isSubtype(OAVObjectType type) Test if this type is same type or subtype of another type.- Parameters:
- type- The type to test.
- Returns:
- True, if this object is same type or subtype.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-