public class XmlSeeker
extends java.lang.Object
implements java.io.FilenameFilter
| Constructor and Description |
|---|
XmlSeeker()
Simple contructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Accepts only filenames finishing with ".xml"
|
void |
addDir(java.lang.String path)
Add a new directory for searching for XMLs.
|
void |
clearDirs()
Clean all the dirs with no exception
|
java.util.ArrayList |
getXmls(java.lang.String xsd)
Get an Arraylist with the XMLs on the added dirs that conforms with the xsd filename.
|
void |
removeDir(java.lang.String path)
remove a directory from the list
|
public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilterdir - the directory in which the file was found.name - the name of the file.public java.util.ArrayList getXmls(java.lang.String xsd)
xsd - the filename of the xsd to seek inside the XML filespublic void addDir(java.lang.String path)
path - the directory absolute pathpublic void clearDirs()
public void removeDir(java.lang.String path)