|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.data.metadata.AbstractVectorMetaData
at.tuwien.ifs.somtoolbox.data.metadata.AudioVectorMetaData
public class AudioVectorMetaData
Field Summary | |
---|---|
private java.io.File |
audioFile
|
private java.lang.String |
orig
|
Constructor Summary | |
---|---|
AudioVectorMetaData(java.io.File file,
java.lang.String id)
|
Method Summary | |
---|---|
protected static java.io.File |
checkFileExistence(java.lang.String filename)
Check if the file exists (absolut or with pre- and suffix) |
static AudioVectorMetaData |
createMetaData(java.io.File audioFile)
|
static AudioVectorMetaData |
createMetaData(java.lang.String id,
java.io.File audioFile)
|
java.io.File |
getAudioFile()
Get the file this MetaData is describing. |
java.lang.String |
getDisplayLabel()
Returns a String to display on screen. |
java.lang.String |
getID()
Return the unique ID of the Vector. |
boolean |
matches(java.util.regex.Pattern pattern)
Tests if the vectors MetaData matches the given Pattern. |
boolean |
matches(java.lang.String pattern,
boolean ignoreCase)
Tests if the vector's MetaData matches the given pattern. |
protected static java.lang.String |
stripFileNamePreAndSuffix(java.lang.String filename)
|
Methods inherited from class at.tuwien.ifs.somtoolbox.data.metadata.AbstractVectorMetaData |
---|
createMetaData, equals, hashCode, matches, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.lang.String orig
private final java.io.File audioFile
Constructor Detail |
---|
public AudioVectorMetaData(java.io.File file, java.lang.String id)
Method Detail |
---|
protected static java.io.File checkFileExistence(java.lang.String filename) throws java.io.FileNotFoundException
filename
- The filename
java.io.FileNotFoundException
- if the file does not exist.CommonSOMViewerStateData.fileNamePrefix
,
CommonSOMViewerStateData.fileNameSuffix
protected static java.lang.String stripFileNamePreAndSuffix(java.lang.String filename)
public java.io.File getAudioFile()
public java.lang.String getID()
AbstractVectorMetaData
getID
in class AbstractVectorMetaData
public static AudioVectorMetaData createMetaData(java.lang.String id, java.io.File audioFile) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static AudioVectorMetaData createMetaData(java.io.File audioFile) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.lang.String getDisplayLabel()
AbstractVectorMetaData
getDisplayLabel
in class AbstractVectorMetaData
public boolean matches(java.util.regex.Pattern pattern)
AbstractVectorMetaData
matches
in class AbstractVectorMetaData
pattern
- the Pattern to test.
true
if the pattern matches.AbstractVectorMetaData.matches(String)
public boolean matches(java.lang.String pattern, boolean ignoreCase)
AbstractVectorMetaData
matches
in class AbstractVectorMetaData
pattern
- The pattern to match.ignoreCase
- set true
to ignore case considerations.
true
if the pattern matches.AbstractVectorMetaData.matches(Pattern)
,
AbstractVectorMetaData.matches(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |