|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.BasicClassRef
BasicClassRef defines a reference to a class which is class field. This object is created by the Class object to define its fields.
| Constructor Summary | |
BasicClassRef(java.lang.String fieldName,
Class currentClass,
MetaObject parent)
Builds a new BasicClassRef object. |
|
| Method Summary | |
NameDef |
createNameDef()
Creates a new NameDef object for the current reference class object. |
java.lang.String |
getClassName()
Returns the name of the class ref. |
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. |
Class |
getMOClass()
Returns the Class object which describes the ClassRef entity. |
java.lang.String |
getName()
Returns the name of the current typed element. |
NameDef |
getNameDef(java.lang.String mappingName)
Returns a NameDef object from a given mappingName. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
PType |
getType()
Allows to know the type of the field. |
java.util.Iterator |
iterateNameDef()
Returns an iterator on existing NameDef for the current Class. |
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 BasicClassRef(java.lang.String fieldName,
Class currentClass,
MetaObject parent)
fieldName - the string representation of the field nameclass_ - the reference to the classparent - the parent of the current object| Method Detail |
public Class getMOClass()
getMOClass in interface ClassRefpublic java.lang.String getClassName()
getClassName in interface ClassRefpublic 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 NameDef createNameDef()
createNameDef in interface ReferencenameDefName - the name of the nameDef read in the persistence
description fileisSystem - true, the namedef is defined outside jorm, and
false, the namedef is define inside jormpublic NameDef getNameDef(java.lang.String mappingName)
getNameDef in interface ReferencemappingName - the name of the mappingpublic java.util.Iterator iterateNameDef()
iterateNameDef in interface Referencepublic 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 | |||||||||