public class DefaultContext extends Object implements Context
Context implementation.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultContext.Builder |
| Constructor and Description |
|---|
DefaultContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String name,
Object value)
Add attribute identified by
name with value. |
void |
clearAttributes()
Clear all attributes in prepared context;
|
Object |
getAttribute(String name)
Get value of attribute named by
name |
Set<String> |
getAttributeNames()
Get list of set attribute names.
|
Object |
removeAttribute(String name)
Remove attribute named by
name |
public Object getAttribute(String name)
ContextnamegetAttribute in interface Contextpublic void addAttribute(String name, Object value)
Contextname with value.addAttribute in interface Contextname - - attribute namevalue - - attribute valuepublic Set<String> getAttributeNames()
ContextgetAttributeNames in interface Contextpublic Object removeAttribute(String name)
ContextnameremoveAttribute in interface Contextname - - attribute namepublic void clearAttributes()
ContextclearAttributes in interface ContextCopyright © 2018. All rights reserved.