org.opensha.commons.data.siteData
Class SiteDataValue<Element>

java.lang.Object
  extended by org.opensha.commons.data.siteData.SiteDataValue<Element>
Type Parameters:
Element -
All Implemented Interfaces:
XMLSaveable

public class SiteDataValue<Element>
extends Object
implements XMLSaveable

This represents a single site data value, along with metadata describing it's type and source. It is returned by the SiteDataAPI.getAnnotatedValue method.

Author:
Kevin

Field Summary
static String XML_METADATA_NAME
           
 
Constructor Summary
SiteDataValue(String dataType, String dataMeasurementType, Element value)
           
SiteDataValue(String dataType, String dataMeasurementType, Element value, String sourceName)
           
 
Method Summary
static SiteDataValue<?> fromXMLMetadata(Element dataElem)
           
 String getDataMeasurementType()
           
 String getDataType()
           
 String getSourceName()
           
 Element getValue()
           
 String toString()
           
 Element toXMLMetadata(Element root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_METADATA_NAME

public static final String XML_METADATA_NAME
See Also:
Constant Field Values
Constructor Detail

SiteDataValue

public SiteDataValue(String dataType,
                     String dataMeasurementType,
                     Element value)

SiteDataValue

public SiteDataValue(String dataType,
                     String dataMeasurementType,
                     Element value,
                     String sourceName)
Method Detail

getDataType

public String getDataType()

getDataMeasurementType

public String getDataMeasurementType()

getValue

public Element getValue()

getSourceName

public String getSourceName()

toString

public String toString()
Overrides:
toString in class Object

toXMLMetadata

public Element toXMLMetadata(Element root)
Specified by:
toXMLMetadata in interface XMLSaveable

fromXMLMetadata

public static SiteDataValue<?> fromXMLMetadata(Element dataElem)