org.objectweb.jorm.metainfo.lib
Class BasicPrimitiveElement
java.lang.Object
org.objectweb.jorm.metainfo.lib.BasicMetaObject
org.objectweb.jorm.metainfo.lib.BasicTypedElement
org.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
Method Summary |
boolean |
isScalar()
Allows to know if the current Field is a scalar field or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 fieldtype
- the type of the field (PType object)parent
- the parent of the current object
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