|
|||||||||||
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
Description
Field Summary |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
logger, loggerFactory, parent |
Constructor Summary | |
BasicHelperClassMapping(java.lang.String ruleName,
MetaObject linkedMO,
MetaObject parent)
Builds a new BasicHelperClassMapping object. |
Method Summary | |
void |
addDependency(java.lang.String jormClassName)
|
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.Collection |
getDependencies()
|
IdentifierMapping |
getIdentifierMapping()
Returns the IdentifierMapping object. |
PrimitiveElementMapping |
getPrimitiveElementMapping(java.lang.String fieldName)
Returns the PrimitiveElementMapping objects matching to the fieldName specified. |
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 |
iteratePrimitiveElementMappings()
Returns an Iterator over PrimitiveElementMapping objects. |
void |
removeDependency(java.lang.String jormClassName)
|
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 |
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.MappingStructure |
getLinkedMO, getMapperName, getProjectName, setLinkedMO |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
Constructor Detail |
public BasicHelperClassMapping(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 HelperClassMapping
public void setRuleName(java.lang.String rulename)
setRuleName
in interface HelperClassMapping
rulename
- the name of the rule.public IdentifierMapping getIdentifierMapping()
getIdentifierMapping
in interface HelperClassMapping
public void setIdentifierMapping(IdentifierMapping idmapping)
setIdentifierMapping
in interface HelperClassMapping
idmapping
- the IdentifierMapping object.public java.util.Collection getPrimitiveElementMappings()
getPrimitiveElementMappings
in interface HelperClassMapping
public PrimitiveElementMapping getPrimitiveElementMapping(java.lang.String fieldName)
HelperClassMapping
getPrimitiveElementMapping
in interface HelperClassMapping
fieldName
- is a name of a primitivite field (hidden or not) of
the class
public void addPrimitiveElementMapping(PrimitiveElementMapping peMapping)
addPrimitiveElementMapping
in interface HelperClassMapping
peMapping
- the PrimitiveElementMapping object to add to the list.public void addPrimitiveElementMapping(java.lang.String fieldName, PrimitiveElementMapping peMapping)
addPrimitiveElementMapping
in interface HelperClassMapping
peMapping
- the PrimitiveElementMapping object to add to the list.public java.util.Iterator iteratePrimitiveElementMappings()
iteratePrimitiveElementMappings
in interface HelperClassMapping
public IdentifierMapping createIdentifierMapping(NameDef nd)
createIdentifierMapping
in interface HelperClassMapping
nd
- the NameDef object that defines an object identifier.
public ReferenceMapping createReferenceMapping(java.lang.String ruleName, NameDef nd)
createReferenceMapping
in interface HelperClassMapping
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)
addDependency
in interface HelperClassMapping
public void removeDependency(java.lang.String jormClassName)
removeDependency
in interface HelperClassMapping
public java.util.Collection getDependencies()
getDependencies
in interface HelperClassMapping
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |