|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--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,
MetaObject parent)
Builds a new PrimitiveElement object. |
|
| Method Summary | |
ValueMapping |
createValueMapping(java.lang.String mapperName,
java.lang.String mappingName)
Creates a new ValueMapping object for the current element. |
org.objectweb.util.monolog.api.Logger |
getLogger()
Returns a logger to an component that wants to log things. |
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.lang.String |
getName()
Returns the name of the current typed element. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
PType |
getType()
Allows to know the type of the field. |
ValueMapping |
getValueMapping(java.lang.String mapperName,
java.lang.String mappingName)
Returns a ValueMapping object for the current element object. |
boolean |
isScalar()
Allows to know if the current Field is a scalar field or not. |
java.util.Iterator |
iterateValueMapping()
Allows to know all the ValueMapping object used for the current element. |
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
Defines a logger object. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
void |
setParent(MetaObject itsParent)
Set the parent of the current meta object if it is not yet done by the constructor of the meta object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicPrimitiveElement(java.lang.String name,
PType type,
MetaObject parent)
name - the name of the primitive fieldtype - the type of the field (PType object)parent - the parent of the current object| Method Detail |
public boolean isScalar()
isScalar in interface PrimitiveElement
public ValueMapping getValueMapping(java.lang.String mapperName,
java.lang.String mappingName)
getValueMapping in interface PrimitiveElementmapperName - the name of the mapping element namemappingName - the name of the mapping name
public ValueMapping createValueMapping(java.lang.String mapperName,
java.lang.String mappingName)
createValueMapping in interface PrimitiveElementmapperName - the name of the mapper namemappingName - the name of the mapping namepublic java.util.Iterator iterateValueMapping()
iterateValueMapping in interface PrimitiveElementpublic MetaObject getParent()
getParent in interface MetaObjectpublic void setParent(MetaObject itsParent)
setParent in interface MetaObjectitsParent - the parent MetaObject of the current objectpublic java.lang.String getName()
getName in interface TypedElementpublic PType getType()
getType in interface TypedElementpublic void setLogger(org.objectweb.util.monolog.api.Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||