org.objectweb.jorm.metainfo.lib
Class BasicPrimitiveElement

java.lang.Object
  extended byorg.objectweb.jorm.metainfo.lib.BasicMetaObject
      extended byorg.objectweb.jorm.metainfo.lib.BasicTypedElement
          extended byorg.objectweb.jorm.metainfo.lib.BasicPrimitiveElement
All Implemented Interfaces:
java.lang.Comparable, Loggable, MetaObject, PrimitiveElement, java.io.Serializable, TypedElement
Direct Known Subclasses:
BasicScalarField

public class BasicPrimitiveElement
extends BasicTypedElement
implements PrimitiveElement

The BasicPrimitiveElement object is used to define fields which are primitive types. This object is defined by its name, its type, its parent, its size (if used) and a list of mappings for the field.

Author:
X. Spengler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
logger, loggerFactory, parent
 
Constructor Summary
BasicPrimitiveElement(java.lang.String name, PType type, int size, MetaObject parent)
          Builds a new PrimitiveElement object.
 
Method Summary
 boolean isScalar()
          Allows to know if the current Field is a scalar field or not.
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicTypedElement
compareTo, getName, getSize, getType
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
getChildren, getLogger, getLoggerFactory, getManager, getParent, setLogger, setLoggerFactory, setLoggingOnChild, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.PrimitiveElement
getSize
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.TypedElement
getName, getType
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject
getParent, setParent
 

Constructor Detail

BasicPrimitiveElement

public BasicPrimitiveElement(java.lang.String name,
                             PType type,
                             int size,
                             MetaObject parent)
Builds a new PrimitiveElement object. This object is mainly defined by its name, its type and its parent.

Parameters:
name - the name of the primitive field
type - the type of the field (PType object)
parent - the parent of the current object
Method Detail

isScalar

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

Specified by:
isScalar in interface PrimitiveElement
Returns:
true, if the Field is scalar, else false, if the Field is not scalar