class TestDependencyGraphTransformationContext extends java.lang.Object implements DependencyGraphTransformationContext
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Object,java.lang.Object> |
map |
private RepositorySystemSession |
session |
| Constructor and Description |
|---|
TestDependencyGraphTransformationContext(RepositorySystemSession session) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.Object key)
Gets a keyed value from the context.
|
RepositorySystemSession |
getSession()
Gets the repository system session during which the graph transformation happens.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts a keyed value into the context.
|
java.lang.String |
toString() |
private final RepositorySystemSession session
private final java.util.Map<java.lang.Object,java.lang.Object> map
TestDependencyGraphTransformationContext(RepositorySystemSession session)
public RepositorySystemSession getSession()
DependencyGraphTransformationContextgetSession in interface DependencyGraphTransformationContextnull.public java.lang.Object get(java.lang.Object key)
DependencyGraphTransformationContextget in interface DependencyGraphTransformationContextkey - The key used to query the value, must not be null.null if none.public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
DependencyGraphTransformationContextput in interface DependencyGraphTransformationContextkey - The key used to store the value, must not be null.value - The value to store, may be null to remove the mapping.null if none.public java.lang.String toString()
toString in class java.lang.Object