1 23 24 package org.objectweb.jorm.xml2mi.api; 25 26 import org.objectweb.jorm.metainfo.api.Manager; 27 import org.objectweb.jorm.metainfo.api.MetaObject; 28 import org.objectweb.jorm.metainfo.api.ClassProject; 29 import org.objectweb.jorm.util.io.api.PathExplorer; 30 import org.objectweb.jorm.api.PException; 31 import org.w3c.dom.Element ; 32 33 import java.util.Iterator ; 34 import java.util.Collection ; 35 import java.util.ArrayList ; 36 37 38 46 public interface Parser { 47 55 Collection parse(Iterator files) throws PException; 56 57 66 MetaObject parse(String file) throws PException; 67 68 69 void parseMapping(Element mappingElem, ClassProject classProject) throws PException; 70 71 76 void setMetaInfoManager(Manager mim); 77 78 82 void setPathExplorer(PathExplorer pathexpl); 83 84 89 void addMappingParser(String mappername, 90 MappingParser mappingParser) throws PException; 91 92 97 public MappingParser getMappingParser(String mapperName); 98 99 105 void init(boolean dtdVerify, ArrayList dtds); 106 107 111 Exception getParserException(); 112 } 113 | Popular Tags |