gov.lanl.Utility
Class DomDoc2ObsData

java.lang.Object
  |
  +--gov.lanl.Utility.DomDoc2ObsData

public class DomDoc2ObsData
extends java.lang.Object

Provides a class to convert an org.w3c.dom.Document to an observation data.

 

Constructor Summary
DomDoc2ObsData()
          Default constructor declaration
DomDoc2ObsData(org.w3c.dom.Document inDoc)
          Constructor with the document to use as the current document for converting.
 
Method Summary
 org.w3c.dom.Document getDomDoc()
          Return the current document.
 org.omg.DsObservationAccess.ObservationDataStruct getObsData()
          Generate the observation data representing the current document.
 org.omg.DsObservationAccess.ObservationDataStruct[] getObsDataSeq()
          Generate the observation data sequence representing the current document.
 void setDomDoc(org.w3c.dom.Document inDoc)
          Set the current w3c.dom.Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomDoc2ObsData

public DomDoc2ObsData()
Default constructor declaration


DomDoc2ObsData

public DomDoc2ObsData(org.w3c.dom.Document inDoc)
Constructor with the document to use as the current document for converting.

Parameters:
inDoc - is the to use as the current document
Method Detail

setDomDoc

public void setDomDoc(org.w3c.dom.Document inDoc)
Set the current w3c.dom.Document.

Parameters:
inDoc - is the document to use as the current document

getDomDoc

public org.w3c.dom.Document getDomDoc()
Return the current document.

Returns:
the current document

getObsData

public org.omg.DsObservationAccess.ObservationDataStruct getObsData()
Generate the observation data representing the current document. Note: this method doesn't wrap an observation data object around observation data as it did in an earlier version

Returns:
a observation data generated from the current w3c.dom Document

getObsDataSeq

public org.omg.DsObservationAccess.ObservationDataStruct[] getObsDataSeq()
Generate the observation data sequence representing the current document.

Returns:
an array of observation data generated from the current w3c.dom Document