public enum Direction extends Enum<Direction> implements SimpleDatatype<String>, NlsObject
| Enum Constant and Description |
|---|
EAST
Direction to the east (right).
|
NORTH
Direction the the north (up/top).
|
NORTH_EAST
Direction to the north-east (up/top and right).
|
NORTH_WEST
Direction to the north-west (up/top and left).
|
SOUTH
Direction to the south (down/bottom).
|
SOUTH_EAST
Direction to the south-east (down/bottom and right).
|
SOUTH_WEST
Direction to the south-west (down/bottom and left).
|
WEST
Direction the the west (left).
|
| Modifier and Type | Field and Description |
|---|---|
private String |
title |
private String |
value |
KEY_ANNOTATION, KEY_ARGUMENT, KEY_CAPACITY, KEY_CONTAINER, KEY_DEFAULT, KEY_DIRECTORY, KEY_ERROR, KEY_EXISTING, KEY_EXPECTED, KEY_FILE, KEY_FUNCTION, KEY_ID, KEY_KEY, KEY_LOCATION, KEY_MAX, KEY_MIN, KEY_MODE, KEY_NAME, KEY_OBJECT, KEY_OPERAND, KEY_OPERATION, KEY_OPTION, KEY_PATH, KEY_PROPERTY, KEY_QUERY, KEY_RESOURCE, KEY_SIZE, KEY_SOURCE, KEY_TARGET_TYPE, KEY_TITLE, KEY_TYPE, KEY_URI, KEY_USER, KEY_VALUE| Modifier and Type | Method and Description |
|---|---|
private static NlsBundleUtilCoreRoot |
getBundle() |
String |
getValue()
This method returns the raw value of this datatype.
|
boolean |
isToEast() |
boolean |
isToNorth() |
boolean |
isToSouth() |
boolean |
isToWest() |
String |
toString()
|
static Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOftoNlsMessagepublic static final Direction SOUTH
public static final Direction EAST
public static final Direction WEST
public static final Direction NORTH
public static final Direction SOUTH_EAST
public static final Direction SOUTH_WEST
public static final Direction NORTH_EAST
public static final Direction NORTH_WEST
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 getValue()
SimpleDatatypeString
, Character, Boolean, any type of Number, any type of java.time.LocalDate, etc.).getValue in interface AttributeReadValue<String>getValue in interface SimpleDatatype<String>public String toString()
DatatypeString representation of this Datatype. While the general contract of
Object.toString() is very weak and mainly used for debugging, the contract here is very strong. The
returned String has to be suitable for end-users and official output to any kind of sink. NlsMessage for
this purpose and implement NlsObject if you want to support I18N/L10N.private static NlsBundleUtilCoreRoot getBundle()
NlsBundleUtilCoreRoot.public boolean isToEast()
true if pointing to the east (EAST, SOUTH_EAST, or NORTH_EAST),
false otherwise.public boolean isToWest()
true if pointing to the west (WEST, SOUTH_WEST, or NORTH_WEST),
false otherwise.public boolean isToSouth()
true if pointing to the south (SOUTH, SOUTH_EAST, or SOUTH_WEST),
false otherwise.public boolean isToNorth()
true if pointing to the north (NORTH, NORTH_EAST, or NORTH_WEST),
false otherwise.Copyright © 2001–2016 mmm-Team. All rights reserved.