public abstract class DecompositionRepoMap extends RepoMap
Modifier and Type | Field and Description |
---|---|
protected XNodeParser |
parser |
protected XNode |
shellSpecification |
BACKINGSTORE_DIR
Modifier | Constructor and Description |
---|---|
protected |
DecompositionRepoMap() |
protected |
DecompositionRepoMap(java.lang.String path) |
protected |
DecompositionRepoMap(java.lang.String baseDir,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
add(java.lang.String name,
java.lang.String description,
YDecomposition decomposition)
Adds a decomposition to the repository
|
protected abstract void |
addXsiAttribute(XNode decompositionNode) |
protected XNode |
createShellSpecification() |
YDecomposition |
get(java.lang.String name)
Gets a decomposition from the repository
|
java.util.List<RepoDescriptor> |
getDescriptors()
Gets a sorted list of descriptors for all stored decompositions
|
protected java.util.Set<RepoRecord> |
getValues(java.util.Set<java.lang.String> nameSet) |
protected YDecomposition |
parse(java.lang.String xml)
Creates a decomposition from its XML description
|
YDecomposition |
remove(java.lang.String name)
Removes a decomposition from the repository
|
protected abstract java.lang.String |
toXML(YDecomposition decomposition) |
protected YDecomposition |
unmarshalDecomposition(XNode decompositionNode) |
addRecord, anyAreNull, getRecord, hasRecord, removeRecord, save
protected XNode shellSpecification
protected XNodeParser parser
protected DecompositionRepoMap()
protected DecompositionRepoMap(java.lang.String path)
protected DecompositionRepoMap(java.lang.String baseDir, java.lang.String path)
protected java.lang.String add(java.lang.String name, java.lang.String description, YDecomposition decomposition)
name
- a reference name for the decompositiondescription
- a description of itdecomposition
- the decomposition to addpublic YDecomposition get(java.lang.String name) throws YSyntaxException
name
- a reference name for the decompositionYSyntaxException
public YDecomposition remove(java.lang.String name)
name
- a reference name for the decompositionpublic java.util.List<RepoDescriptor> getDescriptors()
getDescriptors
in class RepoMap
protected abstract java.lang.String toXML(YDecomposition decomposition)
protected abstract void addXsiAttribute(XNode decompositionNode)
protected YDecomposition parse(java.lang.String xml) throws YSyntaxException
xml
- the XML to parseYSyntaxException
protected XNode createShellSpecification()
protected YDecomposition unmarshalDecomposition(XNode decompositionNode) throws YSyntaxException
YSyntaxException
protected java.util.Set<RepoRecord> getValues(java.util.Set<java.lang.String> nameSet)