|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.fissuresUtil.xml.XMLDataSet
public class XMLDataSet
Describe class XMLDataSet
here.
Field Summary | |
---|---|
protected java.net.URL |
base
Describe variable base here. |
protected org.w3c.dom.Element |
config
Describe variable config here. |
protected java.util.HashMap |
dataSetCache
Describe variable dataSetCache here. |
protected java.lang.String[] |
dataSetIdCache
Describe variable dataSetIdCache here. |
protected javax.xml.parsers.DocumentBuilder |
docBuilder
Describe variable docBuilder here. |
protected java.util.HashMap |
parameterCache
Describe variable parameterCache here. |
protected java.lang.String[] |
parameterNameCache
Describe variable parameterNameCache here. |
protected java.util.HashMap |
seismogramCache
Describe variable seismogramCache here. |
protected java.lang.String[] |
seismogramNameCache
Describe variable seismogramNameCache here. |
Fields inherited from interface edu.sc.seis.fissuresUtil.xml.StdDataSetParamNames |
---|
CHANNEL, EVENT, prefix |
Constructor Summary | |
---|---|
XMLDataSet(javax.xml.parsers.DocumentBuilder docBuilder,
java.net.URL datasetURL)
Creates a new XMLDataSet instance. |
|
XMLDataSet(javax.xml.parsers.DocumentBuilder docBuilder,
java.net.URL base,
org.w3c.dom.Element config)
Creates a new XMLDataSet instance. |
|
XMLDataSet(javax.xml.parsers.DocumentBuilder docBuilder,
java.net.URL base,
java.lang.String id,
java.lang.String name,
java.lang.String owner)
|
Method Summary | |
---|---|
void |
addDataSet(DataSet dataset,
edu.iris.Fissures.AuditInfo[] audit)
Describe addDataSet method here. |
void |
addDataSetRef(java.net.URL datasetURL,
edu.iris.Fissures.AuditInfo[] audit)
Describe addDataSetRef method here. |
void |
addDataSetSeismogram(DataSetSeismogram dss,
edu.iris.Fissures.AuditInfo[] audit)
adds the DataSetSeismogram to this DataSet. |
void |
addParameter(java.lang.String name,
java.lang.Object value,
edu.iris.Fissures.AuditInfo[] audit)
Adds a new parameter. |
void |
addParameterRef(java.net.URL paramURL,
java.lang.String name,
java.lang.Object object,
edu.iris.Fissures.AuditInfo[] audit)
|
void |
addSeismogram(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl seis,
edu.iris.Fissures.AuditInfo[] audit)
Adds a seismogram. |
void |
addSeismogramRef(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl seis,
java.net.URL seisURL,
java.lang.String name,
edu.iris.Fissures.IfSeismogramDC.Property[] props,
edu.iris.Fissures.IfParameterMgr.ParameterRef[] parm_ids,
edu.iris.Fissures.AuditInfo[] audit)
Adds a reference to a remote seismogram. |
java.lang.String[] |
cacheParameterNames()
|
protected java.lang.String[] |
cacheSeismogramNames()
Describe cacheSeismogramNames method here. |
protected void |
checkForLegacySeismograms()
|
DataSet |
createChildDataSet(java.lang.String id,
java.lang.String name,
java.lang.String owner,
edu.iris.Fissures.AuditInfo[] audit)
Creates a new DataSet as a child of this one. |
java.net.URL |
getBase()
Gets the base URL that other URLs in this dataset are relative to. |
edu.iris.Fissures.IfNetwork.Channel |
getChannel(edu.iris.Fissures.IfNetwork.ChannelId channelId)
Optional method to get the channel from the parameters, if it exists. |
edu.iris.Fissures.IfNetwork.ChannelId[] |
getChannelIds()
Optional method to get channel id of all Channel parameters. |
DataSet |
getDataSet(java.lang.String name)
Describe getDataSet method here. |
DataSet |
getDataSetById(java.lang.String id)
Describe getDataSetById method here. |
java.lang.String[] |
getDataSetIds()
Gets the Ids for all child datasets of this dataset. |
java.lang.String[] |
getDataSetNames()
Gets the names of all child datasets of this dataset. |
DataSetSeismogram |
getDataSetSeismogram(java.lang.String name)
|
java.lang.String[] |
getDataSetSeismogramNames()
|
static javax.xml.parsers.DocumentBuilder |
getDocumentBuilder()
|
static javax.xml.parsers.DocumentBuilderFactory |
getDocumentBuilderFactory()
|
org.w3c.dom.Element |
getElement()
returns a DOM Element that represents this dataset. |
edu.iris.Fissures.IfEvent.EventAccessOperations |
getEvent()
Optional method to get the event associated with this dataset. |
java.lang.String |
getId()
Gets the dataset Id. |
java.lang.String |
getName()
Gets the displayable name. |
java.lang.String |
getOwner()
Gets the displayable name. |
java.lang.Object |
getParameter(java.lang.String name)
Gets the parameter with the given name. |
java.lang.String[] |
getParameterNames()
Gets the names of all parameters within this dataset. |
edu.iris.Fissures.seismogramDC.LocalSeismogramImpl |
getSeismogram(java.lang.String name)
Gets the seismogram for the given name, Null if it cannot be found. |
edu.iris.Fissures.IfSeismogramDC.SeismogramAttr[] |
getSeismogramAttrs()
|
java.lang.String[] |
getSeismogramNames()
Gets the names of the seismograms in this dataset. |
static XMLDataSet |
load(java.net.URL datasetURL)
Load a xml dataset from a URL. |
void |
remove(DataSetSeismogram dss)
|
void |
setBase(java.net.URL base)
Sets the base URL that other URLs in this dataset are relative to. |
void |
setName(java.lang.String name)
Sets the displayable name. |
void |
setOwner(java.lang.String owner)
Sets the displayable name. |
java.lang.String |
toString()
|
void |
write(java.io.OutputStream out)
Writes the xml version of this dataset to the output stream. |
static void |
write(java.io.OutputStream out,
org.w3c.dom.Element el)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.net.URL base
base
here.
protected org.w3c.dom.Element config
config
here.
protected javax.xml.parsers.DocumentBuilder docBuilder
docBuilder
here.
protected java.util.HashMap parameterCache
parameterCache
here.
protected java.lang.String[] parameterNameCache
parameterNameCache
here.
protected java.lang.String[] dataSetIdCache
dataSetIdCache
here.
protected java.util.HashMap dataSetCache
dataSetCache
here.
protected java.util.HashMap seismogramCache
seismogramCache
here.
protected java.lang.String[] seismogramNameCache
seismogramNameCache
here.
Constructor Detail |
---|
public XMLDataSet(javax.xml.parsers.DocumentBuilder docBuilder, java.net.URL datasetURL)
XMLDataSet
instance.
docBuilder
- a DocumentBuilder
valuedatasetURL
- an URL
to a dsml filepublic XMLDataSet(javax.xml.parsers.DocumentBuilder docBuilder, java.net.URL base, java.lang.String id, java.lang.String name, java.lang.String owner)
public XMLDataSet(javax.xml.parsers.DocumentBuilder docBuilder, java.net.URL base, org.w3c.dom.Element config)
XMLDataSet
instance.
docBuilder
- a DocumentBuilder
to use to create the
document.base
- the URL
other urls should be made relative to.config
- the dataset contents as a DOM Element
Method Detail |
---|
public static XMLDataSet load(java.net.URL datasetURL)
datasetURL
- an URL
to an xml dataset
XMLDataSet
populated form the URLprotected void checkForLegacySeismograms()
public java.lang.String getId()
getId
in interface DataSet
String
idpublic java.net.URL getBase()
URL
public void setBase(java.net.URL base)
base
- an URL
public java.lang.String getName()
getName
in interface DataSet
String
namepublic void setName(java.lang.String name)
setName
in interface DataSet
name
- a String
namepublic java.lang.String getOwner()
getOwner
in interface DataSet
String
namepublic void setOwner(java.lang.String owner)
setOwner
in interface DataSet
name
- a String
namepublic java.lang.String[] getParameterNames()
getParameterNames
in interface DataSet
public java.lang.String[] cacheParameterNames()
public java.lang.Object getParameter(java.lang.String name)
getParameter
in interface DataSet
name
- a String
paramter name
public void addParameter(java.lang.String name, java.lang.Object value, edu.iris.Fissures.AuditInfo[] audit)
addParameter
in interface DataSet
name
- a String
name for this parametervalue
- an Object
valueaudit
- the audit related to this paramterpublic void addParameterRef(java.net.URL paramURL, java.lang.String name, java.lang.Object object, edu.iris.Fissures.AuditInfo[] audit)
public java.lang.String[] getDataSetIds()
String[]
idpublic java.lang.String[] getDataSetNames()
getDataSetNames
in interface DataSet
String[]
valuepublic DataSet getDataSet(java.lang.String name)
getDataSet
method here.
getDataSet
in interface DataSet
name
- a String
value
DataSet
valuepublic void addDataSet(DataSet dataset, edu.iris.Fissures.AuditInfo[] audit)
addDataSet
method here.
addDataSet
in interface DataSet
dataset
- an edu.sc.seis.fissuresUtil.xml.DataSet
valueaudit
- an AuditInfo[]
valuepublic void addDataSetRef(java.net.URL datasetURL, edu.iris.Fissures.AuditInfo[] audit)
addDataSetRef
method here.
datasetURL
- an URL
valueaudit
- an AuditInfo[]
valuepublic DataSet createChildDataSet(java.lang.String id, java.lang.String name, java.lang.String owner, edu.iris.Fissures.AuditInfo[] audit)
createChildDataSet
in interface DataSet
public DataSet getDataSetById(java.lang.String id)
getDataSetById
method here.
id
- a String
value
DataSet
valuepublic java.lang.String[] getSeismogramNames()
protected java.lang.String[] cacheSeismogramNames()
cacheSeismogramNames
method here.
String[]
valuepublic edu.iris.Fissures.IfSeismogramDC.SeismogramAttr[] getSeismogramAttrs()
public edu.iris.Fissures.IfNetwork.ChannelId[] getChannelIds()
DataSet
getChannelIds
in interface DataSet
for the prefix for these parameters.
public edu.iris.Fissures.seismogramDC.LocalSeismogramImpl getSeismogram(java.lang.String name)
name
- a String
name
LocalSeismogramImpl
public void addSeismogram(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl seis, edu.iris.Fissures.AuditInfo[] audit)
seis
- a LocalSeismogramImpl
seismogramaudit
- the audit for this seismogrampublic void addSeismogramRef(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl seis, java.net.URL seisURL, java.lang.String name, edu.iris.Fissures.IfSeismogramDC.Property[] props, edu.iris.Fissures.IfParameterMgr.ParameterRef[] parm_ids, edu.iris.Fissures.AuditInfo[] audit)
seisURL
- an URL
to the seismogramname
- a String
nameprops
- the properties for this seismogram to be stored in the datasetparm_ids
- the Parameter References for this seismogram to be stored in
the datasetaudit
- the audit for thie seismogrampublic void addDataSetSeismogram(DataSetSeismogram dss, edu.iris.Fissures.AuditInfo[] audit)
DataSet
addDataSetSeismogram
in interface DataSet
public DataSetSeismogram getDataSetSeismogram(java.lang.String name)
getDataSetSeismogram
in interface DataSet
public java.lang.String[] getDataSetSeismogramNames()
getDataSetSeismogramNames
in interface DataSet
public void remove(DataSetSeismogram dss)
remove
in interface DataSet
public java.lang.String toString()
toString
in class java.lang.Object
public org.w3c.dom.Element getElement()
Element
valuepublic edu.iris.Fissures.IfEvent.EventAccessOperations getEvent()
DataSet
getEvent
in interface DataSet
for the prefix for these parameters.
public edu.iris.Fissures.IfNetwork.Channel getChannel(edu.iris.Fissures.IfNetwork.ChannelId channelId)
DataSet
getChannel
in interface DataSet
for the prefix for these parameters.
public void write(java.io.OutputStream out) throws java.lang.Exception
java.lang.Exception
public static void write(java.io.OutputStream out, org.w3c.dom.Element el) throws java.lang.Exception
java.lang.Exception
public static javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
public static javax.xml.parsers.DocumentBuilder getDocumentBuilder() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |