at.tuwien.ifs.somtoolbox.data.metadata
Class AbstractVectorMetaData

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.data.metadata.AbstractVectorMetaData
Direct Known Subclasses:
AudioVectorMetaData, EmtpyVectorMetaData

public abstract class AbstractVectorMetaData
extends Object


Constructor Summary
AbstractVectorMetaData()
           
 
Method Summary
static AbstractVectorMetaData createMetaData(String label)
           
 boolean equals(Object obj)
           
abstract  String getDisplayLabel()
          Returns a String to display on screen.
abstract  String getID()
          Return the unique ID of the Vector.
 int hashCode()
           
abstract  boolean matches(Pattern pattern)
          Tests if the vectors MetaData matches the given Pattern.
 boolean matches(String pattern)
          Tests if the vector's MetaData matches the given pattern.
abstract  boolean matches(String pattern, boolean ignoreCase)
          Tests if the vector's MetaData matches the given pattern.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractVectorMetaData

public AbstractVectorMetaData()
Method Detail

getDisplayLabel

public abstract String getDisplayLabel()
Returns a String to display on screen.

Returns:
the (Display)Label

getID

public abstract String getID()
Return the unique ID of the Vector. (The name/label it is identified by)

Returns:
the ID-String

matches

public abstract boolean matches(Pattern pattern)
Tests if the vectors MetaData matches the given Pattern.

Parameters:
pattern - the Pattern to test.
Returns:
true if the pattern matches.
See Also:
matches(String)

matches

public abstract boolean matches(String pattern,
                                boolean ignoreCase)
Tests if the vector's MetaData matches the given pattern. It is the vectors metadata's decision whether it wants to be found by the given Pattern or not and how to handle wildcards.

Parameters:
pattern - The pattern to match.
ignoreCase - set true to ignore case considerations.
Returns:
true if the pattern matches.
See Also:
matches(Pattern), matches(String)

matches

public boolean matches(String pattern)
Tests if the vector's MetaData matches the given pattern. It is the vectors metadata's decision whether it wants to be found by the given Pattern or not and how to handle wildcards.

Parameters:
pattern - The pattern to match
Returns:
true if the pattern matches.
See Also:
matches(Pattern), matches(String, boolean)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

createMetaData

public static AbstractVectorMetaData createMetaData(String label)