|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AttributeType>
nl.liacs.subdisc.AttributeType
public enum AttributeType
AttributeType contains all available AttributeTypes.
| Enum Constant Summary | |
|---|---|
BINARY
|
|
NOMINAL
|
|
NUMERIC
|
|
ORDINAL
|
|
| Field Summary | |
|---|---|
java.lang.String |
DEFAULT_MISSING_VALUE
The default missing value for each AttributeType. |
| Method Summary | |
|---|---|
static AttributeType |
getAttributeType(java.lang.String theType)
Returns the AttributeType corresponding to the String
parameter. |
static AttributeType |
getDefault()
Returns the default AttributeType. |
static boolean |
isValidBinaryFalseValue(java.lang.String theBooleanValue)
Returns whether the String parameter is considered to
represent a valid boolean value of false |
static boolean |
isValidBinaryTrueValue(java.lang.String theBooleanValue)
Returns whether the String parameter is considered to
represent a valid boolean value of true |
java.lang.String |
toString()
Returns a friendly String |
static AttributeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AttributeType[] |
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 AttributeType NOMINAL
public static final AttributeType NUMERIC
public static final AttributeType ORDINAL
public static final AttributeType BINARY
| Field Detail |
|---|
public final java.lang.String DEFAULT_MISSING_VALUE
Column.setNewMissingValue().
| Method Detail |
|---|
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType 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 AttributeType getAttributeType(java.lang.String theType)
String
parameter. If the corresponding AttributeType can not be found, the
default AttributeType NOMINAL is returned. This method is case
insensitive.
theType - the String corresponding to an
AtrtibuteType.
String
parameter, or AttributeType NOMINAL if no corresponding AttributeType
is found.public static boolean isValidBinaryTrueValue(java.lang.String theBooleanValue)
String parameter is considered to
represent a valid boolean value of true. This
method is case insensitive.
- Parameters:
theBooleanValue - String to check.
- Returns:
true if the String parameter is
considered to represent a valid boolean value of
true, false otherwise.
public static boolean isValidBinaryFalseValue(java.lang.String theBooleanValue)
String parameter is considered to
represent a valid boolean value of false. This
method is case insensitive.
- Parameters:
theBooleanValue - String to check.
- Returns:
true if the String parameter is
considered to represent a valid boolean value of
false, false otherwise.
public static AttributeType getDefault()
public java.lang.String toString()
EnumInterfaceString to show in the GUI.
- Specified by:
toString in interface EnumInterface- Overrides:
toString in class java.lang.Enum<AttributeType>
- Returns:
- the text
String presented to the end user.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||