org.kobjects.serialization
Class ElementType

java.lang.Object
  |
  +--org.kobjects.serialization.ElementType
Direct Known Subclasses:
PropertyInfo

public class ElementType
extends java.lang.Object

This class encapsulates type information.


Field Summary
static java.lang.Class BOOLEAN_CLASS
           
 ElementType elementType
          Element type for array properties, null if not array prop.
static java.lang.Class INTEGER_CLASS
           
static java.lang.Class LONG_CLASS
           
 boolean multiRef
          if a property is multi-referenced, set this flag to true.
static java.lang.Class OBJECT_CLASS
           
static ElementType OBJECT_TYPE
           
static java.lang.Class STRING_CLASS
           
 java.lang.Object type
          Type of the property/elements.
static java.lang.Class VECTOR_CLASS
           
 
Constructor Summary
ElementType()
           
ElementType(java.lang.Object type)
           
ElementType(java.lang.Object type, boolean multiRef, ElementType elementType)
           
 
Method Summary
 void clear()
           
 void copy(ElementType t2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_CLASS

public static final java.lang.Class OBJECT_CLASS

STRING_CLASS

public static final java.lang.Class STRING_CLASS

INTEGER_CLASS

public static final java.lang.Class INTEGER_CLASS

LONG_CLASS

public static final java.lang.Class LONG_CLASS

BOOLEAN_CLASS

public static final java.lang.Class BOOLEAN_CLASS

VECTOR_CLASS

public static final java.lang.Class VECTOR_CLASS

OBJECT_TYPE

public static final ElementType OBJECT_TYPE

type

public java.lang.Object type
Type of the property/elements. Should usually be an instance of class,

multiRef

public boolean multiRef
if a property is multi-referenced, set this flag to true.

elementType

public ElementType elementType
Element type for array properties, null if not array prop.
Constructor Detail

ElementType

public ElementType()

ElementType

public ElementType(java.lang.Object type)

ElementType

public ElementType(java.lang.Object type,
                   boolean multiRef,
                   ElementType elementType)
Method Detail

clear

public void clear()

copy

public void copy(ElementType t2)