1 23 package org.objectweb.jorm.metainfo.lib; 24 25 import org.objectweb.jorm.metainfo.api.MetaObject; 26 import org.objectweb.jorm.metainfo.api.ParentClassMapping; 27 import org.objectweb.jorm.metainfo.api.Class; 28 29 public class BasicParentClassMapping 30 extends BasicMappingStructure 31 implements ParentClassMapping { 32 33 36 private String ruleName; 37 38 44 public BasicParentClassMapping(String ruleName, Class superClass, MetaObject parentMO) { 45 super(parentMO, superClass); 46 this.ruleName = ruleName; 47 } 48 49 53 57 public String getRuleName() { 58 return this.ruleName; 59 } 60 61 65 public void setRuleName(String rulename) { 66 this.ruleName = rulename; 67 } 68 69 73 public String getFQName() { 74 return ((Class ) getLinkedMO()).getFQName(); 75 } 76 77 81 public Class getMOClass() { 82 return (Class ) getLinkedMO(); 83 } 84 } 85 86 | Popular Tags |