moos.ssds.model
Class DataFile

java.lang.Object
  extended bymoos.ssds.model.DataContainer
      extended bymoos.ssds.model.DataFile
All Implemented Interfaces:
IDataContainer, IDataFile, IDateRange, IDescription, IUrlAccess, ResourceOwner, java.io.Serializable, ValueObject
Direct Known Subclasses:
SerializedPackets

public class DataFile
extends DataContainer
implements java.io.Serializable, IUrlAccess, IDataFile


Version:
: $Revision: 1.8 $

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement. This information should not be published or distributed to third parties without specific written permission from MBARI.


Copyright 2002 MBARI.
MBARI Proprietary Information. All rights reserved.



Author:
: $Author: mccann $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface moos.ssds.model.IDataFile
FLATFILE_TYPE, NETCDF_TYPE, SERIALIZEDPACKETS_TYPE, UNDEFINED_TYPE
 
Constructor Summary
DataFile()
           
 
Method Summary
 java.lang.String getContentType()
          Indicates the contents of the DataFile
 java.lang.String getFileName()
          This should dynamically parses the filename from the URL.
 IHeaderDescription getHeaderDescription()
           
 java.lang.Long getHeaderDescriptionId()
           
 java.net.URL getUrl()
           
 boolean isDodsAccessible()
           
 boolean isWebAccessible()
           
 void setContentType(java.lang.String type)
          Indicates the contents of the DataFile
 void setDodsAccessible(boolean dodsAccessable)
           
 void setFileName(java.lang.String fileName)
          Deprecated. TODO 20031006 brian: This should probably be parsed dynamically from the URL. getFileName() should probably be removed.
 void setHeaderDescription(IHeaderDescription headerDescription)
           
 void setHeaderDescriptionId(java.lang.Long headerDescriptionId)
           
 void setUrl(java.net.URL url)
           
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class moos.ssds.model.DataContainer
addConsumer, addRecordDescription, addResource, getContact, getCreator, getDataProducerId, getDateRange, getDescription, getEndDate, getId, getName, getPerson, getPersonId, getRecordDescription, getRecordDescriptions, getStartDate, isOriginal, listAllConsumers, listAllInputs, listAllOutputs, listAllProducers, listDerivedOutputs, listDirectConsumers, listDirectInputs, listIndirectConsumers, listIndirectCreators, listIndirectInputs, listRecordDescriptions, listResources, removeConsumer, removeRecordDescription, removeResource, setContact, setCreator, setDataProducerId, setDescription, setEndDate, setId, setName, setOriginal, setPerson, setPersonId, setRecordDescription, setRecordDescriptions, setStartDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface moos.ssds.model.IDataContainer
addConsumer, addRecordDescription, addResource, getContact, getCreator, getDataProducerId, getDateRange, getDescription, getEndDate, getId, getName, getPerson, getPersonId, getRecordDescription, getRecordDescriptions, getStartDate, isOriginal, listAllConsumers, listAllInputs, listAllOutputs, listAllProducers, listDerivedOutputs, listDirectConsumers, listDirectInputs, listIndirectConsumers, listIndirectCreators, listIndirectInputs, listRecordDescriptions, listResources, removeConsumer, removeRecordDescription, removeResource, setContact, setCreator, setDataProducerId, setDescription, setEndDate, setId, setName, setOriginal, setPerson, setPersonId, setRecordDescription, setRecordDescriptions, setStartDate
 

Constructor Detail

DataFile

public DataFile()
Method Detail

getUrl

public java.net.URL getUrl()
Specified by:
getUrl in interface IUrlAccess

setUrl

public void setUrl(java.net.URL url)
Specified by:
setUrl in interface IUrlAccess

isDodsAccessible

public boolean isDodsAccessible()
Specified by:
isDodsAccessible in interface IDataFile

setDodsAccessible

public void setDodsAccessible(boolean dodsAccessable)
Specified by:
setDodsAccessible in interface IDataFile

isWebAccessible

public boolean isWebAccessible()
Specified by:
isWebAccessible in interface IUrlAccess
Returns:
true if the URL uses http or ftp protocols or if dodsAccessabel is true

getFileName

public java.lang.String getFileName()
This should dynamically parses the filename from the URL. setFileName() should probably be removed.

Specified by:
getFileName in interface IDataFile

setFileName

public void setFileName(java.lang.String fileName)
Deprecated. TODO 20031006 brian: This should probably be parsed dynamically from the URL. getFileName() should probably be removed.

Specified by:
setFileName in interface IDataFile

getHeaderDescription

public IHeaderDescription getHeaderDescription()
Specified by:
getHeaderDescription in interface IDataFile

setHeaderDescription

public void setHeaderDescription(IHeaderDescription headerDescription)
Specified by:
setHeaderDescription in interface IDataFile

getContentType

public java.lang.String getContentType()
Indicates the contents of the DataFile

Specified by:
getContentType in interface IDataFile
Returns:
Since:
Jun 3, 2003
See Also:
FLATFILE_TYPE, SERIALIZEDPACKETS_TYPE, UNDEFINED_TYPE, NETCDF_TYPE

setContentType

public void setContentType(java.lang.String type)
Indicates the contents of the DataFile

Specified by:
setContentType in interface IDataFile
Parameters:
type -
Since:
Jun 3, 2003

getHeaderDescriptionId

public java.lang.Long getHeaderDescriptionId()
Specified by:
getHeaderDescriptionId in interface IDataFile

setHeaderDescriptionId

public void setHeaderDescriptionId(java.lang.Long headerDescriptionId)
Specified by:
setHeaderDescriptionId in interface IDataFile

toString

public java.lang.String toString()
Description copied from interface: IDataContainer
Description of the Method

Specified by:
toString in interface IDataContainer
Overrides:
toString in class DataContainer
Returns:
Description of the Return Value