public class YSpecificationTable extends java.util.concurrent.ConcurrentHashMap<java.lang.String,YSpecificationTable.SpecList>
Modifier and Type | Class and Description |
---|---|
protected class |
YSpecificationTable.SpecList |
java.util.concurrent.ConcurrentHashMap.KeySetView<K,V>
Constructor and Description |
---|
YSpecificationTable() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String key) |
boolean |
contains(YSpecification spec) |
boolean |
contains(YSpecificationID specID) |
YSpecification |
getLatestSpecification(java.lang.String key)
Gets the latest version of the specification with the key passed
|
java.util.Set<YSpecificationID> |
getSpecIDs() |
YSpecification |
getSpecification(YSpecificationID specID) |
YSpecification |
getSpecificationForCaseStart(YSpecificationID specID)
Checks that the specID passed refers to a loaded specification, and that it is
the latest version loaded
|
boolean |
isLatest(YSpecificationID specID) |
boolean |
loadSpecification(YSpecification spec) |
void |
unloadSpecification(YSpecification spec) |
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
public boolean loadSpecification(YSpecification spec)
public void unloadSpecification(YSpecification spec)
public YSpecification getSpecification(YSpecificationID specID)
public YSpecification getLatestSpecification(java.lang.String key)
key
- either the identifier or uri of the specificationpublic boolean isLatest(YSpecificationID specID)
public boolean contains(java.lang.String key)
public boolean contains(YSpecification spec)
public boolean contains(YSpecificationID specID)
public java.util.Set<YSpecificationID> getSpecIDs()
public YSpecification getSpecificationForCaseStart(YSpecificationID specID) throws YStateException
specID
- the specID to checkYStateException
- if the specification is not loaded, or if the specID
referes to other than the latest loaded versionCopyright © 2004-2014 The YAWL Foundation.