|
|||||||||||
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
Description
Field Summary |
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 | |
BasicCommonClassMapping(java.lang.String ruleName,
MetaObject linkedMO,
MetaObject parent)
Builds a new BasicCommonClassMapping object. |
Method Summary | |
void |
addDependency(java.lang.String jormClassName)
add a dependency to a given jorm class |
void |
addPrimitiveElementMapping(PrimitiveElementMapping peMapping)
Adds a PrimitiveElementMapping object. |
void |
addPrimitiveElementMapping(java.lang.String fieldName,
PrimitiveElementMapping peMapping)
Adds a PrimitiveElementMapping object. |
IdentifierMapping |
createIdentifierMapping(NameDef nd)
Creates a new IdentifierMapping object. |
ReferenceMapping |
createReferenceMapping(java.lang.String ruleName,
NameDef nd)
Creates a new ReferenceMapping object. |
java.util.List |
getAllPrimitiveElementMappings()
Important: This method returns only the PrimitiveElementMapping objects of the class. |
protected java.util.Collection |
getChildren()
|
java.util.Collection |
getDependencies()
Returns the set of class names (Strings) of which the class mapping is dependent |
IdentifierMapping |
getIdentifierMapping()
Returns the IdentifierMapping object. |
PrimitiveElementMapping |
getPrimitiveElementMapping(java.lang.String fieldName)
Returns the PrimitiveElementMapping objects (hidden or not) matching a given fieldName. |
java.util.Collection |
getPrimitiveElementMappings()
Returns a collection of PrimitiveElementMapping objects. |
java.lang.String |
getRuleName()
Returns the name of the rule used to map the class. |
java.util.Iterator |
primitiveElementMappingsIterator()
Returns an Iterator over PrimitiveElementMapping objects. |
void |
removeDependency(java.lang.String jormClassName)
remove a dependency to a given jorm class |
void |
setIdentifierMapping(IdentifierMapping idmapping)
Sets the IdentifierMapping object. |
void |
setRuleName(java.lang.String rulename)
Sets the name of the rule used to map the class. |
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.MappingStructure |
getLinkedMO, getMapperName, getProjectName, setLinkedMO |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
Constructor Detail |
public BasicCommonClassMapping(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 java.lang.String getRuleName()
getRuleName
in interface CommonClassMapping
public void setRuleName(java.lang.String rulename)
setRuleName
in interface CommonClassMapping
rulename
- the name of the rule.public IdentifierMapping getIdentifierMapping()
getIdentifierMapping
in interface CommonClassMapping
public void setIdentifierMapping(IdentifierMapping idmapping)
setIdentifierMapping
in interface CommonClassMapping
idmapping
- the IdentifierMapping object.public java.util.Collection getPrimitiveElementMappings()
getPrimitiveElementMappings
in interface CommonClassMapping
public java.util.List getAllPrimitiveElementMappings()
getAllPrimitiveElementMappings
in interface CommonClassMapping
public PrimitiveElementMapping getPrimitiveElementMapping(java.lang.String fieldName)
CommonClassMapping
getPrimitiveElementMapping
in interface CommonClassMapping
fieldName
- the name of the primitivite field (hidden or not) of
the class of which the PEM must be returned
public void addPrimitiveElementMapping(PrimitiveElementMapping peMapping)
addPrimitiveElementMapping
in interface CommonClassMapping
peMapping
- the PrimitiveElementMapping object to add to the list.public void addPrimitiveElementMapping(java.lang.String fieldName, PrimitiveElementMapping peMapping)
addPrimitiveElementMapping
in interface CommonClassMapping
peMapping
- the PrimitiveElementMapping object to add to the list.public java.util.Iterator primitiveElementMappingsIterator()
primitiveElementMappingsIterator
in interface CommonClassMapping
public IdentifierMapping createIdentifierMapping(NameDef nd)
createIdentifierMapping
in interface CommonClassMapping
nd
- the NameDef object that defines an object identifier.
public ReferenceMapping createReferenceMapping(java.lang.String ruleName, NameDef nd)
createReferenceMapping
in interface CommonClassMapping
ruleName
- the name of the rule used to map the reference,
nd the NameDef object that defines an object reference.
public void addDependency(java.lang.String jormClassName)
CommonClassMapping
addDependency
in interface CommonClassMapping
jormClassName
- the name of the class to which depends the class mappingpublic void removeDependency(java.lang.String jormClassName)
CommonClassMapping
removeDependency
in interface CommonClassMapping
jormClassName
- the name of the class to which the class mapping does
not depend anymorepublic java.util.Collection getDependencies()
CommonClassMapping
getDependencies
in interface CommonClassMapping
protected java.util.Collection getChildren()
getChildren
in class BasicMetaObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |