Enum Class DataSource
- All Implemented Interfaces:
Serializable,Comparable<DataSource>,Constable,org.jvnet.jaxb.lang.EnumValue<String>
@Generated(value="com.sun.tools.xjc.Driver",
comments="JAXB RI v4.0.4",
date="2025-08-12T08:31:32+01:00")
public enum DataSource
extends Enum<DataSource>
implements org.jvnet.jaxb.lang.EnumValue<String>
The defined categories that specify where the spectral data
originally came from.
Java class for DataSource
.The following schema fragment specifies the expected content contained within this class.
<simpleType name="DataSource">
<restriction base="{http://www.w3.org/2001/XMLSchema}token">
<enumeration value="survey"/>
<enumeration value="pointed"/>
<enumeration value="custom"/>
<enumeration value="theory"/>
<enumeration value="artificial"/>
</restriction>
</simpleType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is similar to theory data but need not be based on a physical model, and is often used for testing purposes.Data which has been custom processed, e.g., as part of a specific research project.Typically, these are instrumental observations taken as part of some PI observing program.A survey dataset, which typically covers some region of observational parameter space in a uniform fashion, with as complete as possible coverage in the region of parameter space observed.Theory data, or any data generated from a theoretical model, for example a synthetic spectrum. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSourceGets the enum associated to the value passed as parameter.value()Gets the value associated to the enum constant.static DataSourceReturns the enum constant of this class with the specified name.static DataSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SURVEY
A survey dataset, which typically covers some region of observational parameter space in a uniform fashion, with as complete as possible coverage in the region of parameter space observed. -
POINTED
Typically, these are instrumental observations taken as part of some PI observing program. The data quality and characteristics may be variable, but the observations of a particular object or field may be more extensive than for a survey. -
CUSTOM
Data which has been custom processed, e.g., as part of a specific research project. -
THEORY
Theory data, or any data generated from a theoretical model, for example a synthetic spectrum. -
ARTIFICIAL
This is similar to theory data but need not be based on a physical model, and is often used for testing purposes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
Gets the value associated to the enum constant.- Returns:
- The value linked to the enum.
-
fromValue
Gets the enum associated to the value passed as parameter.- Parameters:
v- The value to get the enum from.- Returns:
- The enum which corresponds to the value, if it exists.
- Throws:
IllegalArgumentException- If no value matches in the enum declaration.
-
enumValue
- Specified by:
enumValuein interfaceorg.jvnet.jaxb.lang.EnumValue<String>
-