|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.BasicMetaObject | +--org.objectweb.jorm.metainfo.lib.BasicTypedElement | +--org.objectweb.jorm.metainfo.lib.BasicPrimitiveElement
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.
Constructor Summary | |
BasicPrimitiveElement(java.lang.String name,
PType type,
int size,
MetaObject parent)
Builds a new PrimitiveElement object. |
Method Summary | |
Logger |
getLogger()
Returns a logger to an component that wants to log things. |
LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
boolean |
isScalar()
Allows to know if the current Field is a scalar field or not. |
void |
setLogger(Logger logger)
Defines a logger object. |
void |
setLoggerFactory(LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicTypedElement |
compareTo, getName, getSize, getType |
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
getManager, getParent, 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 |
public BasicPrimitiveElement(java.lang.String name, PType type, int size, MetaObject parent)
name
- the name of the primitive fieldtype
- the type of the field (PType object)parent
- the parent of the current objectMethod Detail |
public boolean isScalar()
isScalar
in interface PrimitiveElement
public void setLogger(Logger logger)
setLogger
in interface Loggable
logger
- the logger objectpublic void setLoggerFactory(LoggerFactory loggerFactory)
setLoggerFactory
in interface Loggable
loggerFactory
- the LoggerFactory object to obtain a logger objectpublic Logger getLogger()
Loggable
getLogger
in interface Loggable
public LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory
in interface Loggable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |