|
|||||||||||
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.BasicCommonClassMapping
org.objectweb.jorm.metainfo.lib.BasicClassMapping
BasicClassMapping is THE basic implementation of the ClassMapping interface. It defines basic methods, and must be extended to different mappers. This class is abstract since it does not implement the createImplicitParentClassMapping of ClassMapping which is specific to mappers
Field Summary | |
protected java.util.List |
parentClassMappings
A vector of ParentClassMapping objects. |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure |
linkedMO |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
debug, 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,
Class superClass)
Creates a new ParentClassMapping object. |
ReferenceMapping |
createReferenceMapping(java.lang.String ruleName,
NameDef nd)
Creates a new ReferenceMapping object. |
protected java.util.Collection |
getChildren()
|
Class |
getJormClass()
|
ParentClassMapping |
getParentClassMapping(java.lang.String classFQName)
Returns the parent class mapping using the Fully-Qualified name of its parent |
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.BasicCommonClassMapping |
addDependency, addPrimitiveElementMapping, addPrimitiveElementMapping, createIdentifierMapping, getAllPrimitiveElementMappings, getDependencies, getIdentifierMapping, getPrimitiveElementMapping, getPrimitiveElementMappings, getRuleName, primitiveElementMappingsIterator, 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 |
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.ClassMapping |
addImplicitDependencies, createImplicitParentClassMapping, getPrimitiveElementMapping |
Methods inherited from interface org.objectweb.jorm.metainfo.api.CommonClassMapping |
addDependency, addPrimitiveElementMapping, addPrimitiveElementMapping, createIdentifierMapping, getAllPrimitiveElementMappings, getDependencies, getIdentifierMapping, getPrimitiveElementMapping, getPrimitiveElementMappings, getRuleName, primitiveElementMappingsIterator, 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 |
Field Detail |
protected java.util.List parentClassMappings
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 Class getJormClass()
getJormClass
in interface ClassMapping
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)
CommonClassMapping
createReferenceMapping
in interface CommonClassMapping
createReferenceMapping
in class BasicCommonClassMapping
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, Class superClass)
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()
getParentClassMappings
in interface ClassMapping
public ParentClassMapping getParentClassMapping(java.lang.String classFQName)
getParentClassMapping
in interface ClassMapping
classFQName
- the Fully-Qualified name of the parent
protected java.util.Collection getChildren()
getChildren
in class BasicCommonClassMapping
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |