|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.BasicNameRef
The BasicNameRef is used to reference a composite name. nameref are used in namedef to define pname with multiple fields.
| Constructor Summary | |
BasicNameRef(CompositeName cn_Class,
MetaObject parent)
Builds a new BasicNameRef object. |
|
| Method Summary | |
void |
addProjection(java.lang.String namefield,
java.lang.String classfield)
Add a projection between a field in the composite name structure and a field in the class. |
boolean |
equalCNType(java.lang.Object obj)
test if the type of the compositename referenced in this nameref is equals to the type referenced by the nameref passed as parameter. |
boolean |
equals(java.lang.Object nr)
|
java.lang.String |
getClassFieldName(java.lang.String fieldName)
Return the class field name associated with the composite name field name. |
java.lang.String |
getCNPackageName()
Return the name of the schema for the composite name referenced by this nameref. |
CompositeName |
getCompositeName()
Retrieve the metaobject describing the composite name referenced by this nameref. |
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()
Retrieve the name of the nameref. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
java.util.Map |
getProjection()
Retrieve the list of projections between the fields of the composite name and the field of the class. |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicNameRef(CompositeName cn_Class,
MetaObject parent)
cn_Class - the composite name referenced by the namerefparent - the parent meta-object of the current nameref (this is a namedef).| Method Detail |
public void addProjection(java.lang.String namefield,
java.lang.String classfield)
addProjection in interface NameRefnamefield - the name of the field in the composite nameclassfield - the name of the field in the classpublic java.util.Map getProjection()
getProjection in interface NameRefpublic java.lang.String getClassFieldName(java.lang.String fieldName)
getClassFieldName in interface NameReffieldName - the name of a field in the composite name.
public java.lang.String getName()
getName in interface NameRefpublic CompositeName getCompositeName()
getCompositeName in interface NameRefpublic boolean equals(java.lang.Object nr)
equals in class java.lang.Objectpublic java.lang.String getCNPackageName()
NameRef
getCNPackageName in interface NameRefpublic boolean equalCNType(java.lang.Object obj)
equalCNType in interface NameRefobj - the nameref to compare to
public MetaObject getParent()
getParent in interface MetaObjectpublic void setParent(MetaObject itsParent)
setParent in interface MetaObjectitsParent - the parent MetaObject of the current objectpublic void setLogger(Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic Logger getLogger()
Loggable
getLogger in interface Loggablepublic LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory in interface Loggable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||