1 10 11 package org.enhydra.jawe.xml; 12 13 import org.enhydra.jawe.xml.elements.*; 14 import org.enhydra.jawe.xml.elements.Package; 15 16 import java.util.*; 17 18 24 public interface XMLInterface { 25 26 void setValidation (boolean isActive); 27 28 public void clearParserErrorMessages (); 29 30 35 public void register (Package pkg); 36 37 43 public void registerPackageFilename (String filename,Package pkg); 44 45 public boolean isPackageOpened (String pkgId); 46 47 public void putPkgIdToFileContentMapping (String pkgId,String fileContent); 48 49 public String getPackageFileContent (String pkgId); 50 51 public Package getPackageById (String pkgId); 52 53 public Package getPackageByFilename (String filename); 54 55 public Package getExternalPackageByRelativeFilePath ( 56 String relativePathToExtPkg,Package rootPkg); 57 58 public String getAbsoluteFilePath (Package pkg); 59 60 public Collection getAllPackages (); 61 62 public Collection getAllPackageIds (); 63 64 public Collection getAllPackageFilenames (); 65 66 public boolean doesPackageFileExists (String xmlFile); 67 68 public String getParentDirectory (Package pkg); 69 70 public Package openPackage (String pkgReference,boolean openFromStream); 71 72 public Package parseDocument (String toParse,boolean isFile); 73 74 80 public Map getParsingErrorMessages (); 81 82 public void closePackage (String pkgId); 83 84 public void closeAllPackages (); 85 86 public String getIDFromFile (String xmlFile); 87 88 } 89 90 | Popular Tags |