

Public Member Functions | |
| XmlSeeker () | |
| boolean | accept (File dir, String name) |
| ArrayList | getXmls (String xsd) |
| void | addDir (String path) |
| void | clearDirs () |
| void | removeDir (String path) |
Private Attributes | |
| ArrayList< File > | dirs |
This class is an ACS specific filter and seeker for XML files. This class can seek for XML files over standard ACS directories, new directories. Also, this seeker search if the XML implements a specific XSD schema.
| cl::utfsm::acs::xml::XmlSeeker::XmlSeeker | ( | ) | [inline] |
Simple contructor
References dirs.
| boolean cl::utfsm::acs::xml::XmlSeeker::accept | ( | File | dir, | |
| String | name | |||
| ) | [inline] |
Accepts only filenames finishing with ".xml"
| dir | the directory in which the file was found. | |
| name | the name of the file. |
| void cl::utfsm::acs::xml::XmlSeeker::addDir | ( | String | path | ) | [inline] |
Add a new directory for searching for XMLs.
| path | the directory absolute path |
References dirs.
Referenced by cl::utfsm::acs::ebe::EbeDocumentManager::addDefaults(), cl::utfsm::acs::ebe::EbeDocumentManager::addDirectory(), and cl::utfsm::acs::xml::XmlSeekerTEST::testSeeker().
| void cl::utfsm::acs::xml::XmlSeeker::clearDirs | ( | ) | [inline] |
Clean all the dirs with no exception
References dirs.
Referenced by cl::utfsm::acs::xml::XmlSeekerTEST::testSeeker().
| ArrayList cl::utfsm::acs::xml::XmlSeeker::getXmls | ( | String | xsd | ) | [inline] |
Get an Arraylist with the XMLs on the added dirs that conforms with the xsd filename.
| xsd | the filename of the xsd to seek inside the XML files |
References dirs, and alma::acs::makesupport::AcsFileFinder::getAllFiles().
Referenced by cl::utfsm::acs::ebe::EbeDocumentManager::addDefaults(), cl::utfsm::acs::ebe::EbeDocumentManager::addDirectory(), and cl::utfsm::acs::xml::XmlSeekerTEST::testSeeker().
| void cl::utfsm::acs::xml::XmlSeeker::removeDir | ( | String | path | ) | [inline] |
remove a directory from the list
References dirs.
Referenced by cl::utfsm::acs::xml::XmlSeekerTEST::testSeeker().
ArrayList<File> cl::utfsm::acs::xml::XmlSeeker::dirs [private] |
Seeker directories
Referenced by addDir(), clearDirs(), getXmls(), removeDir(), and XmlSeeker().
1.6.2