Package gov.nasa.pds.label
Enum ProductType
- java.lang.Object
-
- java.lang.Enum<ProductType>
-
- gov.nasa.pds.label.ProductType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProductType>
public enum ProductType extends java.lang.Enum<ProductType>
Defines label product types, as enumeration constants. Not all PDS product types are distinguished by the object-access library. The valuePRODUCT_OTHERis used for all products not specially handled by the library.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRODUCT_BROWSEA PDS4 browse product.PRODUCT_BUNDLEA PDS4 bundle product.PRODUCT_COLLECTIONA PDS4 collection product.PRODUCT_DOCUMENTA PDS4 document product.PRODUCT_OBSERVATIONALA PDS4 observational product.PRODUCT_OTHERAnother product type not specifically handled by the object access library.PRODUCT_PDS3A PDS 3 version generic product.PRODUCT_THUMBNAILA PDS4 thumbnail product.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProductTypetypeForClass(java.lang.Class<? extends Product> clazz)Gets the product type for a PDS4 product class.static ProductTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProductType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRODUCT_PDS3
public static final ProductType PRODUCT_PDS3
A PDS 3 version generic product.
-
PRODUCT_OBSERVATIONAL
public static final ProductType PRODUCT_OBSERVATIONAL
A PDS4 observational product.
-
PRODUCT_BROWSE
public static final ProductType PRODUCT_BROWSE
A PDS4 browse product.
-
PRODUCT_THUMBNAIL
public static final ProductType PRODUCT_THUMBNAIL
A PDS4 thumbnail product.
-
PRODUCT_DOCUMENT
public static final ProductType PRODUCT_DOCUMENT
A PDS4 document product.
-
PRODUCT_BUNDLE
public static final ProductType PRODUCT_BUNDLE
A PDS4 bundle product.
-
PRODUCT_COLLECTION
public static final ProductType PRODUCT_COLLECTION
A PDS4 collection product.
-
PRODUCT_OTHER
public static final ProductType PRODUCT_OTHER
Another product type not specifically handled by the object access library.
-
-
Method Detail
-
values
public static ProductType[] 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 (ProductType c : ProductType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProductType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
typeForClass
public static ProductType typeForClass(java.lang.Class<? extends Product> clazz)
Gets the product type for a PDS4 product class.- Parameters:
clazz- the product class- Returns:
- the product type enumeration constant for that product class
-
-