gov.lanl.ObsDataTools
Class CoasDataAccess

java.lang.Object
  |
  +--gov.lanl.ObsDataTools.CoasDataAccess
All Implemented Interfaces:
ObsDataAccessInterface

public class CoasDataAccess
extends java.lang.Object
implements ObsDataAccessInterface

Provide the support for accessing all elements for COAS data.

Version:
$Revision: 1.5 $ $Date: 2002/11/21 04:14:08 $
Author:
Jim George

Constructor Summary
CoasDataAccess(org.omg.DsObservationAccess.ObservationDataStruct inObservationData)
          Constructes a CoasDataAccess object with the given ovservation data.
 
Method Summary
 gov.lanl.Utility.DateTime getBeginTime()
          Returns the begin time or null for the hight level Observation Data
 org.omg.DsObservationAccess.ObservationDataStruct getCompositeByName(java.lang.String inName)
          Finds the composite in the main level composites by name and returns it.
 java.lang.String getCompositeValueByName(java.lang.String inName)
          Finds the composit content in the main level composits by name and returns the associated value as a string
 gov.lanl.Utility.DateTime getEndTime()
          Returns the end time or null for the high level Observation Data
 org.omg.DsObservationAccess.ObservationDataStruct getObsData()
          Returns the complete single high level Observation Data
 java.lang.String getObsDataType()
          Returns the type of the high level ObservationData.
 org.omg.DsObservationAccess.ObservationId getObservationId()
          Finds the observation id from the qualifiers
 java.lang.String getObsIdCodeString()
          gets the string used to find the ObjectId.
 org.omg.DsObservationAccess.ObservationDataStruct getQualifierByName(java.lang.String inName)
          Finds the qualifier in the main level qualifiers by name and returns it.
 java.lang.String getQualifierValueByName(java.lang.String inName)
          Finds the qualifier content in the main level qualifiers by name and returns the associated value as a string
 boolean isPointInTime()
          Returns true if the high level Observation Data is a point in time event
 boolean isTimeSpan()
          Returns true if the high level Observation Data is a time span event
 void setObsData(org.omg.DsObservationAccess.ObservationDataStruct inObservationData)
          Sets the complete single high level Observation Data
 void setObsIdCodeString(java.lang.String inObsIdCodeString)
          Sets the string to be used to find the ObjectId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoasDataAccess

public CoasDataAccess(org.omg.DsObservationAccess.ObservationDataStruct inObservationData)
Constructes a CoasDataAccess object with the given ovservation data.

Parameters:
inObservationData - is the observation data for accessing
Method Detail

setObsData

public void setObsData(org.omg.DsObservationAccess.ObservationDataStruct inObservationData)
Sets the complete single high level Observation Data

Specified by:
setObsData in interface ObsDataAccessInterface

getObsData

public org.omg.DsObservationAccess.ObservationDataStruct getObsData()
Returns the complete single high level Observation Data

Specified by:
getObsData in interface ObsDataAccessInterface

getObsDataType

public java.lang.String getObsDataType()
Returns the type of the high level ObservationData. It will be like the defined string in XML.java. eg "DNS:telemed.lanl.gov/TraitCode/History" which corresponds to the static const XML.History in XML.java

Specified by:
getObsDataType in interface ObsDataAccessInterface

getQualifierByName

public org.omg.DsObservationAccess.ObservationDataStruct getQualifierByName(java.lang.String inName)
                                                                     throws ObsDataAccessException
Finds the qualifier in the main level qualifiers by name and returns it.

Specified by:
getQualifierByName in interface ObsDataAccessInterface
Parameters:
inName - is the name to look for
Returns:
the ObservationData corresponding to the name
Throws:
ObsDataAccessException

getCompositeByName

public org.omg.DsObservationAccess.ObservationDataStruct getCompositeByName(java.lang.String inName)
                                                                     throws ObsDataAccessException
Finds the composite in the main level composites by name and returns it.

Specified by:
getCompositeByName in interface ObsDataAccessInterface
Parameters:
inName - is the name to look for
Returns:
the ObservationData corresponding to the name
Throws:
ObsDataAccessException

getQualifierValueByName

public java.lang.String getQualifierValueByName(java.lang.String inName)
                                         throws ObsDataAccessException
Finds the qualifier content in the main level qualifiers by name and returns the associated value as a string

Specified by:
getQualifierValueByName in interface ObsDataAccessInterface
Throws:
ObsDataAccessException

getCompositeValueByName

public java.lang.String getCompositeValueByName(java.lang.String inName)
                                         throws ObsDataAccessException
Finds the composit content in the main level composits by name and returns the associated value as a string

Specified by:
getCompositeValueByName in interface ObsDataAccessInterface
Throws:
ObsDataAccessException

getBeginTime

public gov.lanl.Utility.DateTime getBeginTime()
Returns the begin time or null for the hight level Observation Data

Specified by:
getBeginTime in interface ObsDataAccessInterface

getEndTime

public gov.lanl.Utility.DateTime getEndTime()
Returns the end time or null for the high level Observation Data

Specified by:
getEndTime in interface ObsDataAccessInterface

isPointInTime

public boolean isPointInTime()
Returns true if the high level Observation Data is a point in time event

Specified by:
isPointInTime in interface ObsDataAccessInterface

isTimeSpan

public boolean isTimeSpan()
Returns true if the high level Observation Data is a time span event

Specified by:
isTimeSpan in interface ObsDataAccessInterface

getObservationId

public org.omg.DsObservationAccess.ObservationId getObservationId()
                                                           throws ObsDataAccessException
Finds the observation id from the qualifiers

Specified by:
getObservationId in interface ObsDataAccessInterface
Throws:
ObsDataAccessException

setObsIdCodeString

public void setObsIdCodeString(java.lang.String inObsIdCodeString)
Sets the string to be used to find the ObjectId.

Specified by:
setObsIdCodeString in interface ObsDataAccessInterface
Parameters:
inObsIdCodeString - is the string by which the ObjectId is known

getObsIdCodeString

public java.lang.String getObsIdCodeString()
gets the string used to find the ObjectId.

Specified by:
getObsIdCodeString in interface ObsDataAccessInterface


Copyright © 2000 University of California. All Rights Reserved.