Package org.ivoa.dm.caom2
Enum Class EnergyBand
- All Implemented Interfaces:
Serializable,Comparable<EnergyBand>,Constable
Energyband provides a general set of energy regions that span the electromagnetic spectrum.
The set of values and boundaries are taken from the VOResource metadata.
odo{The name(s) are used to capture the literal values from VOResource, but that
is not valid for X-ray and Gamma-ray}.
Enumeration EnergyBand :
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue EUV : wavelength from 10 to 100nm.Value Gammaray : energy greater than ~120keV.Value Infrared : wavelength from 1um to 0.1mm.Value Millimeter : wavelength from 0.1 to 10mm.Value Optical : wavelength from 300nm to 1um.Value Radio : wavelength greater than ~10mm.Value UV : wavelength from 100 to 300nm.Value Xray : energy from 0.12 to 120keV. -
Method Summary
Modifier and TypeMethodDescriptionstatic final EnergyBandReturn the EnergyBand enum constant corresponding to the given string representation (value)final StringtoString()Return the string representation of this enum constant (value)final Stringvalue()Return the string representation of this enum constant (value)static EnergyBandReturns the enum constant of this class with the specified name.static EnergyBand[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RADIO
Value Radio : wavelength greater than ~10mm. -
MILLIMETER
Value Millimeter : wavelength from 0.1 to 10mm. -
INFRARED
Value Infrared : wavelength from 1um to 0.1mm. -
OPTICAL
Value Optical : wavelength from 300nm to 1um. -
UV
Value UV : wavelength from 100 to 300nm. -
EUV
Value EUV : wavelength from 10 to 100nm. -
XRAY
Value Xray : energy from 0.12 to 120keV. -
GAMMARAY
Value Gammaray : energy greater than ~120keV.
-
-
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
Return the string representation of this enum constant (value)- Returns:
- string representation of this enum constant (value)
-
toString
Return the string representation of this enum constant (value)- Overrides:
toStringin classEnum<EnergyBand>- Returns:
- string representation of this enum constant (value)
- See Also:
-
fromValue
Return the EnergyBand enum constant corresponding to the given string representation (value)- Parameters:
v- string representation (value)- Returns:
- EnergyBand enum constant
- Throws:
IllegalArgumentException- if there is no matching enum constant
-