org.yawlfoundation.yawl.engine
Class YSpecificationTable

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.concurrent.ConcurrentHashMap<String,YSpecificationTable.SpecList>
          extended by org.yawlfoundation.yawl.engine.YSpecificationTable
All Implemented Interfaces:
Serializable, ConcurrentMap<String,YSpecificationTable.SpecList>, Map<String,YSpecificationTable.SpecList>

public class YSpecificationTable
extends ConcurrentHashMap<String,YSpecificationTable.SpecList>

A mapping of specification identifiers to a list of versions of that specification. The key used is the spec's unique identifier (introduced in v2.0); for earlier schema versions, it falls back to the spec's name (uri)

Since:
2.0
Author:
Michael Adams (a refactor of Mike Fowler's YSpecificationMap)
See Also:
Serialized Form
Created/Last Date:
06/06/2008

Nested Class Summary
protected  class YSpecificationTable.SpecList
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
YSpecificationTable()
           
 
Method Summary
 boolean contains(String key)
           
 boolean contains(YSpecification spec)
           
 boolean contains(YSpecificationID specID)
           
 YSpecification getLatestSpecification(String key)
          Gets the latest version of the specification with the key passed
 Set<YSpecificationID> getSpecIDs()
           
 YSpecification getSpecification(YSpecificationID specid)
           
 boolean loadSpecification(YSpecification spec)
           
 void unloadSpecification(YSpecification spec)
           
 
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

YSpecificationTable

public YSpecificationTable()
Method Detail

loadSpecification

public boolean loadSpecification(YSpecification spec)

unloadSpecification

public void unloadSpecification(YSpecification spec)

getSpecification

public YSpecification getSpecification(YSpecificationID specid)

getLatestSpecification

public YSpecification getLatestSpecification(String key)
Gets the latest version of the specification with the key passed

Parameters:
key - either the identifier or uri of the specification
Returns:
the specification with the latest version number that matches the key

contains

public boolean contains(String key)

contains

public boolean contains(YSpecification spec)

contains

public boolean contains(YSpecificationID specID)

getSpecIDs

public Set<YSpecificationID> getSpecIDs()


Copyright © 2004-2012 The YAWL Foundation.