public enum Type extends Enum<Type>
<value>.| Enum Constant and Description |
|---|
BOOLEAN |
FUZZY_NUMBER |
INTEGER |
INTERVAL |
LABEL |
NA
Represents both the type of the singleton NA, and the singleton itself
|
RATIONAL |
REAL |
VALUED_LABEL |
| Modifier and Type | Method and Description |
|---|---|
String |
getTag()
Return the tag associated to this xmcda type.
|
static boolean |
isBoolean(Type type)
Returns
true if this type equals to BOOLEAN. |
static boolean |
isFuzzyNumber(Type type)
Returns
true if this type equals to FUZZY_NUMBER. |
static boolean |
isInteger(Type type)
Returns
true if this type equals to INTEGER. |
static boolean |
isInterval(Type type)
Returns
true if this type equals to INTERVAL. |
static boolean |
isLabel(Type type)
Returns
true if this type equals to LABEL. |
static boolean |
isNA(Type type)
Returns
true if this type equals to NA. |
static boolean |
isRational(Type type)
Returns
true if this type equals to RATIONAL. |
static boolean |
isReal(Type type)
Returns
true if this type equals to REAL. |
static boolean |
isValuedLabel(Type type)
Returns
true if this type equals to VALUED_LABEL. |
static Type |
of(Object value)
Return the XMCDA type associated to the supplied value (
INTEGER for integers, etc.) |
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type INTEGER
public static final Type REAL
public static final Type LABEL
public static final Type BOOLEAN
public static final Type NA
public static final Type RATIONAL
public static final Type INTERVAL
public static final Type FUZZY_NUMBER
public static final Type VALUED_LABEL
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 getTag()
public static Type of(Object value) throws IllegalStateException, NullPointerException
INTEGER for integers, etc.)value - the value for which the XMCDA type is requested (it cannot be null)IllegalArgumentExceptionNullPointerExceptionIllegalStateExceptionto get the associated XMCDA tagpublic static boolean isInteger(Type type)
true if this type equals to INTEGER.true if this object is #INTEGERpublic static boolean isReal(Type type)
true if this type equals to REAL.true if this object is REALpublic static boolean isLabel(Type type)
true if this type equals to LABEL.true if this object is LABELpublic static boolean isBoolean(Type type)
true if this type equals to BOOLEAN.true if this object is BOOLEANpublic static boolean isNA(Type type)
true if this type equals to NA.true if this object is NApublic static boolean isRational(Type type)
true if this type equals to RATIONAL.true if this object is RATIONAL.public static boolean isInterval(Type type)
true if this type equals to INTERVAL.true if this object is INTERVALpublic static boolean isFuzzyNumber(Type type)
true if this type equals to FUZZY_NUMBER.true if this object is FUZZY_NUMBERpublic static boolean isValuedLabel(Type type)
true if this type equals to VALUED_LABEL.true if this object is VALUED_LABELCopyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.