Class ShadowAssociationsMap
java.lang.Object
com.evolveum.midpoint.schema.util.ShadowAssociationsMap
- All Implemented Interfaces:
Serializable
,Map<QName,
ShadowAssociationsMap.RawAssociation>
@TestOnly
@Experimental
public class ShadowAssociationsMap
extends Object
implements Map<QName,ShadowAssociationsMap.RawAssociation>, Serializable
Provides a nicer API for working with the shadow associations. Currently, it provides a read-only access:
the content of the `associations` container is parsed at the object construction time.
Not thread-safe.
NOTE: Use only when the shadow may be "raw". Otherwise, use the
ShadowAssociationsContainer
instead.
TODO Decide on the fate of this class. Maybe it's not that useful as it originally seemed to be.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AsShadowReferenceAttribute
but potentially raw, i.e. without definitions. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) @NotNull Set<Map.Entry<QName,
ShadowAssociationsMap.RawAssociation>> entrySet()
@NotNull Collection<ShadowAssociationValueType>
boolean
isEmpty()
keySet()
static @NotNull ShadowAssociationsMap
of
(@NotNull PrismObject<ShadowType> shadow) static @NotNull ShadowAssociationsMap
of
(@NotNull ShadowType shadow) static @NotNull ShadowAssociationsMap
of
(@Nullable ShadowAssociationsType associationsBean) @Nullable ShadowAssociationsMap.RawAssociation
put
(QName key, ShadowAssociationsMap.RawAssociation value) void
putAll
(@NotNull Map<? extends QName, ? extends ShadowAssociationsMap.RawAssociation> m) int
size()
values()
int
TODO better name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
of
@NotNull public static @NotNull ShadowAssociationsMap of(@Nullable @Nullable ShadowAssociationsType associationsBean) -
of
-
of
@NotNull public static @NotNull ShadowAssociationsMap of(@NotNull @NotNull PrismObject<ShadowType> shadow) -
size
public int size()- Specified by:
size
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
containsKey
- Specified by:
containsKey
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
containsValue
- Specified by:
containsValue
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
getValues
@NotNull public @NotNull Collection<ShadowAssociationValueType> getValues(@Nullable @Nullable QName key) -
get
- Specified by:
get
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
put
@Nullable public @Nullable ShadowAssociationsMap.RawAssociation put(QName key, ShadowAssociationsMap.RawAssociation value) - Specified by:
put
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
remove
- Specified by:
remove
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
putAll
public void putAll(@NotNull @NotNull Map<? extends QName, ? extends ShadowAssociationsMap.RawAssociation> m) - Specified by:
putAll
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
keySet
- Specified by:
keySet
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
values
- Specified by:
values
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
entrySet
- Specified by:
entrySet
in interfaceMap<QName,
ShadowAssociationsMap.RawAssociation>
-
valuesCount
public int valuesCount()TODO better name.
-