1 18 package org.objectweb.speedo.generation.jorm; 19 20 import org.objectweb.jorm.metainfo.api.Class; 21 import org.objectweb.jorm.metainfo.api.ClassMapping; 22 import org.objectweb.jorm.metainfo.api.Mapping; 23 import org.objectweb.jorm.metainfo.api.PrimitiveElementMapping; 24 import org.objectweb.jorm.metainfo.api.PrimitiveElement; 25 import org.objectweb.jorm.metainfo.api.CommonClassMapping; 26 import org.objectweb.jorm.metainfo.api.GenClassMapping; 27 import org.objectweb.jorm.metainfo.api.GenClassRef; 28 import org.objectweb.jorm.metainfo.api.NameDef; 29 import org.objectweb.jorm.api.PException; 30 import org.objectweb.speedo.metadata.SpeedoClass; 31 import org.objectweb.speedo.metadata.SpeedoField; 32 import org.objectweb.speedo.metadata.SpeedoElement; 33 import org.objectweb.speedo.api.SpeedoException; 34 35 41 public interface JormMIMappingBuilder { 42 43 52 ClassMapping createClassMapping(Class clazz, 53 SpeedoClass sc, 54 Mapping mapping) 55 throws PException, SpeedoException ; 56 57 61 void finalizeClassMapping(SpeedoClass sc, 62 String projectName, 63 String mapperName) 64 throws PException, SpeedoException ; 65 66 75 GenClassMapping createGenClassMapping(GenClassRef gcr, 76 SpeedoField sf, 77 Mapping mapping) 78 throws PException, SpeedoException ; 79 80 90 PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, 91 SpeedoElement selem, 92 CommonClassMapping cm) 93 throws PException, SpeedoException ; 94 95 103 void createNameDefMapping(CommonClassMapping cm, 104 NameDef nd, 105 SpeedoClass sc, 106 boolean isIdentifier, 107 boolean isInGenClass) 108 throws PException, SpeedoException; 109 110 111 } 112 | Popular Tags |