Public Member Functions | Package Attributes

cl.utfsm.acs.ebe.EbeDocumentManager Class Reference

List of all members.

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, EbeDocumentgetDocuments ()

Package Attributes

TreeMap< String, EbeDocumentdocuments
ErrorSchema schema

Detailed Description

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

Author:
Mauricio Araya (maray[at]inf.utfsm.cl)

Constructor & Destructor Documentation

cl.utfsm.acs.ebe.EbeDocumentManager.EbeDocumentManager (  ) 

Member Function Documentation

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

Parameters:
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

Parameters:
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 (  ) 
void cl.utfsm.acs.ebe.EbeDocumentManager.loadDocument ( String  path  ) 

Load the document information from the path, and creates a new doc.

Parameters:
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.

Parameters:
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.

Parameters:
name the name to remove

References cl.utfsm.acs.ebe.EbeDocumentManager.documents.


Member Data Documentation

The AcsError Schema class

Referenced by cl.utfsm.acs.ebe.EbeDocumentManager.EbeDocumentManager().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties