public class OAVJavaType extends OAVObjectType
| Modifier and Type | Field and 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.
|
attributes, name, supertype, tmodel| Constructor and Description |
|---|
OAVJavaType(java.lang.Class clazz,
java.lang.String kind,
OAVTypeModel tmodel)
Create a new OAV object type.
|
| Modifier and Type | Method and 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.
|
addAttributeType, createAttributeType, createAttributeType, createAttributeType, createAttributeType, equals, getAttributeType0, getDeclaredAttributeType0, getName, getSupertype, getTypeModel, hashCode, toStringpublic static final java.lang.String KIND_VALUE
public static final java.lang.String KIND_OBJECT
public static final java.lang.String KIND_BEAN
public static final OAVTypeModel java_type_model
public static final OAVJavaType java_object_type
public static final OAVJavaType java_class_type
public static final OAVJavaType java_exception_type
public static final OAVJavaType java_string_type
public static final OAVJavaType java_boolean_type
public static final OAVJavaType java_integer_type
public static final OAVJavaType java_long_type
public static final OAVJavaType java_double_type
public static final OAVJavaType java_float_type
public static final OAVJavaType java_collection_type
protected java.lang.Class clazz
protected java.lang.String kind
protected java.util.Map properties
public OAVJavaType(java.lang.Class clazz,
java.lang.String kind,
OAVTypeModel tmodel)
name - The name of the OAV object type.model - The type model.public boolean isSubtype(OAVObjectType type)
isSubtype in class OAVObjectTypeobject - The object to test.public java.lang.Class getClazz()
public java.lang.String getKind()
public OAVAttributeType getAttributeType(java.lang.String attribute)
getAttributeType in class OAVObjectTypeattribute - The name of the attribute.public java.util.Collection getDeclaredAttributeTypes()
getDeclaredAttributeTypes in class OAVObjectType