Package gov.nasa.pds.citool.ri
Enum RIType
- java.lang.Object
-
- java.lang.Enum<RIType>
-
- gov.nasa.pds.citool.ri.RIType
-
- All Implemented Interfaces:
Serializable
,Comparable<RIType>
public enum RIType extends Enum<RIType>
Interface containing the different referential integrity types.- Author:
- mcayanan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_SET
DATA_SET_COLLECTION
INSTRUMENT
INSTRUMENT_HOST
MISSION
PERSONNEL
REFERENCE
TARGET
VOLUME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
static RIType
valueOf(String name)
Returns the enum constant of this type with the specified name.static RIType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REFERENCE
public static final RIType REFERENCE
-
PERSONNEL
public static final RIType PERSONNEL
-
TARGET
public static final RIType TARGET
-
INSTRUMENT_HOST
public static final RIType INSTRUMENT_HOST
-
INSTRUMENT
public static final RIType INSTRUMENT
-
MISSION
public static final RIType MISSION
-
VOLUME
public static final RIType VOLUME
-
DATA_SET
public static final RIType DATA_SET
-
DATA_SET_COLLECTION
public static final RIType DATA_SET_COLLECTION
-
-
Field Detail
-
PARENT
public static final String PARENT
- See Also:
- Constant Field Values
-
CHILD
public static final String CHILD
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RIType[] 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 (RIType c : RIType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RIType 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 nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
-