public class AudioVectorMetaData extends AbstractVectorMetaData
Modifier and Type | Field and Description |
---|---|
private File |
audioFile |
private String |
orig |
Constructor and Description |
---|
AudioVectorMetaData(File file,
String id) |
Modifier and Type | Method and Description |
---|---|
protected static File |
checkFileExistence(String filename)
Check if the file exists (absolut or with pre- and suffix)
|
static AudioVectorMetaData |
createMetaData(File audioFile) |
static AudioVectorMetaData |
createMetaData(String id,
File audioFile) |
File |
getAudioFile()
Get the file this MetaData is describing.
|
String |
getDisplayLabel()
Returns a String to display on screen.
|
String |
getID()
Return the unique ID of the Vector.
|
boolean |
matches(Pattern pattern)
Tests if the vectors MetaData matches the given Pattern.
|
boolean |
matches(String pattern,
boolean ignoreCase)
Tests if the vector's MetaData matches the given pattern.
|
protected static String |
stripFileNamePreAndSuffix(String filename) |
createMetaData, equals, hashCode, matches, toString
protected static File checkFileExistence(String filename) throws FileNotFoundException
filename
- The filenameFileNotFoundException
- if the file does not exist.CommonSOMViewerStateData.fileNamePrefix
,
CommonSOMViewerStateData.fileNameSuffix
public File getAudioFile()
public String getID()
AbstractVectorMetaData
getID
in class AbstractVectorMetaData
public static AudioVectorMetaData createMetaData(String id, File audioFile) throws FileNotFoundException
FileNotFoundException
public static AudioVectorMetaData createMetaData(File audioFile) throws FileNotFoundException
FileNotFoundException
public String getDisplayLabel()
AbstractVectorMetaData
getDisplayLabel
in class AbstractVectorMetaData
public boolean matches(Pattern pattern)
AbstractVectorMetaData
matches
in class AbstractVectorMetaData
pattern
- the Pattern to test.true
if the pattern matches.AbstractVectorMetaData.matches(String)
public boolean matches(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)