Inherits java::io::FilenameFilter.
Public Member Functions | |
XmlSeeker () | |
boolean | accept (File dir, String name) |
ArrayList | getXmls (String xsd) |
void | addDir (String path) |
void | clearDirs () |
void | removeDir (String path) |
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 | ( | ) |
Simple contructor
boolean cl.utfsm.acs.xml.XmlSeeker.accept | ( | File | dir, | |
String | name | |||
) |
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 | ) |
Add a new directory for searching for XMLs.
path | the directory absolute path |
Referenced by cl.utfsm.acs.ebe.EbeDocumentManager.addDefaults(), and cl.utfsm.acs.ebe.EbeDocumentManager.addDirectory().
void cl.utfsm.acs.xml.XmlSeeker.clearDirs | ( | ) |
Clean all the dirs with no exception
ArrayList cl.utfsm.acs.xml.XmlSeeker.getXmls | ( | String | xsd | ) |
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 alma.acs.makesupport.AcsFileFinder.getAllFiles().
Referenced by cl.utfsm.acs.ebe.EbeDocumentManager.addDefaults(), and cl.utfsm.acs.ebe.EbeDocumentManager.addDirectory().
void cl.utfsm.acs.xml.XmlSeeker.removeDir | ( | String | path | ) |
remove a directory from the list