|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.BasicGenClassRef
BasicGenClassRef defines a reference to a generic class which is class field. This object is created by the GenClass object to define its fields.
| Constructor Summary | |
BasicGenClassRef(java.lang.String genClassName,
java.lang.String name,
MetaObject parent)
Builds a new BasicGenClassRef object. |
|
| Method Summary | |
ClassMapping |
createClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
Creates a new ClassMapping object for the current reference. |
ClassRef |
createClassRef(Class clazz)
Creates a new ClassRef object, and attach it to the current GenClassRef This method must be used when the recursion is finished (we are on final object which is a ClassRef). |
GenClassRef |
createGenClassRef(java.lang.String genClassRefName)
Creates a new GenClassRef object. |
ScalarField |
createHiddenField(java.lang.String fieldName,
PType type)
Create a new hidden field for the refgenclass. |
NameDef |
createNameDef()
Creates a new NameDef object for the current reference class object. |
PrimitiveElement |
createPrimitiveElement(PType type)
Creates a new PrimitiveElement object, and attach it to the current GenClassRef This method must be used when the recursion is finished (we are on final object which is a PrimitiveElement). |
NameDef |
createRefNameDef()
Creates a new NameDef object for the new GenClassRef object. |
ClassMapping |
getClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
Returns an existing ClassMapping object for the current reference object from a given mapper name and mapping name. |
ClassRef |
getClassRef()
Returns the ClassRef object which defines the current GenClassRef object. |
GenClass |
getGenClass()
Returns the underlying GenClass object which describes the generic class object used. |
java.lang.String |
getGenClassName()
Returns the name of the GenClass object. |
GenClassRef |
getGenClassRef()
Returns the GenClassRef object which defines the current GenClassRef object. |
ScalarField |
getHiddenField(java.lang.String fieldName)
retrieve an hiddenfield from its name. |
org.objectweb.util.monolog.api.Logger |
getLogger()
Returns a logger to an component that wants to log things. |
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.lang.String |
getName()
Returns the name of the current typed element. |
NameDef |
getNameDef(java.lang.String mappingName)
Returns a NameDef object from a given mappingName. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
PrimitiveElement |
getPrimitiveElement()
Returns the PrimitiveElement object which defines the current GenClassRef object. |
NameDef |
getRefNameDef(java.lang.String mappingName)
Returns a NameDef object from a given mapperName and mappingName. |
PType |
getType()
Allows to know the type of the field. |
boolean |
isClassRef()
Allows to know if the current object is a reference to a Class or not. |
boolean |
isGenClassRef()
Allows to know if the current object is a reference to a generic class or not. |
boolean |
isPrimitive()
Allows to know if the current object is primitive or not (final and "basic"). |
java.util.Iterator |
iterateClassMapping()
Allows to know all the ClassMapping objects used for the current reference. |
java.util.Iterator |
iterateHiddenField()
return an iterator over the hiddenfield of the refgenclass definition. |
java.util.Iterator |
iterateNameDef()
Returns an iterator on existing NameDef for the current Class. |
java.util.Iterator |
iterateRefNameDef()
Returns an iterator on existing NameDef of GenClassRef object. |
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
Defines a logger object. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.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 |
public BasicGenClassRef(java.lang.String genClassName,
java.lang.String name,
MetaObject parent)
genClassName - the name of the generic class referencename - the string representation of the generic class
field nameparent - the parent of the current object| Method Detail |
public PrimitiveElement createPrimitiveElement(PType type)
createPrimitiveElement in interface GenClassReftype - is the PType of the primitive element which will be createdpublic ClassRef createClassRef(Class clazz)
createClassRef in interface GenClassRefclazz - the reference to the Class object which defines the
current GenClassRef object. This object is the final
object of the recursion.public GenClassRef createGenClassRef(java.lang.String genClassRefName)
createGenClassRef in interface GenClassRefgenClassRefName - the name of the generic class used to create a
new GenClassRef objectpublic PrimitiveElement getPrimitiveElement()
getPrimitiveElement in interface GenClassRefpublic ClassRef getClassRef()
getClassRef in interface GenClassRefpublic GenClassRef getGenClassRef()
getGenClassRef in interface GenClassRefpublic boolean isPrimitive()
isPrimitive in interface GenClassRefpublic boolean isClassRef()
isClassRef in interface GenClassRefpublic boolean isGenClassRef()
isGenClassRef in interface GenClassRefpublic NameDef getRefNameDef(java.lang.String mappingName)
GenClassRefgetRefNameDef in interface GenClassReforg.objectweb.jorm.metainfo.api.GenClassRefmapperName - the name of the mappermappingName - the name of the mappingpublic NameDef createRefNameDef()
createRefNameDef in interface GenClassRefnameDefName - the name of the nameDef read in the persistence
description fileisSystem - true, the namedef is defined outside jorm, else
false, the namedef is define inside jormpublic java.util.Iterator iterateRefNameDef()
iterateRefNameDef in interface GenClassRef
public ScalarField createHiddenField(java.lang.String fieldName,
PType type)
createHiddenField in interface GenClassRefpublic java.util.Iterator iterateHiddenField()
iterateHiddenField in interface GenClassRefpublic ScalarField getHiddenField(java.lang.String fieldName)
getHiddenField in interface GenClassRefpublic GenClass getGenClass()
getGenClass in interface GenClassRef
public ClassMapping getClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
getClassMapping in interface GenClassRefmapperName - the name of the mapper reference namemappingName - the name of the mapping reference name
public ClassMapping createClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
createClassMapping in interface GenClassRefmapperName - the name of the reference mappermappingName - the name of the reference mappingpublic java.util.Iterator iterateClassMapping()
iterateClassMapping in interface GenClassRefpublic java.lang.String getGenClassName()
getGenClassName in interface GenClassRefpublic MetaObject getParent()
getParent in interface MetaObjectpublic void setParent(MetaObject itsParent)
setParent in interface MetaObjectitsParent - the parent MetaObject of the current objectpublic NameDef createNameDef()
createNameDef in interface ReferencenameDefName - the name of the nameDef read in the persistence
description fileisSystem - true, the namedef is defined outside jorm, and
false, the namedef is define inside jormpublic NameDef getNameDef(java.lang.String mappingName)
getNameDef in interface ReferencemappingName - the name of the mappingpublic java.util.Iterator iterateNameDef()
iterateNameDef in interface Referencepublic void setLogger(org.objectweb.util.monolog.api.Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggerspublic java.lang.String getName()
getName in interface TypedElementpublic PType getType()
getType in interface TypedElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||