public interface IContext
| Modifier and Type | Method and Description |
|---|---|
void |
clearAnnotations()
Removes all annotations from this context.
|
void |
clearProperties()
Removes all properties from this context.
|
<A extends IAnnotation> |
getAnnotation(Class<A> type)
Gets the annotation of a given type for this context.
|
boolean |
getBoolean(String name)
Gets a boolean property of this context.
|
int |
getInteger(String name)
Gets an integer property of this context.
|
Object |
getObject(String name)
Gets an object property of this context.
|
Map<String,Object> |
getProperties()
Gets the map of the existing properties for this context.
|
String |
getString(String name)
Gets a string property of this context.
|
void |
removeProperty(String name)
Removes a given property from this context.
|
void |
setAnnotation(IAnnotation annotation)
Sets an annotation for this context.
|
void |
setBoolean(String name,
boolean value)
Sets a boolean property for this context.
|
void |
setInteger(String name,
int value)
Sets an integer property for this context.
|
void |
setObject(String name,
Object value)
Sets an object property for this context.
|
void |
setString(String name,
String value)
Sets a string property for this context.
|
String getString(String name)
name - the name of the property to retrieve.void setString(String name, String value)
name - the name of the property to set.value - the value to set.boolean getBoolean(String name)
name - the name of the property to retrieve.void setBoolean(String name, boolean value)
name - the name of the property to set.value - the value to set.int getInteger(String name)
name - the name of the property to retrieve.void setInteger(String name, int value)
name - the name of the property to set.value - the value to set.Object getObject(String name)
name - the name of the property to retrieve.void setObject(String name, Object value)
name - the name of the property to set.value - the value to set.void removeProperty(String name)
name - the name of the property to remove.Map<String,Object> getProperties()
void clearProperties()
<A extends IAnnotation> A getAnnotation(Class<A> type)
A - the class type.type - the type of the annotation to retrieve.void setAnnotation(IAnnotation annotation)
annotation - the annotation to set. If one of this type
already exists it will be overwritten.void clearAnnotations()
Copyright © 2021. All rights reserved.