public class SimpleCommitContext extends Object implements CommitContext
NAME| Constructor and Description |
|---|
SimpleCommitContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String name)
Returns the value of the named attribute as an
Object,
or null if no attribute of the given name exists. |
void |
remove(String name)
Removes an attribute from this commit.
|
void |
set(String name,
Object value)
Stores an attribute related to this commit.
|
String |
toString() |
public void set(String name, Object value)
CommitContextIf the object passed in is null, the effect is the same as
calling CommitContext.remove(java.lang.String).
set in interface CommitContextname - a String specifying the name of the attributevalue - the Object to be storedpublic Object get(String name)
CommitContextObject,
or null if no attribute of the given name exists.get in interface CommitContextname - String specifying the name of
the attributeObject containing the value
of the attribute, or null if the attribute does not existpublic void remove(String name)
CommitContextremove in interface CommitContextname - a String specifying
the name of the attribute to removeCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.