javacardx.annotations
Annotation Type StringDef


@Retention(value=SOURCE)
public @interface StringDef

Defines a character string constant.

This annotation is used within a StringPool annotation to define a single character string constant.

A character string constant can be defined in one of the two following ways:

This annotation is processed at compile-time and is discarded by the compiler. That is, it is not retained within the compiled class file.

Since:
Java Card Classic 3.0.4
See Also:
StringPool

Required Element Summary
 java.lang.String name
          The name of the defined string constant.
 
Optional Element Summary
 java.lang.String reference
          The fully-qualified name of the referenced string constant.
 java.lang.String value
          The literal value of the defined string constant.
 

Element Detail

name

public abstract java.lang.String name
The name of the defined string constant.

value

public abstract java.lang.String value
The literal value of the defined string constant.

This attribute is exclusive of the reference() attribute. The annotation processor will fail with an error message if both the value() and reference() attributes are defined.

Default:
""

reference

public abstract java.lang.String reference
The fully-qualified name of the referenced string constant.

This attribute is exclusive of the value() attribute. The annotation processor will fail with an error message if both the value() and reference() attributes are defined.

Default:
""


Copyright © 1998, 2011, Oracle and/or its affiliates. All rights reserved. Version 3.0.4