org.objectweb.jorm.metainfo.lib
Class BasicReferenceMapping

java.lang.Object
  |
  +--org.objectweb.jorm.metainfo.lib.BasicMetaObject
        |
        +--org.objectweb.jorm.metainfo.lib.BasicMappingStructure
              |
              +--org.objectweb.jorm.metainfo.lib.BasicReferenceMapping
All Implemented Interfaces:
Loggable, MappingStructure, MetaObject, ReferenceMapping, java.io.Serializable

public class BasicReferenceMapping
extends BasicMappingStructure
implements ReferenceMapping

Description

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure
logger
 
Constructor Summary
BasicReferenceMapping(java.lang.String ruleName, MetaObject linkedMO, MetaObject parent)
          Builds a new BasicReferenceMapping object.
 
Method Summary
 java.lang.String getRuleName()
          Returns the name of the rule used to map the reference.
 void setRuleName(java.lang.String rulename)
          Sets the name of the rule used to map the reference.
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure
getLinkedMO, getLogger, getLoggerFactory, getMapperName, getProjectName, setLinkedMO, setLogger, setLoggerFactory
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
getManager, getParent, 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, getLogger, getLoggerFactory, getMapperName, getProjectName, setLinkedMO, setLogger, setLoggerFactory
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject
getParent, setParent
 

Constructor Detail

BasicReferenceMapping

public BasicReferenceMapping(java.lang.String ruleName,
                             MetaObject linkedMO,
                             MetaObject parent)
Builds a new BasicReferenceMapping object.

Parameters:
ruleName - the name of the rule used to map the reference, linkedMO the NameDef object referenced by the current object, parent the parent object of the current object.
Method Detail

getRuleName

public java.lang.String getRuleName()
Returns the name of the rule used to map the reference.

Specified by:
getRuleName in interface ReferenceMapping
Returns:
the name of the rule.

setRuleName

public void setRuleName(java.lang.String rulename)
Sets the name of the rule used to map the reference.

Specified by:
setRuleName in interface ReferenceMapping
Parameters:
rulename - the name of the rule.