|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object peakml.Annotatable peakml.io.FileInfo
public class FileInfo
Central point for collecting all the information about a file. Files in peakml are either the raw input files or the intermediate files, which have been processed. The vocabulary and the annotations can be used to store the data about the processing done on the file.
Constructor Summary | |
---|---|
FileInfo(java.lang.String label,
java.lang.String filename)
Convenience constructor, which looks up the location of the given filename in the file-system. |
|
FileInfo(java.lang.String label,
java.lang.String name,
java.lang.String location)
Constructs a new file info instance with the given values. |
Method Summary | |
---|---|
java.lang.String |
getLabel()
Returns the optional label for the file. |
java.lang.String |
getLocation()
Returns the complete path to the file. |
java.lang.String |
getName()
Returns the filename excluding the complete path, which can be retrieved with getLocation() . |
void |
setLabel(java.lang.String label)
Sets the optional label for the file. |
void |
setLocation(java.lang.String location)
Sets the complete path to the file. |
void |
setName(java.lang.String name)
Sets the filename excluding the complete path of the file. |
Methods inherited from class peakml.Annotatable |
---|
addAnnotation, addAnnotation, addAnnotation, addAnnotation, addAnnotation, addAnnotations, getAnnotation, getAnnotations, removeAllAnnotations, removeAnnotation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileInfo(java.lang.String label, java.lang.String filename)
label
- Optional label for the file.filename
- The filename (including the complete path).public FileInfo(java.lang.String label, java.lang.String name, java.lang.String location)
label
- Optional label for the file.name
- The filename (excluding the complete path).location
- The location of the file.Method Detail |
---|
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- Optional label for the file.public java.lang.String getName()
getLocation()
.
public void setName(java.lang.String name)
name
- The filename.public java.lang.String getLocation()
public void setLocation(java.lang.String location)
location
- The complete path to the file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |