public enum ResourceType extends Enum<ResourceType>
Enum Constant and Description |
---|
DATALINK
DataLink {links}-response table.
|
FITS_IMAGE
FITS file to be interpreted as 2D image data.
|
IMAGE
Graphical image, typically not FITS (PNG, JPEG etc).
|
SPECTRUM
Some kind of spectrum.
|
TABLE
Table.
|
UNKNOWN
Unknown resource type.
|
WEB
Something that can be displayed in a web browser, for instance HTML.
|
Modifier and Type | Method and Description |
---|---|
static ResourceType |
guessResourceType(ResourceInfo resInfo)
Attempts to determine the type of resource characterised by
available information.
|
static ResourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceType TABLE
public static final ResourceType DATALINK
public static final ResourceType FITS_IMAGE
public static final ResourceType SPECTRUM
public static final ResourceType IMAGE
public static final ResourceType WEB
public static final ResourceType UNKNOWN
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ResourceType guessResourceType(ResourceInfo resInfo)
resInfo
- resource informationCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.