|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TargetType>
nl.liacs.subdisc.TargetType
public enum TargetType
TargetType contains all available TargetTypes.
Enum Constant Summary | |
---|---|
DOUBLE_CORRELATION
|
|
DOUBLE_REGRESSION
|
|
MULTI_BINARY_CLASSIFICATION
|
|
MULTI_LABEL
|
|
SINGLE_NOMINAL
|
|
SINGLE_NUMERIC
|
|
SINGLE_ORDINAL
|
Field Summary | |
---|---|
java.lang.String |
GUI_TEXT
For each TargetType, this is the text that will be used in the GUI. |
Method Summary | |
---|---|
static TargetType |
getDefault()
Returns the default TargetType. |
static TargetType |
getTargetType(java.lang.String theType)
Returns the TargetType corresponding to the String
parameter. |
static boolean |
hasBaseModel(TargetType theType)
|
static boolean |
hasMiscField(TargetType theType)
|
static boolean |
hasMultiTargets(TargetType theType)
|
static boolean |
hasSecondaryTarget(TargetType theType)
|
static boolean |
hasTargetAttribute(TargetType theType)
|
static boolean |
hasTargetValue(TargetType theType)
|
static boolean |
isImplemented(TargetType theType)
|
java.lang.String |
toString()
Returns a friendly String |
static TargetType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TargetType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TargetType SINGLE_NOMINAL
public static final TargetType SINGLE_NUMERIC
public static final TargetType SINGLE_ORDINAL
public static final TargetType DOUBLE_REGRESSION
public static final TargetType DOUBLE_CORRELATION
public static final TargetType MULTI_LABEL
public static final TargetType MULTI_BINARY_CLASSIFICATION
Field Detail |
---|
public final java.lang.String GUI_TEXT
String
that will be returned by the
toString() method.
Method Detail |
---|
public static TargetType[] values()
for (TargetType c : TargetType.values()) System.out.println(c);
public static TargetType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static TargetType getTargetType(java.lang.String theType)
String
parameter. This method is case insensitive.
theType
- the String
corresponding to a TargetType.
String
parameter, or the default TargetType SINGLE_NOMINAL
if no
corresponding TargetType can not be found.public static TargetType getDefault()
public java.lang.String toString()
EnumInterface
String to show in the GUI.
- Specified by:
toString
in interface EnumInterface
- Overrides:
toString
in class java.lang.Enum<TargetType>
- Returns:
- the text
String
presented to the end user.
public static boolean isImplemented(TargetType theType)
public static boolean hasSecondaryTarget(TargetType theType)
public static boolean hasMultiTargets(TargetType theType)
public static boolean hasMiscField(TargetType theType)
public static boolean hasTargetAttribute(TargetType theType)
public static boolean hasTargetValue(TargetType theType)
public static boolean hasBaseModel(TargetType theType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |