Package jspecview.source
Class JDXHeader
java.lang.Object
jspecview.source.JDXHeader
- Direct Known Subclasses:
JDXDataObject
,JDXSource
could be a spectrum or a source
- Author:
- Bob Hanson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the data class spectrum onlyGetter for property dataType.getDate()
Getter for property date.String[][]
getHeaderRowDataAsArray
(boolean addDataClass, int nMore) Returns the table of headersGetter for property jcampdx.Getter for property longDate.Getter for property origin.getOwner()
Getter for property owner.getTime()
Getter for property time.getTitle()
Getter for property title.void
setDataClass
(String dataClass) Sets the data classvoid
setDataType
(String dataType) Sets the data typevoid
Sets the date the file was createdvoid
setHeaderTable
(Lst<String[]> table) Sets the headerTable for this Source or spectrumvoid
setJcampdx
(String versionNum) Sets the JCAMP-DX version numbervoid
setLongDate
(String longDate) Sets the long date of when the file was createdvoid
Sets the origin of the JCAMP-DX spectrumvoid
Sets the ownervoid
Sets the time the file was createdvoid
Sets the title of the spectrum
-
Field Details
-
title
-
jcampdx
-
dataType
-
dataClass
-
origin
-
owner
-
longDate
-
date
-
time
-
headerTable
-
-
Constructor Details
-
JDXHeader
public JDXHeader()
-
-
Method Details
-
setTitle
Sets the title of the spectrum- Parameters:
title
- the spectrum title
-
setJcampdx
Sets the JCAMP-DX version number- Parameters:
versionNum
- the JCAMP-DX version number
-
setDataType
Sets the data type- Parameters:
dataType
- the data type
-
setDataClass
Sets the data class- Parameters:
dataClass
- the data class
-
setOrigin
Sets the origin of the JCAMP-DX spectrum- Parameters:
origin
- the origin
-
setOwner
Sets the owner- Parameters:
owner
- the owner
-
setLongDate
Sets the long date of when the file was created- Parameters:
longDate
- String
-
setDate
Sets the date the file was created- Parameters:
date
- String
-
setTime
Sets the time the file was created- Parameters:
time
- String
-
getTitle
Getter for property title.- Returns:
- Value of property title.
-
getQualifiedDataType
-
getJcampdx
Getter for property jcampdx.- Returns:
- Value of property jcampdx.
-
getDataType
Getter for property dataType.- Returns:
- Value of property dataType.
-
getOrigin
Getter for property origin.- Returns:
- Value of property origin.
-
getOwner
Getter for property owner.- Returns:
- Value of property owner.
-
getLongDate
Getter for property longDate.- Returns:
- Value of property longDate.
-
getDate
Getter for property date.- Returns:
- Value of property date.
-
getTime
Getter for property time.- Returns:
- Value of property time.
-
getDataClass
Returns the data class spectrum only- Returns:
- the data class
-
setHeaderTable
Sets the headerTable for this Source or spectrum- Parameters:
table
- the header table
-
getHeaderTable
Returns the table of headers- Returns:
- the table of headers
-
getHeaderRowDataAsArray
-