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

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.data.metadata.AbstractVectorMetaData
      extended by at.tuwien.ifs.somtoolbox.data.metadata.EmtpyVectorMetaData

public class EmtpyVectorMetaData
extends AbstractVectorMetaData

This is an empty MetaData object. All operations just work in the "name" (the ID).

Version:
$Id: EmtpyVectorMetaData.java 3583 2010-05-21 10:07:41Z mayer $
Author:
Jakob Frank
See Also:
getID()

Field Summary
private  String id
           
 
Constructor Summary
EmtpyVectorMetaData(String id)
           
 
Method Summary
 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.
 
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

id

private final String id
Constructor Detail

EmtpyVectorMetaData

public EmtpyVectorMetaData(String id)
Method Detail

matches

public boolean matches(String pattern,
                       boolean ignoreCase)
Description copied from class: AbstractVectorMetaData
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.

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

matches

public boolean matches(Pattern pattern)
Description copied from class: AbstractVectorMetaData
Tests if the vectors MetaData matches the given Pattern.

Specified by:
matches in class AbstractVectorMetaData
Parameters:
pattern - the Pattern to test.
Returns:
true if the pattern matches.
See Also:
AbstractVectorMetaData.matches(String)

getDisplayLabel

public String getDisplayLabel()
Description copied from class: AbstractVectorMetaData
Returns a String to display on screen.

Specified by:
getDisplayLabel in class AbstractVectorMetaData
Returns:
the (Display)Label

getID

public String getID()
Description copied from class: AbstractVectorMetaData
Return the unique ID of the Vector. (The name/label it is identified by)

Specified by:
getID in class AbstractVectorMetaData
Returns:
the ID-String