1 23 24 package org.objectweb.jorm.mapper.fos.metainfo; 25 26 import org.objectweb.jorm.metainfo.lib.BasicGenClassMapping; 27 import org.objectweb.jorm.metainfo.api.MetaObject; 28 import org.objectweb.jorm.metainfo.api.GenClassRef; 29 30 33 public class FosGenClassMapping extends BasicGenClassMapping 34 implements FosMappingInfos { 35 private String dirName = null; 36 37 42 public FosGenClassMapping(MetaObject linkedMO, MetaObject parent) { 43 super(null, linkedMO, parent); 44 } 45 46 48 53 public String getDirName() { 54 return dirName; 55 } 56 57 62 public void setDirName(String dirname) { 63 dirName = dirname; 64 } 65 66 70 public void addFieldMapping(String fn) { 71 GenClassRef gcr = (GenClassRef) getLinkedMO(); 72 MetaObject f = gcr.getHiddenField(fn); 73 if (f != null) { 74 if (getPrimitiveElementMapping(fn) == null) { 75 addPrimitiveElementMapping( 76 new FosPrimitiveElementMapping(this, f)); 77 } 78 } 79 } 80 } 81 | Popular Tags |