|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.metainfo.lib.BasicNameDef
The BasicNameDef object describes the mapping of a reference field, It can be the PName of a Class. It can be a Field which is an attribute of the class and is a reference; in this case, the reference can be to another Class (ClassObject) or to a GenClass.
Constructor Summary | |
BasicNameDef(MetaObject parent)
Builds a new BasicNameDef objects. |
Method Summary | |
NameRef |
createNameRef(CompositeName cn_Class)
Build a reference toward a composite name describing the namedef. |
java.lang.String |
getFieldName()
Retrieve the name of the field describing the namedef. |
int |
getFieldNumber()
Returns the number of hidden fields which composed the current object. |
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. |
java.lang.String |
getName()
Returns the name of the NameDef object. |
NameRef |
getNameRef()
Retrieves the nameref if the namedef is a composite one. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
boolean |
isFieldName()
allow to know if the namedef is describe by a single field. |
boolean |
isNameRef()
allow to know if the namedef is describe by a composite name. |
boolean |
isSystem()
Allows to know if the mapping of the referenced field is defined by another system (could be defined by Versant system for instance). |
java.util.Iterator |
iterateField()
Returns an iterator on all fields (HiddenFields and FieldRef). |
void |
setFieldName(java.lang.String fieldname)
Allow to set the fieldname describing the namedef single field. |
void |
setLogger(Logger logger)
Defines a logger object. |
void |
setLoggerFactory(LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
void |
setName(java.lang.String name)
Sets the name of the NameDef object. |
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 |
void |
setSystem(boolean system)
Allows to set if the current NameDef is system defined (defined outside jorm) or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicNameDef(MetaObject parent)
parent
- the parent object of the current NameDef objectMethod Detail |
public int getFieldNumber()
getFieldNumber
in interface NameDef
public boolean isSystem()
isSystem
in interface NameDef
public void setSystem(boolean system)
setSystem
in interface NameDef
system
- true, if the mapping is defined by another system, else
false, if the mapping is defined inside JORM (by
ScalarField(s) and FieldName(s)).public boolean isNameRef()
isNameRef
in interface NameDef
public boolean isFieldName()
isFieldName
in interface NameDef
public NameRef createNameRef(CompositeName cn_Class)
createNameRef
in interface NameDef
cn_Class
- the meta object representing the composite name.
public NameRef getNameRef()
getNameRef
in interface NameDef
public java.lang.String getFieldName()
getFieldName
in interface NameDef
public void setFieldName(java.lang.String fieldname)
setFieldName
in interface NameDef
fieldname
- the fieldnamepublic java.lang.String getName()
getName
in interface NameDef
public void setName(java.lang.String name)
setName
in interface NameDef
name
- the name of the NameDef object.public java.util.Iterator iterateField()
iterateField
in interface NameDef
public MetaObject getParent()
getParent
in interface MetaObject
public void setParent(MetaObject itsParent)
setParent
in interface MetaObject
itsParent
- the parent MetaObject of the current objectpublic 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 |