public abstract class ScannedAnnotation extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
name
The fully qualified class name
|
protected Map<String,Object> |
values
The annotation values.
|
Constructor and Description |
---|
ScannedAnnotation(String name,
Map<String,Object> values)
Create a new description
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue(String name,
boolean defaultValue)
Get a boolean value of the annotation
|
String |
getEnumValue(String name,
String defaultValue)
Get an enumeration value of the annotation
|
int |
getIntegerValue(String name,
int defaultValue)
Get an integer value of the annotation
|
long |
getLongValue(String name,
long defaultValue)
Get a long value of the annotation
|
String |
getName()
Get the fully qualified class name of the annotation.
|
String |
getSimpleName()
Get the simple name of the annotation
|
String |
getStringValue(String name,
String defaultValue)
Get a string value of the annotation
|
Object |
getValue(String paramName)
Get a property value of the annotation.
|
boolean |
hasValue(String paramName)
Check if a value exists for this annotation.
|
String |
toString() |
protected final String name
public String getName()
public String getSimpleName()
public boolean hasValue(String paramName)
null
.paramName
- The property nametrue
If a value exists.public Object getValue(String paramName)
paramName
- The property name.null
public boolean getBooleanValue(String name, boolean defaultValue)
name
- The property namedefaultValue
- A default value if the property is not setpublic int getIntegerValue(String name, int defaultValue)
name
- The property namedefaultValue
- A default value if the property is not setpublic long getLongValue(String name, long defaultValue)
name
- The property namedefaultValue
- A default value if the property is not setpublic String getStringValue(String name, String defaultValue)
name
- The property namedefaultValue
- A default value if the property is not setpublic String getEnumValue(String name, String defaultValue)
name
- The property namedefaultValue
- A default value if the property is not setCopyright © 2006–2023 The Apache Software Foundation. All rights reserved.