com.metsci.glimpse.dspl.schema
Class DataSet

java.lang.Object
  extended by com.metsci.glimpse.dspl.schema.DataSet

public class DataSet
extends java.lang.Object

A DSPL specification describes a dataset. A dataset is identified by its namespace. A dataset is comprised of the following elements: - Tables: Data for the concepts and slices defined in the dataset - Concepts: User-specified definitions and structures used in the dataset - Slices: Combinations of dimensions and metrics present in the dataset - Topics: Hierarchical labels used to organise the concepts of the dataset

Java class for dspl element declaration.

The following schema fragment specifies the expected content contained within this class.

 <element name="dspl">
   <complexType>
     <complexContent>
       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         <sequence>
           <element name="import" maxOccurs="unbounded" minOccurs="0">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <attribute name="namespace" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
                   <attribute name="location" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
                 </restriction>
               </complexContent>
             </complexType>
           </element>
           <element name="info" type="{http://schemas.google.com/dspl/2010}Info"/>
           <element name="provider" type="{http://schemas.google.com/dspl/2010}Info"/>
           <element name="attribute" type="{http://schemas.google.com/dspl/2010}Attribute" maxOccurs="unbounded" minOccurs="0"/>
           <element name="topics" minOccurs="0">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element name="topic" type="{http://schemas.google.com/dspl/2010}Topic" maxOccurs="unbounded"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
           <element name="concepts" minOccurs="0">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element name="concept" type="{http://schemas.google.com/dspl/2010}Concept" maxOccurs="unbounded"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
           <element name="slices" minOccurs="0">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element name="slice" type="{http://schemas.google.com/dspl/2010}Slice" maxOccurs="unbounded"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
           <element name="tables" minOccurs="0">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element name="table" type="{http://schemas.google.com/dspl/2010}Table" maxOccurs="unbounded"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
         </sequence>
         <attribute name="targetNamespace" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
       </restriction>
     </complexContent>
   </complexType>
 </element>
 


Nested Class Summary
static class DataSet.Concepts
          Java class for anonymous complex type.
static class DataSet.Import
          Java class for anonymous complex type.
static class DataSet.Slices
          Java class for anonymous complex type.
static class DataSet.Tables
          Java class for anonymous complex type.
static class DataSet.Topics
          Java class for anonymous complex type.
 
Constructor Summary
DataSet()
           
 
Method Summary
 java.util.List<Attribute> getAttribute()
          Gets the value of the attribute property.
 Concept getConcept(javax.xml.namespace.QName ref)
           
 Concept getConcept(java.lang.String localId)
           
 Concept getConcept(java.lang.String namespace, java.lang.String local)
           
 DataSet.Concepts getConcepts()
          Gets the value of the concepts property.
 DataSet getDataSet(DataSet.Import imp)
           
 java.io.File getFile()
           
 java.util.List<DataSet.Import> getImport()
          Gets the value of the import property.
 Info getInfo()
          Gets the value of the info property.
 DsplParser getParser()
           
 Info getProvider()
          Gets the value of the provider property.
 DataSet.Slices getSlices()
          Gets the value of the slices property.
 DataSet.Tables getTables()
          Gets the value of the tables property.
 java.lang.String getTargetNamespace()
          Gets the value of the targetNamespace property.
 DataSet.Topics getTopics()
          Gets the value of the topics property.
 void setConcepts(DataSet.Concepts value)
          Sets the value of the concepts property.
 void setFile(java.io.File file)
           
 void setInfo(Info value)
          Sets the value of the info property.
 void setParser(DsplParser parser)
           
 void setProvider(Info value)
          Sets the value of the provider property.
 void setSlices(DataSet.Slices value)
          Sets the value of the slices property.
 void setTables(DataSet.Tables value)
          Sets the value of the tables property.
 void setTargetNamespace(java.lang.String value)
          Sets the value of the targetNamespace property.
 void setTopics(DataSet.Topics value)
          Sets the value of the topics property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSet

public DataSet()
Method Detail

getImport

public java.util.List<DataSet.Import> getImport()
Gets the value of the import property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the import property.

For example, to add a new item, do as follows:

    getImport().add(newItem);
 

Objects of the following type(s) are allowed in the list DataSet.Import


getInfo

public Info getInfo()
Gets the value of the info property.

Returns:
possible object is Info

setInfo

public void setInfo(Info value)
Sets the value of the info property.

Parameters:
value - allowed object is Info

getProvider

public Info getProvider()
Gets the value of the provider property.

Returns:
possible object is Info

setProvider

public void setProvider(Info value)
Sets the value of the provider property.

Parameters:
value - allowed object is Info

getAttribute

public java.util.List<Attribute> getAttribute()
Gets the value of the attribute property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the attribute property.

For example, to add a new item, do as follows:

    getAttribute().add(newItem);
 

Objects of the following type(s) are allowed in the list Attribute


getTopics

public DataSet.Topics getTopics()
Gets the value of the topics property.

Returns:
possible object is DataSet.Topics

setTopics

public void setTopics(DataSet.Topics value)
Sets the value of the topics property.

Parameters:
value - allowed object is DataSet.Topics

getConcepts

public DataSet.Concepts getConcepts()
Gets the value of the concepts property.

Returns:
possible object is DataSet.Concepts

setConcepts

public void setConcepts(DataSet.Concepts value)
Sets the value of the concepts property.

Parameters:
value - allowed object is DataSet.Concepts

getSlices

public DataSet.Slices getSlices()
Gets the value of the slices property.

Returns:
possible object is DataSet.Slices

setSlices

public void setSlices(DataSet.Slices value)
Sets the value of the slices property.

Parameters:
value - allowed object is DataSet.Slices

getTables

public DataSet.Tables getTables()
Gets the value of the tables property.

Returns:
possible object is DataSet.Tables

setTables

public void setTables(DataSet.Tables value)
Sets the value of the tables property.

Parameters:
value - allowed object is DataSet.Tables

getTargetNamespace

public java.lang.String getTargetNamespace()
Gets the value of the targetNamespace property.

Returns:
possible object is String

setTargetNamespace

public void setTargetNamespace(java.lang.String value)
Sets the value of the targetNamespace property.

Parameters:
value - allowed object is String

getFile

public java.io.File getFile()

setFile

public void setFile(java.io.File file)

getParser

public DsplParser getParser()

setParser

public void setParser(DsplParser parser)

getConcept

public Concept getConcept(java.lang.String namespace,
                          java.lang.String local)
                   throws javax.xml.bind.JAXBException,
                          java.io.IOException,
                          DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException

getConcept

public Concept getConcept(java.lang.String localId)
                   throws javax.xml.bind.JAXBException,
                          java.io.IOException,
                          DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException

getConcept

public Concept getConcept(javax.xml.namespace.QName ref)
                   throws javax.xml.bind.JAXBException,
                          java.io.IOException,
                          DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException

getDataSet

public DataSet getDataSet(DataSet.Import imp)
                   throws javax.xml.bind.JAXBException,
                          java.io.IOException,
                          DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException


Copyright © 2012 Metron, Inc.. All Rights Reserved.