Public Member Functions | |
EbeDocumentManager () | |
void | newDocument (String path, String name) |
void | loadDocument (String path) |
void | removeDocument (String name) |
void | removeAll () |
void | deleteDocument (String name) |
void | addDefaults () |
void | addDirectory (String path) |
TreeMap< String, EbeDocument > | getDocuments () |
Package Attributes | |
TreeMap< String, EbeDocument > | documents |
ErrorSchema | schema |
Error Browser and Editor Document manager. This class manages the XML files, and offers a EbeDocument abstraction. This class manages those objects in a generic form. For this, the schema file must be loaded, specific classes initializated, and create a document pool
cl.utfsm.acs.ebe.EbeDocumentManager.EbeDocumentManager | ( | ) |
Reads the schema files, setup classes and init the pool
References cl.utfsm.acs.ebe.EbeDocumentManager.documents, cl.utfsm.acs.ebe.ErrorSchema.getCompletionSchema(), cl.utfsm.acs.ebe.ErrorSchema.getErrorSchema(), cl.utfsm.acs.xml.CommonSchema.getType(), cl.utfsm.acs.ebe.ErrorSchema.getTypeSchema(), and cl.utfsm.acs.ebe.EbeDocumentManager.schema.
void cl.utfsm.acs.ebe.EbeDocumentManager.addDefaults | ( | ) |
Add defaults directories, and load the files.
References cl.utfsm.acs.xml.XmlSeeker.addDir(), and cl.utfsm.acs.xml.XmlSeeker.getXmls().
void cl.utfsm.acs.ebe.EbeDocumentManager.addDirectory | ( | String | path | ) |
Add a specific directory to the manager
path | the directory Path. |
References cl.utfsm.acs.xml.XmlSeeker.addDir(), and cl.utfsm.acs.xml.XmlSeeker.getXmls().
void cl.utfsm.acs.ebe.EbeDocumentManager.deleteDocument | ( | String | name | ) |
Permanently delete from the HD the file
name | the filename to remove |
References cl.utfsm.acs.ebe.EbeDocumentManager.documents, and cl.utfsm.acs.ebe.EbeDocument.getPath().
TreeMap<String,EbeDocument> cl.utfsm.acs.ebe.EbeDocumentManager.getDocuments | ( | ) |
Get the document TreeMap
References cl.utfsm.acs.ebe.EbeDocumentManager.documents.
Referenced by cl.utfsm.acs.ebe.ErrorBrowserEditor.refreshDocsTree(), and cl.utfsm.acs.ebe.util.EbeTableModel.setValueAt().
void cl.utfsm.acs.ebe.EbeDocumentManager.loadDocument | ( | String | path | ) |
Load the document information from the path, and creates a new doc.
path | the filepath to load from |
References cl.utfsm.acs.ebe.EbeDocumentManager.documents, cl.utfsm.acs.ebe.EbeDocument.getNodes(), cl.utfsm.acs.types.TypedObject.getValue(), cl.utfsm.acs.ebe.EbeDocument.load(), and cl.utfsm.acs.ebe.EbeDocument.setPath().
void cl.utfsm.acs.ebe.EbeDocumentManager.newDocument | ( | String | path, | |
String | name | |||
) |
Create a new document (a new file). This class setup the classic document info.
path | the path where the file should be | |
name | the document internal name |
References cl.utfsm.acs.ebe.EbeDocumentManager.documents, cl.utfsm.acs.types.TypedObject.getValue(), cl.utfsm.acs.ebe.EbeDocument.setDocumentInfo(), cl.utfsm.acs.ebe.EbeDocument.setPath(), and cl.utfsm.acs.types.TypedObject.setValue().
void cl.utfsm.acs.ebe.EbeDocumentManager.removeAll | ( | ) |
Remove all the documents from the manager
References cl.utfsm.acs.ebe.EbeDocumentManager.documents.
void cl.utfsm.acs.ebe.EbeDocumentManager.removeDocument | ( | String | name | ) |
Remove a document from the manager by name.
name | the name to remove |
References cl.utfsm.acs.ebe.EbeDocumentManager.documents.
TreeMap<String,EbeDocument> cl.utfsm.acs.ebe.EbeDocumentManager.documents [package] |
the list of current documents
Referenced by cl.utfsm.acs.ebe.EbeDocumentManager.deleteDocument(), cl.utfsm.acs.ebe.EbeDocumentManager.EbeDocumentManager(), cl.utfsm.acs.ebe.EbeDocumentManager.getDocuments(), cl.utfsm.acs.ebe.EbeDocumentManager.loadDocument(), cl.utfsm.acs.ebe.EbeDocumentManager.newDocument(), cl.utfsm.acs.ebe.EbeDocumentManager.removeAll(), and cl.utfsm.acs.ebe.EbeDocumentManager.removeDocument().
The AcsError Schema class
Referenced by cl.utfsm.acs.ebe.EbeDocumentManager.EbeDocumentManager().