public enum BrAPITraitDataType extends Enum<BrAPITraitDataType> implements BrAPIEnum
Class of the scale, entries can be
\"Code\" - This scale class is exceptionally used to express complex traits. Code is a nominal scale that combines the expressions of the different traits composing the complex trait. For example a severity trait might be expressed by a 2 digit and 2 character code. The first 2 digits are the percentage of the plant covered by a fungus and the 2 characters refer to the delay in development, e.g. \"75VD\" means \"75 %\" of the plant is infected and the plant is very delayed.
\"Date\" - The date class is for events expressed in a time format, See ISO 8601
\"Duration\" - The Duration class is for time elapsed between two events expressed in a time format, e.g. days, hours, months
\"Nominal\" - Categorical scale that can take one of a limited and fixed number of categories. There is no intrinsic ordering to the categories
\"Numerical\" - Numerical scales express the trait with real numbers. The numerical scale defines the unit e.g. centimeter, ton per hectare, branches
\"Ordinal\" - Ordinal scales are scales composed of ordered categories
\"Text\" - A free text is used to express the trait.
| Enum Constant and Description |
|---|
AUDIO |
BARCODE |
BOOLEAN |
CATEGORICAL |
CODE |
COUNTER |
DATE |
DISEASE_RATING |
DURATION |
GNSS |
LOCATION |
MULTICAT |
NOMINAL |
NUMERIC |
NUMERICAL |
ORDINAL |
PERCENT |
PHOTO |
RUST_RATING |
TEXT |
USB_CAMERA |
ZEBRA_PRINTER |
| Modifier and Type | Method and Description |
|---|---|
static BrAPITraitDataType |
fromValue(String text) |
String |
getBrapiValue() |
String |
toString() |
static BrAPITraitDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrAPITraitDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrAPITraitDataType CODE
public static final BrAPITraitDataType DATE
public static final BrAPITraitDataType DURATION
public static final BrAPITraitDataType NOMINAL
public static final BrAPITraitDataType NUMERICAL
public static final BrAPITraitDataType ORDINAL
public static final BrAPITraitDataType TEXT
public static final BrAPITraitDataType NUMERIC
public static final BrAPITraitDataType CATEGORICAL
public static final BrAPITraitDataType MULTICAT
public static final BrAPITraitDataType PERCENT
public static final BrAPITraitDataType BOOLEAN
public static final BrAPITraitDataType PHOTO
public static final BrAPITraitDataType AUDIO
public static final BrAPITraitDataType COUNTER
public static final BrAPITraitDataType RUST_RATING
public static final BrAPITraitDataType DISEASE_RATING
public static final BrAPITraitDataType LOCATION
public static final BrAPITraitDataType GNSS
public static final BrAPITraitDataType ZEBRA_PRINTER
public static final BrAPITraitDataType USB_CAMERA
public static final BrAPITraitDataType BARCODE
public static BrAPITraitDataType[] values()
for (BrAPITraitDataType c : BrAPITraitDataType.values()) System.out.println(c);
public static BrAPITraitDataType 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 String toString()
toString in class Enum<BrAPITraitDataType>public static BrAPITraitDataType fromValue(String text)
public String getBrapiValue()
getBrapiValue in interface BrAPIEnumCopyright © 2023. All rights reserved.