org.opensha.commons.data.siteData
Class SiteDataValueListList

java.lang.Object
  extended by org.opensha.commons.data.siteData.SiteDataValueListList
All Implemented Interfaces:
XMLSaveable

public class SiteDataValueListList
extends Object
implements XMLSaveable

This represents a list of site data value lists. It is most useful for applications such as hazard maps, and for XML saving/loading.

Author:
Kevin Milner

Field Summary
static String XML_METADATA_NAME
           
 
Constructor Summary
SiteDataValueListList(ArrayList<SiteDataValueList<?>> lists)
           
 
Method Summary
static SiteDataValueListList fromXMLMetadata(Element listsEl)
           
 ArrayList<SiteDataValue<?>> getDataList(int index)
           
 Location getDataLocation(int index)
           
 int getNumProviders()
           
 boolean hasLocations()
           
static void main(String[] args)
           
 int size()
           
 Element toXMLMetadata(Element root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_METADATA_NAME

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

SiteDataValueListList

public SiteDataValueListList(ArrayList<SiteDataValueList<?>> lists)
Method Detail

size

public int size()

getNumProviders

public int getNumProviders()

getDataList

public ArrayList<SiteDataValue<?>> getDataList(int index)

getDataLocation

public Location getDataLocation(int index)

hasLocations

public boolean hasLocations()

toXMLMetadata

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

fromXMLMetadata

public static SiteDataValueListList fromXMLMetadata(Element listsEl)

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException