Class OAVJavaType


  • public class OAVJavaType
    extends OAVObjectType
    A java type that
    • 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 class OAVObjectType
        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 class OAVObjectType
        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 class OAVObjectType