
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 |
Private Member Functions | |
| void | addFileList (ArrayList< File > lst) |
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 | ( | ) | [inline] |
Reads the schema files, setup classes and init the pool
References 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 schema.
| void cl::utfsm::acs::ebe::EbeDocumentManager::addDefaults | ( | ) | [inline] |
Add defaults directories, and load the files.
References cl::utfsm::acs::xml::XmlSeeker::addDir(), addFileList(), and cl::utfsm::acs::xml::XmlSeeker::getXmls().
Referenced by cl::utfsm::acs::ebe::ErrorBrowserEditor::getAddDefaultsItem(), and cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testDefaults().
| void cl::utfsm::acs::ebe::EbeDocumentManager::addDirectory | ( | String | path | ) | [inline] |
Add a specific directory to the manager
| path | the directory Path. |
References cl::utfsm::acs::xml::XmlSeeker::addDir(), addFileList(), and cl::utfsm::acs::xml::XmlSeeker::getXmls().
Referenced by cl::utfsm::acs::ebe::ErrorBrowserEditor::getAddDirectoryItem(), cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testDirectories(), and cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testRemove().
| void cl::utfsm::acs::ebe::EbeDocumentManager::addFileList | ( | ArrayList< File > | lst | ) | [inline, private] |
Load a filelist to the manager.
| lst | The Arraylist to load |
References loadDocument().
Referenced by addDefaults(), and addDirectory().
| void cl::utfsm::acs::ebe::EbeDocumentManager::deleteDocument | ( | String | name | ) | [inline] |
Permanently delete from the HD the file
| name | the filename to remove |
References documents, and cl::utfsm::acs::ebe::EbeDocument::getPath().
Referenced by cl::utfsm::acs::ebe::ErrorBrowserEditor::getDeleteDocButton(), and cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testNew().
| TreeMap<String,EbeDocument> cl::utfsm::acs::ebe::EbeDocumentManager::getDocuments | ( | ) | [inline] |
Get the document TreeMap
References documents.
Referenced by cl::utfsm::acs::ebe::ErrorBrowserEditor::getNewDocButton(), cl::utfsm::acs::ebe::ErrorBrowserEditor::refreshDocsTree(), cl::utfsm::acs::ebe::util::EbeTableModel::setValueAt(), cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testDefaults(), cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testDirectories(), cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testNew(), and cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testRemove().
| void cl::utfsm::acs::ebe::EbeDocumentManager::loadDocument | ( | String | path | ) | [inline] |
Load the document information from the path, and creates a new doc.
| path | the filepath to load from |
References 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().
Referenced by addFileList(), and cl::utfsm::acs::ebe::ErrorBrowserEditor::getAddFileItem().
| void cl::utfsm::acs::ebe::EbeDocumentManager::newDocument | ( | String | path, | |
| String | name | |||
| ) | [inline] |
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 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().
Referenced by cl::utfsm::acs::ebe::ErrorBrowserEditor::getNewDocButton(), and cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testNew().
| void cl::utfsm::acs::ebe::EbeDocumentManager::removeAll | ( | ) | [inline] |
Remove all the documents from the manager
References documents.
Referenced by cl::utfsm::acs::ebe::ErrorBrowserEditor::getCleanAllFilesItem(), and cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testRemove().
| void cl::utfsm::acs::ebe::EbeDocumentManager::removeDocument | ( | String | name | ) | [inline] |
Remove a document from the manager by name.
| name | the name to remove |
References documents.
Referenced by cl::utfsm::acs::ebe::ErrorBrowserEditor::getCancelEditButton(), cl::utfsm::acs::ebe::ErrorBrowserEditor::getRemoveSelectedItem(), and cl::utfsm::acs::ebe::EbeDocumentManagerTEST::testRemove().
TreeMap<String,EbeDocument> cl::utfsm::acs::ebe::EbeDocumentManager::documents [package] |
the list of current documents
Referenced by deleteDocument(), EbeDocumentManager(), getDocuments(), loadDocument(), newDocument(), removeAll(), and removeDocument().
The AcsError Schema class
Referenced by EbeDocumentManager().
1.6.2