public class SimpleCommitContext extends java.lang.Object implements CommitContext
NAME
Constructor and Description |
---|
SimpleCommitContext() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String name)
Returns the value of the named attribute as an
Object ,
or null if no attribute of the given name exists. |
void |
remove(java.lang.String name)
Removes an attribute from this commit.
|
void |
set(java.lang.String name,
java.lang.Object value)
Stores an attribute related to this commit.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public void set(java.lang.String name, java.lang.Object value)
CommitContext
If the object passed in is null, the effect is the same as
calling CommitContext.remove(java.lang.String)
.
set
in interface CommitContext
name
- a String
specifying the name of the attributevalue
- the Object
to be storedpublic java.lang.Object get(java.lang.String name)
CommitContext
Object
,
or null
if no attribute of the given name exists.get
in interface CommitContext
name
- String
specifying the name of
the attributeObject
containing the value
of the attribute, or null
if the attribute does not existpublic void remove(java.lang.String name)
CommitContext
remove
in interface CommitContext
name
- a String
specifying
the name of the attribute to remove"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"