org.objectweb.jorm.mapper.fos.metainfo
Class FosGenClassMapping

java.lang.Object
  extended byorg.objectweb.jorm.metainfo.lib.BasicMetaObject
      extended byorg.objectweb.jorm.metainfo.lib.BasicMappingStructure
          extended byorg.objectweb.jorm.metainfo.lib.BasicCommonClassMapping
              extended byorg.objectweb.jorm.metainfo.lib.BasicGenClassMapping
                  extended byorg.objectweb.jorm.mapper.fos.metainfo.FosGenClassMapping
All Implemented Interfaces:
CommonClassMapping, FosMappingInfos, GenClassMapping, Loggable, MappingStructure, MetaObject, java.io.Serializable

public class FosGenClassMapping
extends BasicGenClassMapping
implements FosMappingInfos

Author:
P. Dechamboux
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
FosGenClassMapping(MetaObject linkedMO, MetaObject parent)
          Builds a new BasicGenClassMapping.
 
Method Summary
 void addFieldMapping(java.lang.String fn)
          Adds a field mapping for this field with the given name.
 java.lang.String getDirName()
          Retrieves the name of the directory where class objects are stored.
 void setDirName(java.lang.String dirname)
          Assigns the name of the directory where class objects are stored.
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicGenClassMapping
createReferenceMapping, getReferenceMapping, setReferenceMapping
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicCommonClassMapping
addDependency, addPrimitiveElementMapping, addPrimitiveElementMapping, createIdentifierMapping, getAllPrimitiveElementMappings, getChildren, 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.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
 

Constructor Detail

FosGenClassMapping

public FosGenClassMapping(MetaObject linkedMO,
                          MetaObject parent)
Builds a new BasicGenClassMapping.

Parameters:
linkedMO - the object referenced by the current object,
parent - the parent of the current object.
Method Detail

getDirName

public java.lang.String getDirName()
Retrieves the name of the directory where class objects are stored.

Specified by:
getDirName in interface FosMappingInfos
Returns:
The directory name.

setDirName

public void setDirName(java.lang.String dirname)
Assigns the name of the directory where class objects are stored.

Specified by:
setDirName in interface FosMappingInfos
Parameters:
dirname - The directory name.

addFieldMapping

public void addFieldMapping(java.lang.String fn)
Adds a field mapping for this field with the given name.

Parameters:
fn - A field name (hidden or not).