org.objectweb.jorm.metainfo.lib
Class BasicMetaObject

java.lang.Object
  extended byorg.objectweb.jorm.metainfo.lib.BasicMetaObject
All Implemented Interfaces:
Loggable, MetaObject, java.io.Serializable
Direct Known Subclasses:
BasicClass, BasicClassProject, BasicClassRef, BasicCompositeName, BasicFieldName, BasicGenClass, BasicGenClassRef, BasicMapping, BasicMappingStructure, BasicMemMappingFactory, BasicNameDef, BasicNameRef, BasicPackage, BasicTypedElement, FosMappingFactory, JormManager, Predicate, RdbFilter, RdbInheritanceQuery, RdbJoin, RdbMappingFactory

public class BasicMetaObject
extends java.lang.Object
implements MetaObject, Loggable

Description

See Also:
Serialized Form

Field Summary
protected  boolean debug
           
protected  Logger logger
           
protected  LoggerFactory loggerFactory
           
protected  MetaObject parent
          The parent of the current object.
 
Constructor Summary
BasicMetaObject(MetaObject parent)
          Builds a new BasicMetaObject object.
 
Method Summary
protected  java.util.Collection getChildren()
           
 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.
 Manager getManager()
          Returns the Manager object.
 MetaObject getParent()
          Returns the parent MetaObject of the current MetaObject.
 void setLogger(Logger logger)
          Assigns a logger to an component that wants to log things.
 void setLoggerFactory(LoggerFactory loggerfactory)
          Assigns a logger factory that allows the creation of new loggers.
 void setLoggingOnChild(MetaObject mo)
           
 void setParent(MetaObject parent)
          Sets 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
 

Field Detail

parent

protected MetaObject parent
The parent of the current object.


logger

protected transient Logger logger

loggerFactory

protected transient LoggerFactory loggerFactory

debug

protected transient boolean debug
Constructor Detail

BasicMetaObject

public BasicMetaObject(MetaObject parent)
Builds a new BasicMetaObject object.

Parameters:
parent - the parent of the current object
Method Detail

getChildren

protected java.util.Collection getChildren()

setLoggingOnChild

public void setLoggingOnChild(MetaObject mo)

getLogger

public Logger getLogger()
Description copied from interface: Loggable
Returns a logger to an component that wants to log things.

Specified by:
getLogger in interface Loggable

getLoggerFactory

public LoggerFactory getLoggerFactory()
Description copied from interface: Loggable
Returns a logger factory that allows the creation of new loggers.

Specified by:
getLoggerFactory in interface Loggable

setLogger

public void setLogger(Logger logger)
Description copied from interface: Loggable
Assigns a logger to an component that wants to log things.

Specified by:
setLogger in interface Loggable
Parameters:
logger - the logger object

setLoggerFactory

public void setLoggerFactory(LoggerFactory loggerfactory)
Description copied from interface: Loggable
Assigns a logger factory that allows the creation of new loggers.

Specified by:
setLoggerFactory in interface Loggable
Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers

getParent

public MetaObject getParent()
Returns the parent MetaObject of the current MetaObject.

Specified by:
getParent in interface MetaObject
Returns:
the MetaObject corresponding to the parent of the current object. If there is no parent, null is returned.

setParent

public void setParent(MetaObject parent)
Sets the parent of the current meta object if it is not yet done by the constructor of the meta object

Specified by:
setParent in interface MetaObject
Parameters:
parent - the parent MetaObject of the current object

getManager

public Manager getManager()
Returns the Manager object.

Returns:
the Manager object.