org.eclipse.test.internal.performance.db
Class Variations

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by org.eclipse.test.internal.performance.db.Variations
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class Variations
extends java.util.Properties

The Variations class represents a set of key/value pairs and is used to tag data stored in the performance database and when querying for data from the database.

See Also:
Serialized Form

Constructor Summary
Variations()
          Creates an empty set of key/value pairs.
Variations(java.lang.String keyValuePairs)
          Creates a set of key/value pairs by parsing the given string.
Variations(java.lang.String configValue, java.lang.String buildValue)
          Deprecated. Use the default constructor instead and fill in key/value pairs explicitely.
 
Method Summary
 void parseDB(java.lang.String keyvaluepairs)
           
 void parsePairs(java.lang.String keyvaluepairs)
           
 java.lang.String toExactMatchString()
           
 java.lang.String toQueryPattern()
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variations

public Variations()
Creates an empty set of key/value pairs.


Variations

public Variations(java.lang.String configValue,
                  java.lang.String buildValue)
Deprecated. Use the default constructor instead and fill in key/value pairs explicitely.

Creates a Variations object that is populated with a "config" and a "build" key/value pair.

Parameters:
configValue - a value to store under the config key
buildValue - a value to store under the build key

Variations

public Variations(java.lang.String keyValuePairs)
Creates a set of key/value pairs by parsing the given string. The format of the string must be:
   key1=value1;key2=value2; .... ; keyn=valuen
 

Parameters:
keyValuePairs -
Method Detail

toExactMatchString

public java.lang.String toExactMatchString()

toQueryPattern

public java.lang.String toQueryPattern()

parsePairs

public void parsePairs(java.lang.String keyvaluepairs)

parseDB

public void parseDB(java.lang.String keyvaluepairs)