public class AudioVectorMetaData extends AbstractVectorMetaData
Modifier and Type | Field and Description |
---|---|
private java.io.File |
audioFile |
private java.lang.String |
orig |
Constructor and Description |
---|
AudioVectorMetaData(java.io.File file,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
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) |
createMetaData, equals, hashCode, matches, toString
private final java.lang.String orig
private final java.io.File audioFile
public AudioVectorMetaData(java.io.File file, java.lang.String id)
protected static java.io.File checkFileExistence(java.lang.String filename) throws java.io.FileNotFoundException
filename
- The filenamejava.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)