com.metsci.glimpse.dspl.schema
Class Concept

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

public class Concept
extends java.lang.Object

A concept is a definition of a type of data that appears in the dataset (e.g., "GDP" or "County"). A concept may be associated with an enumeration of all its possible values or not. A concept defined in some dataset may be referenced in other datasets.

Java class for Concept complex type.

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

 <complexType name="Concept">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="info" type="{http://schemas.google.com/dspl/2010}ConceptInfo"/>
         <element name="topic" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}QName" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="type" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="ref" use="required" type="{http://schemas.google.com/dspl/2010}DataType" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="attribute" type="{http://schemas.google.com/dspl/2010}Attribute" maxOccurs="unbounded" minOccurs="0"/>
         <element name="property" type="{http://schemas.google.com/dspl/2010}ConceptProperty" maxOccurs="unbounded" minOccurs="0"/>
         <element name="defaultValue" type="{http://schemas.google.com/dspl/2010}Value" minOccurs="0"/>
         <choice>
           <element name="table" type="{http://schemas.google.com/dspl/2010}ConceptTableMapping" minOccurs="0"/>
           <element name="data" minOccurs="0">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element name="table" type="{http://schemas.google.com/dspl/2010}ConceptTableMapping"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
         </choice>
       </sequence>
       <attribute name="id" use="required" type="{http://schemas.google.com/dspl/2010}Id" />
       <attribute name="extends" type="{http://www.w3.org/2001/XMLSchema}QName" />
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class Concept.Data
          Java class for anonymous complex type.
static class Concept.Topic
          Java class for anonymous complex type.
static class Concept.Type
          Java class for anonymous complex type.
 
Constructor Summary
Concept()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List<Attribute> getAttribute()
          Gets the value of the attribute property.
 Attribute getAttribute(java.lang.String ref)
           
 Concept.Data getData()
          Gets the value of the data property.
 DataSet getDataSet()
           
 Value getDefaultValue()
          Gets the value of the defaultValue property.
 javax.xml.namespace.QName getExtends()
          Gets the value of the extends property.
 java.lang.String getId()
          Gets the value of the id property.
 ConceptInfo getInfo()
          Gets the value of the info property.
 java.lang.String getNameEnglish()
           
 Concept getParentConcept()
           
 java.util.List<ConceptProperty> getProperty()
          Gets the value of the property property.
 ConceptProperty getProperty(java.lang.String ref)
           
 Table getTable()
           
 PropertyTableData getTableData()
           
 ConceptTableMapping getTableMapping()
          Gets the value of the tableMapping property.
 java.util.List<Concept.Topic> getTopic()
          Gets the value of the topic property.
 Concept.Type getType()
          Gets the value of the type property.
 boolean isInstanceOf(Concept superConcept)
           
 void setData(Concept.Data value)
          Sets the value of the data property.
 void setDataSet(DataSet dataSet)
           
 void setDefaultValue(Value value)
          Sets the value of the defaultValue property.
 void setExtends(javax.xml.namespace.QName value)
          Sets the value of the extends property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 void setInfo(ConceptInfo value)
          Sets the value of the info property.
 void setParentConcept(Concept parent)
           
 void setTableMapping(ConceptTableMapping value)
          Sets the value of the tableMapping property.
 void setType(Concept.Type value)
          Sets the value of the type property.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Concept

public Concept()
Method Detail

getInfo

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

Returns:
possible object is ConceptInfo

setInfo

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

Parameters:
value - allowed object is ConceptInfo

getTopic

public java.util.List<Concept.Topic> getTopic()
Gets the value of the topic 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 topic property.

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

    getTopic().add(newItem);
 

Objects of the following type(s) are allowed in the list Concept.Topic


getType

public Concept.Type getType()
Gets the value of the type property.

Returns:
possible object is Concept.Type

setType

public void setType(Concept.Type value)
Sets the value of the type property.

Parameters:
value - allowed object is Concept.Type

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


getProperty

public java.util.List<ConceptProperty> getProperty()
Gets the value of the property 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 property property.

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

    getProperty().add(newItem);
 

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


getDefaultValue

public Value getDefaultValue()
Gets the value of the defaultValue property.

Returns:
possible object is Value

setDefaultValue

public void setDefaultValue(Value value)
Sets the value of the defaultValue property.

Parameters:
value - allowed object is Value

getTableMapping

public ConceptTableMapping getTableMapping()
Gets the value of the tableMapping property.

Returns:
possible object is ConceptTableMapping

setTableMapping

public void setTableMapping(ConceptTableMapping value)
Sets the value of the tableMapping property.

Parameters:
value - allowed object is ConceptTableMapping

getData

public Concept.Data getData()
Gets the value of the data property.

Returns:
possible object is Concept.Data

setData

public void setData(Concept.Data value)
Sets the value of the data property.

Parameters:
value - allowed object is Concept.Data

getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getExtends

public javax.xml.namespace.QName getExtends()
Gets the value of the extends property.

Returns:
possible object is QName

setExtends

public void setExtends(javax.xml.namespace.QName value)
Sets the value of the extends property.

Parameters:
value - allowed object is QName

getDataSet

public DataSet getDataSet()

setDataSet

public void setDataSet(DataSet dataSet)

getParentConcept

public Concept getParentConcept()

setParentConcept

public void setParentConcept(Concept parent)

getNameEnglish

public java.lang.String getNameEnglish()

getTable

public Table getTable()
               throws javax.xml.bind.JAXBException,
                      java.io.IOException,
                      DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException

getTableData

public PropertyTableData getTableData()
                               throws javax.xml.bind.JAXBException,
                                      java.io.IOException,
                                      DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException

isInstanceOf

public boolean isInstanceOf(Concept superConcept)

getProperty

public ConceptProperty getProperty(java.lang.String ref)

getAttribute

public Attribute getAttribute(java.lang.String ref)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


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