public class TransformationStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.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(java.lang.String completeName)
Returns a boolean indicating whether the store contains an entry
corresponding to a particular transformation or not.
|
boolean |
containsTransformation(java.lang.String namespace,
java.lang.String name,
java.lang.String version)
Returns a boolean indicating whether the store contains an entry
corresponding to a particular transformation or not.
|
java.util.List<TransformationCatalogEntry> |
getAllEntries()
Returns all the entries in the Transformation Store
|
java.util.List<TransformationCatalogEntry> |
getEntries(java.lang.String completeName,
java.lang.String site)
Returns List of TransformationCatalogEntry objects for a transformation
on a particular site.
|
java.util.List<TransformationCatalogEntry> |
getEntries(java.lang.String completeName,
java.lang.String site,
TCType type)
Returns List of TransformationCatalogEntry objects for a transformation
on a particular site and a type.
|
java.util.List<TransformationCatalogEntry> |
getEntries(java.lang.String site,
TCType type)
Returns a list of TransformationCatalogEntry objects matching on a site and
transformation type.
|
java.util.List<java.lang.String> |
getTransformations(java.lang.String site,
TCType type)
Returns a list of transformation names matching on a site and
transformation type.
|
private void |
initialize()
Intializes the store.
|
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<TransformationCatalogEntry>>> mTCStore
private void initialize()
public void clear()
public void addEntry(TransformationCatalogEntry entry)
entry
- the transformation catalog object.public java.util.List<TransformationCatalogEntry> getEntries(java.lang.String completeName, java.lang.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 java.util.List<TransformationCatalogEntry> getEntries(java.lang.String completeName, java.lang.String site)
completeName
- the complete name of the transformationsite
- the site on which to search for entries. null means all sitespublic java.util.List<TransformationCatalogEntry> getAllEntries()
public java.util.List<TransformationCatalogEntry> getEntries(java.lang.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 java.util.List<java.lang.String> getTransformations(java.lang.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(java.lang.String namespace, java.lang.String name, java.lang.String version)
namespace
- the namespace associated with the transformationname
- the logical nameversion
- the version of the transformationpublic boolean containsTransformation(java.lang.String completeName)
completeName
- the complete name of the transformation as constructed from
namespace, name and version