|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.metainfo.lib.BasicMetaObject
org.objectweb.jorm.metainfo.lib.BasicMappingStructure
org.objectweb.jorm.metainfo.lib.BasicHelperClassMapping
org.objectweb.jorm.metainfo.lib.BasicClassMapping
BasicClassMapping is THE basic implementation of the ClassMapping interface. * Its defines basic methods, and must be extended to different mappers.
Field Summary |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
logger, loggerFactory, parent |
Constructor Summary | |
BasicClassMapping(java.lang.String ruleName,
MetaObject linkedMO,
MetaObject parent)
Builds a new BasicClassMapping. |
Method Summary | |
void |
addParentClassMapping(ParentClassMapping pcm)
Adds a ParentClassMapping object. |
void |
addReferenceMapping(ReferenceMapping refMapping)
Adds a ReferenceMapping object. |
ParentClassMapping |
createParentClassMapping(java.lang.String ruleName,
Extension parentClass)
Creates a new ParentClassMapping object. |
ReferenceMapping |
createReferenceMapping(java.lang.String ruleName,
NameDef nd)
Creates a new ReferenceMapping object. |
java.util.Collection |
getParentClassMappings()
Returns a collection of ParentClassMapping objects. |
ReferenceMapping |
getReferenceMapping(java.lang.String referenceName)
Retrieves the ReferenceMapping instance corresponding to the name of a reference field. |
java.util.Collection |
getReferenceMappings()
Returns a collection of ReferenceMapping objects. |
java.util.Iterator |
iterateParentClassMappings()
Returns an Iterator over ParentClassMapping objects. |
java.util.Iterator |
iterateReferenceMappings()
Returns an Iterator over ReferenceMapping objects. |
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicHelperClassMapping |
addDependency, addPrimitiveElementMapping, addPrimitiveElementMapping, createIdentifierMapping, getDependencies, getIdentifierMapping, getPrimitiveElementMapping, getPrimitiveElementMappings, getRuleName, iteratePrimitiveElementMappings, removeDependency, setIdentifierMapping, setRuleName |
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure |
getLinkedMO, getMapperName, getProjectName, setLinkedMO |
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
getChildren, getLogger, getLoggerFactory, getManager, getParent, setLogger, setLoggerFactory, setLoggingOnChild, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jorm.metainfo.api.HelperClassMapping |
addDependency, addPrimitiveElementMapping, addPrimitiveElementMapping, createIdentifierMapping, getDependencies, getIdentifierMapping, getPrimitiveElementMapping, getPrimitiveElementMappings, getRuleName, iteratePrimitiveElementMappings, removeDependency, setIdentifierMapping, setRuleName |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MappingStructure |
getLinkedMO, getMapperName, getProjectName, setLinkedMO |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
Constructor Detail |
public BasicClassMapping(java.lang.String ruleName, MetaObject linkedMO, MetaObject parent)
ruleName
- the name of the rule used to map the class,
linkedMO the object referenced by the current object,
parent the parent of the current object.Method Detail |
public void addReferenceMapping(ReferenceMapping refMapping)
addReferenceMapping
in interface ClassMapping
refMapping
- the ReferenceMapping object to add to the list.public ReferenceMapping createReferenceMapping(java.lang.String ruleName, NameDef nd)
HelperClassMapping
createReferenceMapping
in interface HelperClassMapping
createReferenceMapping
in class BasicHelperClassMapping
ruleName
- the name of the rule used to map the reference,
nd the NameDef object that defines an object reference.
public ReferenceMapping getReferenceMapping(java.lang.String referenceName)
ClassMapping
getReferenceMapping
in interface ClassMapping
referenceName
- is the name of a reference field
public java.util.Iterator iterateReferenceMappings()
iterateReferenceMappings
in interface ClassMapping
public java.util.Collection getReferenceMappings()
getReferenceMappings
in interface ClassMapping
public void addParentClassMapping(ParentClassMapping pcm)
pcm
- the ParentClassMapping object to add to the list.public ParentClassMapping createParentClassMapping(java.lang.String ruleName, Extension parentClass)
ruleName
- the name of the rule used to map the reference,
parentClass the name of a parent class.
public java.util.Iterator iterateParentClassMappings()
public java.util.Collection getParentClassMappings()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |