org.objectweb.jorm.metainfo.lib
Class BasicReferenceMapping

java.lang.Object
  extended byorg.objectweb.jorm.metainfo.lib.BasicMetaObject
      extended byorg.objectweb.jorm.metainfo.lib.BasicMappingStructure
          extended byorg.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
linkedMO
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
debug, logger, loggerFactory, parent
 
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, 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

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.