Class AnnotationParameter
java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.generator.annotation.AnnotationParameter
Data structure to represent a parameter of a Java annotation. When implementing the
AnnotationStrategy
interface, you add instances of this class to AnnotationDefinition
instances. The VDM generator uses this to
add parameters to annotations while generating Java code. NOTE: Only primitive types, String
, Enum
, and Class
are supported.-
Constructor Summary
ConstructorDescriptionAnnotationParameter
(String name, boolean value) Creates an annotation parameter with aboolean
value.AnnotationParameter
(String name, byte value) Creates an annotation parameter with abyte
value.AnnotationParameter
(String name, char value) Creates an annotation parameter with achar
value.AnnotationParameter
(String name, double value) Creates an annotation parameter with adouble
value.AnnotationParameter
(String name, float value) Creates an annotation parameter with afloat
value.AnnotationParameter
(String name, int value) Creates an annotation parameter with anint
value.AnnotationParameter
(String name, long value) Creates an annotation parameter with along
value.AnnotationParameter
(String name, short value) Creates an annotation parameter with ashort
value.AnnotationParameter
(String name, Class<?> value) Creates an annotation parameter with aClass
value.AnnotationParameter
(String name, Enum<?> value) Creates an annotation parameter with anEnum
value.AnnotationParameter
(String name, String value) Creates an annotation parameter with aString
value. -
Method Summary
-
Constructor Details
-
AnnotationParameter
Creates an annotation parameter with aClass
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with anEnum
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with aString
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with achar
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with abyte
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with aboolean
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with adouble
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with afloat
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with along
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with anint
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
AnnotationParameter
Creates an annotation parameter with ashort
value.- Parameters:
name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use "value".value
- The value to use in the parameter of the annotation itself.
-
-
Method Details
-
getName
-
getValue
-