|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AttributeType>
org.osgi.service.metatype.annotations.AttributeType
public enum AttributeType
Attribute types for the AttributeDefinition annotation.
AttributeDefinition.type()| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
toString()
|
static AttributeType |
valueOf(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 |
|---|
clone, compareTo, equals, finalize, 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 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.
| Method Detail |
|---|
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<AttributeType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||