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.Class
clazz
The java class.static OAVJavaType
java_boolean_type
The java boolean type.static OAVJavaType
java_class_type
The java class type.static OAVJavaType
java_collection_type
The java collection type.static OAVJavaType
java_double_type
The java double type.static OAVJavaType
java_exception_type
The java exception type.static OAVJavaType
java_float_type
The java float type.static OAVJavaType
java_integer_type
The java integer type.static OAVJavaType
java_long_type
The java long type.static OAVJavaType
java_object_type
The java object type.static OAVJavaType
java_string_type
The java string type.static OAVTypeModel
java_type_model
The java type model.protected java.lang.String
kind
The kind of type (value, object, bean).static java.lang.String
KIND_BEAN
The bean kind (for java beans supporting property changes).static java.lang.String
KIND_OBJECT
The object kind (for normal java objects).static java.lang.String
KIND_VALUE
The value kind (for immutable java objects).protected java.util.Map
properties
Attributes 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 OAVAttributeType
getAttributeType(java.lang.String attribute)
Get an attribute type description.java.lang.Class
getClazz()
Get the Java class of the type.java.util.Collection
getDeclaredAttributeTypes()
Get the declared attribute types (i.e.java.lang.String
getKind()
Get the kind (i.e.boolean
isSubtype(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:
isSubtype
in 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:
getAttributeType
in 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:
getDeclaredAttributeTypes
in classOAVObjectType
-
-