1 23 24 package org.objectweb.jorm.mapper.fos.metainfo; 25 26 import org.objectweb.jorm.metainfo.api.ClassMapping; 27 import org.objectweb.jorm.metainfo.api.MappingPrinter; 28 import org.objectweb.jorm.metainfo.api.MappingStructure; 29 import org.objectweb.jorm.metainfo.api.PrimitiveElementMapping; 30 import org.objectweb.jorm.metainfo.api.GenClassMapping; 31 import org.objectweb.jorm.metainfo.api.GenClassRef; 32 33 import java.io.PrintStream ; 34 35 38 public class FosMappingPrinter extends MappingPrinter { 39 public void print(String p, ClassMapping _cm, PrintStream out) { 40 out.println("FOS directory name: '" + ((FosMappingInfos) _cm).getDirName() + "'"); 41 super.print(p, _cm, out); 42 } 43 44 public void print(String p, GenClassMapping _gcm, PrintStream out) { 45 out.println("FosGenClassMapping: '" + ((GenClassRef) _gcm.getLinkedMO()).getGenClassId() + "'"); 46 out.println("FOS directory name: '" + ((FosMappingInfos) _gcm).getDirName() + "'"); 47 super.print(p, _gcm, out); 48 } 49 50 public void print(String p, PrimitiveElementMapping pem, PrintStream out) { 51 } 52 53 public boolean canPrint(MappingStructure ms) { 54 return true; 55 } 56 } 57 | Popular Tags |