public enum AttributeType extends java.lang.Enum<AttributeType>
AttributeDefinition annotation.AttributeDefinition.type()| Enum Constant and Description |
|---|
BOOLEAN
The
Boolean type. |
BYTE
The
Byte type. |
CHARACTER
The
Character type. |
DOUBLE
The
Double type. |
FLOAT
The
Float type. |
INTEGER
The
Integer type. |
LONG
The
Long type. |
PASSWORD
The
Password type. |
SHORT
The
Short type. |
STRING
The
String type. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
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.
|
public static final AttributeType STRING
String type.
Attributes of this type should be stored as String,
List<String> or String[] objects, depending on the
cardinality value.
public static final AttributeType LONG
Long type.
Attributes of this type should be stored as Long,
List<Long> or long[] objects, depending on the
AttributeDefinition#cardinality() cardinality value.
public static final AttributeType INTEGER
Integer type.
Attributes of this type should be stored as Integer,
List<Integer> or int[] objects, depending on the
AttributeDefinition#cardinality() cardinality value.
public static final AttributeType SHORT
Short type.
Attributes of this type should be stored as Short,
List<Short> or short[] objects, depending on the
AttributeDefinition#cardinality() cardinality value.
public static final AttributeType CHARACTER
Character type.
Attributes of this type should be stored as Character,
List<Character> or char[] objects, depending on the
AttributeDefinition#cardinality() cardinality value.
public static final AttributeType BYTE
Byte type.
Attributes of this type should be stored as Byte,
List<Byte> or byte[] objects, depending on the
AttributeDefinition#cardinality() cardinality value.
public static final AttributeType DOUBLE
Double type.
Attributes of this type should be stored as Double,
List<Double> or double[] objects, depending on the
AttributeDefinition#cardinality() cardinality value.
public static final AttributeType FLOAT
Float type.
Attributes of this type should be stored as Float,
List<Float> or float[] objects, depending on the
AttributeDefinition#cardinality() cardinality value.
public static final AttributeType BOOLEAN
Boolean type.
Attributes of this type should be stored as Boolean,
List<Boolean> or boolean[] objects depending on
AttributeDefinition#cardinality() cardinality.
public static final AttributeType PASSWORD
Password type.
Attributes of this type must be stored as String,
List<String> or String[] objects depending on
cardinality.
A Password must be treated as a String but the type can
be used to disguise the information when displayed to a user to prevent
it from being seen.
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 namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<AttributeType>Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0