public class SiaFormatOption extends Object
This is a bit of a historical relic: in SIAv1 FORMAT was one of the most important options, but in SIAv2 there are many options and FORMAT doesn't necessarily warrant special treatment. This is here to enable pluggability between SIAv1 and v2 without disruption to the UI, but it may be replaced with a more comprehensive upgrade to SIAv2 handling in future.
Modifier and Type | Field and Description |
---|---|
static SiaFormatOption |
ALL |
static SiaFormatOption |
DATALINK |
static SiaFormatOption |
FITS |
static SiaFormatOption |
GRAPHIC |
Constructor and Description |
---|
SiaFormatOption(String value)
Constructs an option instance with a single value,
suitable for both SIAv1 and SIAv2.
|
SiaFormatOption(String v1Value,
String[] v2Values)
Constructs a general format option.
|
Modifier and Type | Method and Description |
---|---|
static SiaFormatOption |
fromObject(Object formatOrString)
Tries to turn an object into an SiaFormatObject.
|
String |
getSiav1Value()
Returns value for use in SIAv1 queries.
|
String[] |
getSiav2Values()
Returns list of values for use in SIAv2 queries.
|
static SiaFormatOption[] |
getStandardOptions()
Returns a list of standard options suitable for use in an SIA UI.
|
String |
toString() |
public static final SiaFormatOption ALL
public static final SiaFormatOption GRAPHIC
public static final SiaFormatOption FITS
public static final SiaFormatOption DATALINK
public SiaFormatOption(String value)
value
- required FORMAT parameter valuepublic String getSiav1Value()
public String[] getSiav2Values()
public static SiaFormatOption[] getStandardOptions()
public static SiaFormatOption fromObject(Object formatOrString)
formatOrString
- object that may represent an SiaFormatObject,
either an SiaFormatObject or a FORMAT valueCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.