public class VariablesMap extends Object implements Map<String,TypedValue>, DebugDumpable
INDENT_STRING
Constructor and Description |
---|
VariablesMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
static VariablesMap |
create(PrismContext prismContext,
Object... parameters)
Expects name-value-definition triples.
|
String |
debugDump(int indent) |
String |
dumpSingleLine() |
static VariablesMap |
emptyMap() |
Set<Map.Entry<String,TypedValue>> |
entrySet() |
boolean |
equals(Object o) |
protected void |
fillIn(PrismContext prismContext,
Object... parameters)
Expects name-value-definition triples.
|
String |
formatVariables() |
TypedValue |
get(Object key) |
Collection<String> |
getAliases(String key) |
String |
getAliasResolution(String key) |
int |
hashCode() |
boolean |
isAlias(String key) |
boolean |
isEmpty() |
Set<String> |
keySet() |
<T> TypedValue |
put(String key,
Object value,
Class<T> typeClass)
Note: Type of the value should really be Object and not T.
|
<D extends ItemDefinition> |
put(String key,
Object value,
D definition) |
TypedValue |
put(String key,
TypedValue typedValue) |
void |
putAll(Map<? extends String,? extends TypedValue> m) |
void |
putAll(VariablesMap m) |
<T> TypedValue<List<T>> |
putList(String key,
List<T> list)
Convenience method to put multivalue variables (lists).
|
<O extends ObjectType> |
putObject(String key,
O objectType,
Class<O> expectedClass)
Convenience method to put objects with definition.
|
<O extends ObjectType> |
putObject(String key,
PrismObject<O> object,
Class<O> expectedClass)
Convenience method to put objects with definition.
|
void |
registerAlias(String alias,
String realName) |
void |
registerAliasesFrom(VariablesMap map)
Use only if you previously register all variables from this map!
|
TypedValue |
remove(Object key) |
int |
size() |
String |
toString() |
void |
unregisterAlias(String alias) |
Collection<TypedValue> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
debugDump, debugDumpLazily, debugDumpLazily
public int size()
size
in interface Map<String,TypedValue>
public boolean isEmpty()
isEmpty
in interface Map<String,TypedValue>
public boolean containsKey(Object key)
containsKey
in interface Map<String,TypedValue>
public boolean containsValue(Object value)
containsValue
in interface Map<String,TypedValue>
public TypedValue get(Object key)
get
in interface Map<String,TypedValue>
public TypedValue put(String key, TypedValue typedValue)
put
in interface Map<String,TypedValue>
public void registerAliasesFrom(VariablesMap map)
public void unregisterAlias(String alias)
public <D extends ItemDefinition> TypedValue put(String key, Object value, D definition)
public <T> TypedValue put(String key, Object value, Class<T> typeClass)
public <O extends ObjectType> TypedValue<O> putObject(String key, O objectType, Class<O> expectedClass)
public <O extends ObjectType> TypedValue<O> putObject(String key, PrismObject<O> object, Class<O> expectedClass)
public <T> TypedValue<List<T>> putList(String key, List<T> list)
public TypedValue remove(Object key)
remove
in interface Map<String,TypedValue>
public void putAll(Map<? extends String,? extends TypedValue> m)
putAll
in interface Map<String,TypedValue>
public void putAll(VariablesMap m)
public void clear()
clear
in interface Map<String,TypedValue>
@NotNull public Set<String> keySet()
keySet
in interface Map<String,TypedValue>
@NotNull public Collection<TypedValue> values()
values
in interface Map<String,TypedValue>
@NotNull public Set<Map.Entry<String,TypedValue>> entrySet()
entrySet
in interface Map<String,TypedValue>
public static VariablesMap create(PrismContext prismContext, Object... parameters)
protected void fillIn(PrismContext prismContext, Object... parameters)
public static VariablesMap emptyMap()
public boolean equals(Object o)
public int hashCode()
public String formatVariables()
@NotNull public Collection<String> getAliases(String key)
public boolean isAlias(String key)
public String dumpSingleLine()
public String debugDump(int indent)
debugDump
in interface DebugDumpable
Copyright © 2021 Evolveum. All rights reserved.