public class TransformationStore extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,Map<String,List<TransformationCatalogEntry>>> |
mTCStore
The internal store map.
|
Constructor and Description |
---|
TransformationStore()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(TransformationCatalogEntry entry)
Adds an entry into the store.
|
void |
clear()
Clears all the entries in the store.
|
boolean |
containsTransformation(String completeName)
Returns a boolean indicating whether the store contains an entry
corresponding to a particular transformation or not.
|
boolean |
containsTransformation(String namespace,
String name,
String version)
Returns a boolean indicating whether the store contains an entry
corresponding to a particular transformation or not.
|
List<TransformationCatalogEntry> |
getAllEntries()
Returns all the entries in the Transformation Store
|
List<TransformationCatalogEntry> |
getEntries(String completeName,
String site)
Returns List of TransformationCatalogEntry objects for a transformation
on a particular site.
|
List<TransformationCatalogEntry> |
getEntries(String completeName,
String site,
TCType type)
Returns List of TransformationCatalogEntry objects for a transformation
on a particular site and a type.
|
List<TransformationCatalogEntry> |
getEntries(String site,
TCType type)
Returns a list of TransformationCatalogEntry objects matching on a site and
transformation type.
|
List<String> |
getTransformations(String site,
TCType type)
Returns a list of transformation names matching on a site and
transformation type.
|
private void |
initialize()
Intializes the store.
|
private Map<String,Map<String,List<TransformationCatalogEntry>>> mTCStore
private void initialize()
public void clear()
public void addEntry(TransformationCatalogEntry entry)
entry
- the transformation catalog object.public List<TransformationCatalogEntry> getEntries(String completeName, String site, TCType type)
completeName
- the complete name of the transformationsite
- the site on which to search for entries. null means alltype
- the type to match on . null means all types.public List<TransformationCatalogEntry> getEntries(String completeName, String site)
completeName
- the complete name of the transformationsite
- the site on which to search for entries. null means all sitespublic List<TransformationCatalogEntry> getAllEntries()
public List<TransformationCatalogEntry> getEntries(String site, TCType type)
site
- the site on which to search for entries. null means alltype
- the type to match on . null means all types.public List<String> getTransformations(String site, TCType type)
site
- the site on which to search for entries. null means alltype
- the type to match on . null means all types.public boolean containsTransformation(String namespace, String name, String version)
namespace
- the namespace associated with the transformationname
- the logical nameversion
- the version of the transformationpublic boolean containsTransformation(String completeName)
completeName
- the complete name of the transformation as constructed from
namespace, name and versionCopyright © 2011 The University of Southern California. All Rights Reserved.