|
|||||||||||
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.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 | |
int |
compareTo(java.lang.Object o)
|
NameDef |
createRefNameDef()
Creates a new NameDef object for the current reference class object. |
java.lang.String |
getClassName()
Returns the name of the class ref. |
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. |
Class |
getMOClass()
Returns the Class object which describes the ClassRef entity. |
java.lang.String |
getName()
Returns the name of the current typed element. |
java.util.Collection |
getRefNameDef()
Returns an iterator on existing NameDef for the current Class. |
NameDef |
getRefNameDef(java.lang.String name)
Returns a NameDef object. |
PType |
getType()
Allows to know the type of the field. |
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.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.MetaObject |
getParent, setParent |
Constructor Detail |
public BasicClassRef(java.lang.String fieldName, Class currentClass, MetaObject parent)
fieldName
- the string representation of the field namecurrentClass
- the reference to the classparent
- the parent of the current objectMethod Detail |
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public Class getMOClass()
getMOClass
in interface ClassRef
public java.lang.String getClassName()
getClassName
in interface ClassRef
public java.lang.String getName()
getName
in interface TypedElement
public PType getType()
getType
in interface TypedElement
public NameDef createRefNameDef()
createRefNameDef
in interface Reference
public NameDef getRefNameDef(java.lang.String name)
getRefNameDef
in interface Reference
name
- the name of the NameDef object.
public java.util.Collection getRefNameDef()
getRefNameDef
in interface Reference
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 |