1 23 package org.objectweb.jorm.metainfo.lib; 24 25 import org.objectweb.jorm.metainfo.api.GenClassMapping; 26 import org.objectweb.jorm.metainfo.api.MetaObject; 27 import org.objectweb.jorm.metainfo.api.ReferenceMapping; 28 import org.objectweb.jorm.metainfo.api.NameDef; 29 30 33 public class BasicGenClassMapping extends BasicCommonClassMapping 34 implements GenClassMapping { 35 40 private ReferenceMapping referenceMapping; 41 42 48 public BasicGenClassMapping(String ruleName, MetaObject linkedMO, 49 MetaObject parent) { 50 super(ruleName, linkedMO, parent); 51 this.referenceMapping = null; 52 } 53 54 58 62 public void setReferenceMapping(ReferenceMapping refMapping) { 63 this.referenceMapping = refMapping; 64 } 65 66 70 public ReferenceMapping getReferenceMapping() { 71 return referenceMapping; 72 } 73 74 public ReferenceMapping createReferenceMapping(String ruleName, NameDef nd) { 75 ReferenceMapping res = super.createReferenceMapping(ruleName, nd); 76 setReferenceMapping(res); 77 return res; 78 } 79 } 80 | Popular Tags |