public class DatasetSpec extends DataStructureSpec
| Constructor and Description |
|---|
DatasetSpec(org.w3c.dom.Element elem)
Construct a dataset specification from an XML element
|
DatasetSpec(java.lang.String specName)
Construct a DatasetSpec with no templates
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTemplate(java.lang.String templateName)
Add the named template, which should correspond to a DataTemplate, to
this dataset
|
java.lang.String |
getName()
Get the name for the particular data structure
|
java.util.HashSet<java.lang.String> |
getTemplateNames()
Get the names of the templates identified for this DatasetSpec.
|
void |
loadFromXml(org.w3c.dom.Element elem)
Load the Dataset Specification from an XML element.
|
org.w3c.dom.Element |
toXml(org.w3c.dom.Document doc)
Convert this specification into XML format.
|
getTemplates, storeTemplatespublic DatasetSpec(org.w3c.dom.Element elem)
elem - the element containing the dataset specificationpublic DatasetSpec(java.lang.String specName)
specName - the name of the dataset specificationpublic void addTemplate(java.lang.String templateName)
templateName - the name of a DataTemplatepublic java.lang.String getName()
getName in class DataStructureSpecpublic java.util.HashSet<java.lang.String> getTemplateNames()
getTemplateNames in class DataStructureSpecpublic void loadFromXml(org.w3c.dom.Element elem)
itemClass, and may
be a space-separated sequence of template names.elem - the element to parsepublic org.w3c.dom.Element toXml(org.w3c.dom.Document doc)
doc - the document to use to create the elements