Public Member Functions

cl.utfsm.acs.xml.XmlSeeker Class Reference

Inherits java::io::FilenameFilter.

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)

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

Simple contructor


Member Function Documentation

boolean cl.utfsm.acs.xml.XmlSeeker.accept ( File  dir,
String  name 
)

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  ) 

Add a new directory for searching for XMLs.

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

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

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties