Package nl.esciencecenter.xenon
Enum XenonPropertyDescription.Type
- java.lang.Object
-
- java.lang.Enum<XenonPropertyDescription.Type>
-
- nl.esciencecenter.xenon.XenonPropertyDescription.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XenonPropertyDescription.Type>
- Enclosing class:
- XenonPropertyDescription
public static enum XenonPropertyDescription.Type extends java.lang.Enum<XenonPropertyDescription.Type>
This Type enumeration lists all possible types of properties recognized by Xenon.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
Properties of typeBOOLEAN
can be either"true"
or"false"
.DOUBLE
Properties of typeDOUBLE
can be converted into a 64-bit floating point number usingDouble.valueOf(String)
.INTEGER
Properties of typeINTEGER
can be converted into a 32-bit signed integer usingInteger.valueOf(String)
.LONG
Properties of typeLONG
can be converted into a 64-bit signed long usingLong.valueOf(String)
.NATURAL
Properties of typeNATURAL
may contain only positive values, including0
.SIZE
Properties of typeSIZE
can be converted into a 64-bit signed long usingLong.valueOf(String)
.STRING
Properties of typeSTRING
are directly stored in a String without conversion.
-
Constructor Summary
Constructors Modifier Constructor Description private
Type()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XenonPropertyDescription.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XenonPropertyDescription.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final XenonPropertyDescription.Type BOOLEAN
Properties of typeBOOLEAN
can be either"true"
or"false"
.
-
INTEGER
public static final XenonPropertyDescription.Type INTEGER
Properties of typeINTEGER
can be converted into a 32-bit signed integer usingInteger.valueOf(String)
.
-
LONG
public static final XenonPropertyDescription.Type LONG
Properties of typeLONG
can be converted into a 64-bit signed long usingLong.valueOf(String)
.
-
NATURAL
public static final XenonPropertyDescription.Type NATURAL
Properties of typeNATURAL
may contain only positive values, including0
. They will be converted into a 64-bit signed long usingLong.valueOf(String)
.
-
DOUBLE
public static final XenonPropertyDescription.Type DOUBLE
Properties of typeDOUBLE
can be converted into a 64-bit floating point number usingDouble.valueOf(String)
.
-
STRING
public static final XenonPropertyDescription.Type STRING
Properties of typeSTRING
are directly stored in a String without conversion.
-
SIZE
public static final XenonPropertyDescription.Type SIZE
Properties of typeSIZE
can be converted into a 64-bit signed long usingLong.valueOf(String)
. In addition, the postfixes"K"
,"M"
and"G"
may be used to multiply the value by1024
,1024*1024
, or1024*1024*1024
respectively.
-
-
Method Detail
-
values
public static XenonPropertyDescription.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XenonPropertyDescription.Type c : XenonPropertyDescription.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XenonPropertyDescription.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-