org.objectweb.jorm.metainfo.lib
Class BasicFieldName

java.lang.Object
  |
  +--org.objectweb.jorm.metainfo.lib.BasicFieldName
All Implemented Interfaces:
FieldName, Loggable, MetaObject, java.io.Serializable

public class BasicFieldName
extends java.lang.Object
implements FieldName, Loggable

The FieldName object defines methods to reference an already existing Field.

Author:
X. Spengler
See Also:
Serialized Form

Constructor Summary
BasicFieldName(java.lang.String field, MetaObject parent)
          Builds a new BasicFieldName object.
 
Method Summary
 java.lang.String getField()
          Returns the name of the referenced field.
 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.
 MetaObject getParent()
          Allows to know the parent MetaObject of the current MetaObject.
 void setField(java.lang.String field)
          Allows to set the name of the referenced field.
 void setLogger(Logger logger)
          Defines a logger object.
 void setLoggerFactory(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

BasicFieldName

public BasicFieldName(java.lang.String field,
                      MetaObject parent)
Builds a new BasicFieldName object.

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

getField

public java.lang.String getField()
Returns the name of the referenced field.

Specified by:
getField in interface FieldName
Returns:
the string representation of the referenced field

setField

public void setField(java.lang.String field)
Allows to set the name of the referenced field.

Specified by:
setField in interface FieldName
Parameters:
field - the string representation of the referenced field

setLogger

public void setLogger(Logger logger)
Defines a logger object.

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

setLoggerFactory

public void setLoggerFactory(LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger.

Specified by:
setLoggerFactory in interface Loggable
Parameters:
loggerFactory - the LoggerFactory object to obtain a logger object

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

getParent

public MetaObject getParent()
Allows to know 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 itsParent)
Set 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:
itsParent - the parent MetaObject of the current object