1 19 20 25 26 package org.netbeans.modules.xml.retriever.catalog; 27 28 import java.beans.PropertyChangeListener ; 29 import java.io.IOException ; 30 import java.net.URI ; 31 import java.util.Collection ; 32 import org.netbeans.modules.xml.xam.dom.DocumentModel; 33 import org.netbeans.modules.xml.xam.locator.*; 34 import org.openide.filesystems.FileObject; 35 36 41 public interface CatalogWriteModel extends CatalogModel { 42 43 public static final String CATALOG_FILE_EXTENSION = ".xml"; 44 45 public static final String PUBLIC_CATALOG_FILE_NAME = "catalog"; 46 47 56 public URI searchURI(URI locationURI); 57 58 59 69 public void addURI(URI locationURI, FileObject fileObj) throws IOException ; 70 71 81 82 public void addURI(URI locationURI, URI alternateURI) throws IOException ; 83 84 88 public void removeURI(URI locationURI) throws IOException ; 89 90 91 97 public Collection <CatalogEntry> getCatalogEntries(); 98 99 100 106 public boolean isWellformed(); 107 108 109 113 public DocumentModel.State getState(); 114 115 116 119 public FileObject getCatalogFileObject(); 120 121 public void addPropertychangeListener(PropertyChangeListener pcl); 122 123 public void removePropertyChangeListener(PropertyChangeListener pcl); 124 125 126 131 public void addNextCatalog(URI nextCatalogFileURI, boolean relativize) throws IOException ; 132 133 public void removeNextCatalog(URI nextCatalogFileRelativeURI) throws IOException ; 134 135 136 } 137 | Popular Tags |