org.objectweb.jorm.metainfo.api
Interface PrimitiveElement

All Superinterfaces:
MetaObject, java.io.Serializable, TypedElement
All Known Subinterfaces:
ScalarField

public interface PrimitiveElement
extends TypedElement

A PrimitiveElement is a field with a primitive type. Type can be boolean | byte | char | short | int | long | float | double | string | serialized| date | time | timestamp A primitive type can not be extended.

Author:
X. Spengler

Method Summary
 int getSize()
          Returns the size of the field in case of string, serialized, arrays, etc
 boolean isScalar()
          Allows to know if the current Field is a scalar field or not.
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.TypedElement
getName, getType
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject
getParent, setParent
 

Method Detail

isScalar

public boolean isScalar()
Allows to know if the current Field is a scalar field or not.

Returns:
true, if the Field is scalar, else false, if the Field is not scalar

getSize

public int getSize()
Returns the size of the field in case of string, serialized, arrays, etc

Returns:
the size for this type