Package jadex.rules.state
Class OAVJavaType
- java.lang.Object
-
- jadex.rules.state.OAVObjectType
-
- jadex.rules.state.OAVJavaType
-
public class OAVJavaType extends OAVObjectType
A java type that
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ClassclazzThe java class.static OAVJavaTypejava_boolean_typeThe java boolean type.static OAVJavaTypejava_class_typeThe java class type.static OAVJavaTypejava_collection_typeThe java collection type.static OAVJavaTypejava_double_typeThe java double type.static OAVJavaTypejava_exception_typeThe java exception type.static OAVJavaTypejava_float_typeThe java float type.static OAVJavaTypejava_integer_typeThe java integer type.static OAVJavaTypejava_long_typeThe java long type.static OAVJavaTypejava_object_typeThe java object type.static OAVJavaTypejava_string_typeThe java string type.static OAVTypeModeljava_type_modelThe java type model.protected java.lang.StringkindThe kind of type (value, object, bean).static java.lang.StringKIND_BEANThe bean kind (for java beans supporting property changes).static java.lang.StringKIND_OBJECTThe object kind (for normal java objects).static java.lang.StringKIND_VALUEThe value kind (for immutable java objects).protected java.util.MappropertiesAttributes for bean properties.-
Fields inherited from class jadex.rules.state.OAVObjectType
attributes, name, supertype, tmodel
-
-
Constructor Summary
Constructors Constructor Description OAVJavaType(java.lang.Class clazz, java.lang.String kind, OAVTypeModel tmodel)Create a new OAV object type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAVAttributeTypegetAttributeType(java.lang.String attribute)Get an attribute type description.java.lang.ClassgetClazz()Get the Java class of the type.java.util.CollectiongetDeclaredAttributeTypes()Get the declared attribute types (i.e.java.lang.StringgetKind()Get the kind (i.e.booleanisSubtype(OAVObjectType type)Test if this object is same type or subtype of this type.-
Methods inherited from class jadex.rules.state.OAVObjectType
addAttributeType, createAttributeType, createAttributeType, createAttributeType, createAttributeType, equals, getAttributeType0, getDeclaredAttributeType0, getName, getSupertype, getTypeModel, hashCode, toString
-
-
-
-
Field Detail
-
KIND_VALUE
public static final java.lang.String KIND_VALUE
The value kind (for immutable java objects).- See Also:
- Constant Field Values
-
KIND_OBJECT
public static final java.lang.String KIND_OBJECT
The object kind (for normal java objects).- See Also:
- Constant Field Values
-
KIND_BEAN
public static final java.lang.String KIND_BEAN
The bean kind (for java beans supporting property changes).- See Also:
- Constant Field Values
-
java_type_model
public static final OAVTypeModel java_type_model
The java type model.
-
java_object_type
public static final OAVJavaType java_object_type
The java object type.
-
java_class_type
public static final OAVJavaType java_class_type
The java class type.
-
java_exception_type
public static final OAVJavaType java_exception_type
The java exception type.
-
java_string_type
public static final OAVJavaType java_string_type
The java string type.
-
java_boolean_type
public static final OAVJavaType java_boolean_type
The java boolean type.
-
java_integer_type
public static final OAVJavaType java_integer_type
The java integer type.
-
java_long_type
public static final OAVJavaType java_long_type
The java long type.
-
java_double_type
public static final OAVJavaType java_double_type
The java double type.
-
java_float_type
public static final OAVJavaType java_float_type
The java float type.
-
java_collection_type
public static final OAVJavaType java_collection_type
The java collection type.
-
clazz
protected java.lang.Class clazz
The java class.
-
kind
protected java.lang.String kind
The kind of type (value, object, bean).
-
properties
protected java.util.Map properties
Attributes for bean properties.
-
-
Constructor Detail
-
OAVJavaType
public OAVJavaType(java.lang.Class clazz, java.lang.String kind, OAVTypeModel tmodel)Create a new OAV object type.- Parameters:
name- The name of the OAV object type.model- The type model.
-
-
Method Detail
-
isSubtype
public boolean isSubtype(OAVObjectType type)
Test if this object is same type or subtype of this type.- Overrides:
isSubtypein classOAVObjectType- Parameters:
object- The object to test.- Returns:
- True, if object is same type or subtype.
-
getClazz
public java.lang.Class getClazz()
Get the Java class of the type.
-
getKind
public java.lang.String getKind()
Get the kind (i.e. value, object, or bean) of the type.
-
getAttributeType
public OAVAttributeType getAttributeType(java.lang.String attribute)
Get an attribute type description.- Overrides:
getAttributeTypein classOAVObjectType- Parameters:
attribute- The name of the attribute.- Returns:
- The OAV attribute type.
-
getDeclaredAttributeTypes
public java.util.Collection getDeclaredAttributeTypes()
Get the declared attribute types (i.e. not those of super types).- Overrides:
getDeclaredAttributeTypesin classOAVObjectType
-
-