Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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


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

void cl::utfsm::acs::xml::XmlSeeker::clearDirs  )  [inline]
 

Clean all the dirs with no exception

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

void cl::utfsm::acs::xml::XmlSeeker::removeDir String  path  )  [inline]
 

remove a directory from the list


Member Data Documentation

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

Seeker directories


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:09:59 2009 for ACS Java API by doxygen 1.3.8