Enum Class LocalAddeEntry.AddeFormat
java.lang.Object
java.lang.Enum<LocalAddeEntry.AddeFormat>
edu.wisc.ssec.mcidasv.servermanager.LocalAddeEntry.AddeFormat
- All Implemented Interfaces:
Serializable
,Comparable<LocalAddeEntry.AddeFormat>
,Constable
- Enclosing class:
LocalAddeEntry
The various kinds of local ADDE data understood by McIDAS-V, along with
some helpful metadata.
- "Human readable" format names (
friendlyName
). - Optional tooltip description (
tooltip
). - Type of data (
type
). - File naming pattern
fileFilter
.
None of AddeFormat
's fields should contain null
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
Filename pattern used when listing files in a directory.private final String
"Human readable" format name.private final LocalAddeEntry.ServerName
Name of the McIDAS-X server.private final String
Description of the format.private final AddeEntry.EntryType
Data type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AddeFormat
(LocalAddeEntry.ServerName servName, String friendlyName) Builds an "imagery ADDE Format" without a tooltip.private
AddeFormat
(LocalAddeEntry.ServerName servName, String friendlyName, String tooltip) Builds an "imagery ADDE Format" with a tooltip.private
AddeFormat
(LocalAddeEntry.ServerName servName, String friendlyName, String tooltip, AddeEntry.EntryType type) Builds an "ADDE format" and its associated metadata in a typesafe way. -
Method Summary
Modifier and TypeMethodDescriptionGets the string used to filter out files that match this format.Gets the McIDAS-XLocalAddeEntry.ServerName
for this format.Gets the tooltip text to use in the server manager GUI for this format.getType()
Gets the type of data used by this format.toString()
Gets theString
representation of this format.static LocalAddeEntry.AddeFormat
Returns the enum constant of this class with the specified name.static LocalAddeEntry.AddeFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MCIDAS_AREA
-
MCIDAS_MD
-
AMSRE_L1B
-
AMSRE_L2A
-
AMSRE_RAIN_PRODUCT
-
GINI
-
GOES16_ABI
-
HIMAWARI8
-
HIMAWARICAST
-
INSAT3D_IMAGER
-
INSAT3D_SOUNDER
-
LRIT_GOES9
-
LRIT_GOES10
-
LRIT_GOES11
-
LRIT_GOES12
-
LRIT_MET5
-
LRIT_MET7
-
LRIT_MTSAT1R
-
METEOSAT_OPENMTP
-
METOP_AVHRR_L1B
-
MODIS_L1B_MOD02
-
MODIS_L2_MOD06
-
MODIS_L2_MOD07
-
MODIS_L2_MOD35
-
MODIS_L2_MOD04
-
MODIS_L2_MOD28
-
MODIS_L2_MODR
-
MSG_HRIT_FD
-
MSG_HRIT_HRV
-
MSG_NATIVE
-
MTSAT_HRIT
-
NOAA_AVHRR_L1B
-
SCMI
-
SSMI
-
TRMM
-
VIIRSD
-
VIIRSI
-
VIIRSM
-
VIIREI
-
VIIREM
-
INVALID
-
-
Field Details
-
servName
Name of the McIDAS-X server. -
friendlyName
"Human readable" format name. This is returned bytoString()
. -
tooltip
Description of the format. -
type
Data type. Corresponds toTYPE
in "RESOLV.SRV". -
fileFilter
Filename pattern used when listing files in a directory. IfservName
isLocalAddeEntry.ServerName.MSGT
then "*PRO*" is used, otherwise "*".
-
-
Constructor Details
-
AddeFormat
private AddeFormat(LocalAddeEntry.ServerName servName, String friendlyName, String tooltip, AddeEntry.EntryType type) Builds an "ADDE format" and its associated metadata in a typesafe way.- Parameters:
servName
-LocalAddeEntry.ServerName
that McIDAS-X uses for this format.friendlyName
- "Human readable" name of the format; returned bytoString()
.tooltip
- If non-empty, this is used as a tooltip in the local entry editor.type
-AddeEntry.EntryType
used by this format.
-
AddeFormat
Builds an "imagery ADDE Format" without a tooltip.- Parameters:
servName
-LocalAddeEntry.ServerName
that McIDAS-X uses for this format.friendlyName
- "Human readable" name of the format; returned bytoString()
.
-
AddeFormat
Builds an "imagery ADDE Format" with a tooltip.- Parameters:
servName
-LocalAddeEntry.ServerName
that McIDAS-X uses for this format.friendlyName
- "Human readable" name of the format; returned bytoString()
.tooltip
- If non-empty, this is used as a tooltip in the local entry editor.
-
-
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
-
getServerName
Gets the McIDAS-XLocalAddeEntry.ServerName
for this format.- Returns:
- Either the name of this format's McIDAS-X server, or
LocalAddeEntry.ServerName.INVALID
.
-
getTooltip
Gets the tooltip text to use in the server manager GUI for this format.- Returns:
- Text to use as a GUI tooltip. Cannot be
null
, though emptyString
values are permitted.
-
getType
Gets the type of data used by this format. This value dictates the chooser(s) where this format can appear. -
getFileFilter
Gets the string used to filter out files that match this format.- Returns:
- Either a specialized
String
, like "*PRO*" or "*".
-
toString
Gets theString
representation of this format.- Overrides:
toString
in classEnum<LocalAddeEntry.AddeFormat>
- Returns:
- the value of
friendlyName
.
-