uk.ac.starlink.topcat.activate
Enum ColFlag

java.lang.Object
  extended by java.lang.Enum<ColFlag>
      extended by uk.ac.starlink.topcat.activate.ColFlag
All Implemented Interfaces:
Serializable, Comparable<ColFlag>

public enum ColFlag
extends Enum<ColFlag>

Used to mark columns in a TopcatModelInfo as apparently having some characteristic or other.

Since:
26 Mar 2018
Author:
Mark Taylor

Enum Constant Summary
DATALINK
          Column (probably) contains a Datalink URL.
HTML
          Column (probably) contains a browser-friendly URL.
IMAGE
          Column (probably) contains an Image URL.
SPECTRUM
          Column (probably) contains a Spectrum URL.
STRING
          Column value type is string.
URL
          Column (probably) contains a URL.
VOTABLE
          Column (probably) contains a VOTable URL.
 
Method Summary
static ColFlag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ColFlag[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRING

public static final ColFlag STRING
Column value type is string.


URL

public static final ColFlag URL
Column (probably) contains a URL.


DATALINK

public static final ColFlag DATALINK
Column (probably) contains a Datalink URL.


IMAGE

public static final ColFlag IMAGE
Column (probably) contains an Image URL.


SPECTRUM

public static final ColFlag SPECTRUM
Column (probably) contains a Spectrum URL.


VOTABLE

public static final ColFlag VOTABLE
Column (probably) contains a VOTable URL.


HTML

public static final ColFlag HTML
Column (probably) contains a browser-friendly URL.

Method Detail

values

public static ColFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ColFlag c : ColFlag.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ColFlag valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.