cl::utfsm::acs::xml::XmlSeeker Class Reference

Inheritance diagram for cl::utfsm::acs::xml::XmlSeeker:
Inheritance graph
[legend]
Collaboration diagram for cl::utfsm::acs::xml::XmlSeeker:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.

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

Constructor & Destructor Documentation

cl::utfsm::acs::xml::XmlSeeker::XmlSeeker (  )  [inline]

Simple contructor

References dirs.


Member Function Documentation

boolean cl::utfsm::acs::xml::XmlSeeker::accept ( File  dir,
String  name 
) [inline]

Accepts only filenames finishing with ".xml"

Parameters:
dir the directory in which the file was found.
name the name of the file.
Returns:
true if file ends with ".xml" ; false otherwise.
void cl::utfsm::acs::xml::XmlSeeker::addDir ( String  path  )  [inline]

Add a new directory for searching for XMLs.

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

Parameters:
xsd the filename of the xsd to seek inside the XML files
Returns:
the XMLs list

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().


Member Data Documentation

ArrayList<File> cl::utfsm::acs::xml::XmlSeeker::dirs [private]

Seeker directories

Referenced by addDir(), clearDirs(), getXmls(), removeDir(), and XmlSeeker().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2