Package adams.db
Class SpectrumIDConditions
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.db.AbstractConditions
-
- adams.db.AbstractLimitedConditions
-
- adams.db.SpectrumIDConditions
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.option.PreGetOptionslistHook,adams.core.SizeOfHandler,adams.db.DataContainerConditions,SampleIDRegExpSupporter,SampleTypeRegExpSupporter,Serializable
public class SpectrumIDConditions extends adams.db.AbstractLimitedConditions implements adams.db.DataContainerConditions, SampleIDRegExpSupporter, SampleTypeRegExpSupporter
Conditions for the retrieval of spectrum IDs.
Valid options are:
-D (property: debug) If set to true, scheme may output additional info to the console.-limit <int> (property: limit) The maximum number of IDs to retrieve. default: 10000-sampleid <java.lang.String> (property: regexSampleID) The regular expression on the spectrum ID. default:-format <java.lang.String> (property: format) The regular expression on the data format. default:- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.core.base.BaseRegExpm_Formatthe regular expression on the format type of the spectrum.protected adams.core.base.BaseRegExpm_SampleIDRegExpthe regular expression on the name of the spectrum.protected adams.core.base.BaseRegExpm_SampleTypeRegExpthe regular expression on the type of the spectrum.
-
Constructor Summary
Constructors Constructor Description SpectrumIDConditions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.StringformatTipText()Returns the tip text for this property.adams.core.base.BaseRegExpgetFormat()Returns the regular expression for the format.adams.core.base.BaseRegExpgetSampleIDRegExp()Returns the regular expression for the spectrum name.adams.core.base.BaseRegExpgetSampleTypeRegExp()Returns the regular expression for the sample type.StringglobalInfo()Returns a string describing the object.StringsampleIDRegExpTipText()Returns the tip text for this property.StringsampleTypeRegExpTipText()Returns the tip text for this property.voidsetFormat(adams.core.base.BaseRegExp value)Sets the regular expression for the format.voidsetSampleIDRegExp(adams.core.base.BaseRegExp value)Sets the regular expression for the spectrum name.voidsetSampleTypeRegExp(adams.core.base.BaseRegExp value)Sets the regular expression for the sample type.voidupdate()Automatically corrects values.-
Methods inherited from class adams.db.AbstractLimitedConditions
getDefaultLimit, getLimit, limitTipText, setLimit
-
Methods inherited from class adams.db.AbstractConditions
check, compareTo, equals, forCommandLine, forName, getFilters, preGetOptionsList, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_SampleIDRegExp
protected adams.core.base.BaseRegExp m_SampleIDRegExp
the regular expression on the name of the spectrum.
-
m_SampleTypeRegExp
protected adams.core.base.BaseRegExp m_SampleTypeRegExp
the regular expression on the type of the spectrum.
-
m_Format
protected adams.core.base.BaseRegExp m_Format
the regular expression on the format type of the spectrum.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.db.AbstractLimitedConditions
-
setSampleIDRegExp
public void setSampleIDRegExp(adams.core.base.BaseRegExp value)
Sets the regular expression for the spectrum name.- Specified by:
setSampleIDRegExpin interfaceSampleIDRegExpSupporter- Parameters:
value- the regular expression
-
getSampleIDRegExp
public adams.core.base.BaseRegExp getSampleIDRegExp()
Returns the regular expression for the spectrum name.- Specified by:
getSampleIDRegExpin interfaceSampleIDRegExpSupporter- Returns:
- the regular expression
-
sampleIDRegExpTipText
public String sampleIDRegExpTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setSampleTypeRegExp
public void setSampleTypeRegExp(adams.core.base.BaseRegExp value)
Sets the regular expression for the sample type.- Specified by:
setSampleTypeRegExpin interfaceSampleTypeRegExpSupporter- Parameters:
value- the regular expression
-
getSampleTypeRegExp
public adams.core.base.BaseRegExp getSampleTypeRegExp()
Returns the regular expression for the sample type.- Specified by:
getSampleTypeRegExpin interfaceSampleTypeRegExpSupporter- Returns:
- the regular expression
-
sampleTypeRegExpTipText
public String sampleTypeRegExpTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setFormat
public void setFormat(adams.core.base.BaseRegExp value)
Sets the regular expression for the format.- Parameters:
value- the regular expression
-
getFormat
public adams.core.base.BaseRegExp getFormat()
Returns the regular expression for the format.- Returns:
- the regular expression
-
formatTipText
public String formatTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
update
public void update()
Automatically corrects values.- Specified by:
updatein classadams.db.AbstractConditions
-
-