|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This inteface determines how components request file related
resources. Components which implement the
AnnotatedFileListener interface are notified of
changes which result from these requests.
| Method Summary | |
void |
addAnnotatedFileListener(AnnotatedFileListener afl)
Registers an AnnotatedFileListener to be notified
of file related changes. |
void |
addGold(java.lang.String fileName)
Adds the annotated file name/path specified by fileName to the set of gold files. |
boolean |
allAnnotatedFilesSaved()
Returns true is all annotated files have been saved, false otherwise. |
boolean |
closeAnnotatedFile(java.lang.String fileName)
Returns true if the the annotated file specified by annFileName could be closed. |
java.io.File |
getAnnotatedFile(java.lang.String sourceFileName)
Returns a likly annotated file for this source file name. |
int |
getFileCount()
Returns the number of files which have been opened. |
FileFormat |
getFileFormat(javax.swing.filechooser.FileFilter ff)
Returns the file format associated with the specified file filter. |
FileFormat |
getFileFormat(java.lang.String name)
Returns the file format associated with the specified file format name. |
FileFormat |
getFileFormatForFile(java.lang.String fileName)
Returns the file format associated with the specified file name. |
java.util.Iterator |
getFileFormatNames()
Returns an iterator over the names of currently loaded file formats. |
AnnotationFile |
getFileFromPath(java.lang.String p)
Returns the annotated file associated with the name/path of the file sent as a parameter. |
java.util.Iterator |
iterator()
Returns an iterator over the opened files. |
boolean |
openAnnotatedFile(java.lang.String fileName)
Returns true if the source file specified by fileName and its coresponding annotated file could be opened. |
boolean |
openAnnotatedFile(java.lang.String fileName,
java.lang.String annFileName)
Returns true if the source file specified by fileName and the annotated file specified by annFileName could be opened.' |
void |
removeAnnotatedFileListener(AnnotatedFileListener afl)
Un-registers an AnnotatedFileListener. |
void |
removeGold(java.lang.String fileName)
Removes the annotated file name/path specified by fileName from the set of gold files. |
boolean |
saveAnnotatedFile(java.lang.String annFileName)
Returns true if the the annotated file specified by annFileName could be saved. |
boolean |
scanAnnotatedFile(java.lang.String fileName,
java.lang.String annFileName)
Returns true if the source file specified by fileName and the annotated file specified by annFileName could be scaned. |
java.lang.String[] |
setFileFormat(java.lang.String file,
AnnotatedFileFormat format)
Assigns the annotated file specified by file to the
format specified by format and returns the name of
the annotated file and the source file. |
void |
setFilter(AnnotationFilter f)
Set the saving filter for all files. |
| Method Detail |
public java.lang.String[] setFileFormat(java.lang.String file,
AnnotatedFileFormat format)
file to the
format specified by format and returns the name of
the annotated file and the source file.
file - the name of the source file.format - the format of the file.
public java.util.Iterator getFileFormatNames()
public FileFormat getFileFormat(java.lang.String name)
name - the name of the file format.
public FileFormat getFileFormat(javax.swing.filechooser.FileFilter ff)
ff - the file filter.
FileFormat object associated with the
ff parameter.public FileFormat getFileFormatForFile(java.lang.String fileName)
fileName - the nae of the file.
FileFormat object associated with the
fileName parameter, or null of no file format handles this type of file.public void setFilter(AnnotationFilter f)
f - the filter.public boolean openAnnotatedFile(java.lang.String fileName)
fileName - the name/path of the source file to be opened.
public boolean openAnnotatedFile(java.lang.String fileName,
java.lang.String annFileName)
fileName - the name/path of the source file to be opene.annFileName - the name/path of the annotated file to be opened.
public boolean scanAnnotatedFile(java.lang.String fileName,
java.lang.String annFileName)
fileName - the name/path of the source file to be opene.annFileName - the name/path of the annotated file to be opened.
public boolean saveAnnotatedFile(java.lang.String annFileName)
annFileName - the name/path of the annotated file to be saved.
public boolean closeAnnotatedFile(java.lang.String fileName)
fileName - the name/path of the annotated file to be closed.
public boolean allAnnotatedFilesSaved()
public AnnotationFile getFileFromPath(java.lang.String p)
p - the file name/path.
p.public void addAnnotatedFileListener(AnnotatedFileListener afl)
AnnotatedFileListener to be notified
of file related changes.
afl - the annotated file listener.public void removeAnnotatedFileListener(AnnotatedFileListener afl)
AnnotatedFileListener.
afl - the annotated file listener.public int getFileCount()
public java.util.Iterator iterator()
public void addGold(java.lang.String fileName)
fileName to the set of gold files.
fileName - the name/path of the annotated file.public void removeGold(java.lang.String fileName)
fileName from the set of gold files.
fileName - the name/path of the annotated file.public java.io.File getAnnotatedFile(java.lang.String sourceFileName)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||