Interface ShadowAssociationTypeParticipantDefinitionConfigItem<PT extends ShadowAssociationTypeParticipantDefinitionType>
- All Known Implementing Classes:
ShadowAssociationTypeObjectDefinitionConfigItem
,ShadowAssociationTypeSubjectDefinitionConfigItem
public interface ShadowAssociationTypeParticipantDefinitionConfigItem<PT extends ShadowAssociationTypeParticipantDefinitionType>
-
Method Summary
Modifier and TypeMethodDescription<X extends ConfigurationItem<T>>
Xdefault void
checkNamespace
(@NotNull QName name, String expectedNamespace) <X extends Serializable & Cloneable,
CI extends ConfigurationItem<X>>
CIdefault void
configCheck
(boolean value, String template, Object... arguments) Checks the value, and if it's `false`, emits aConfigurationException
.default @NotNull ConfigurationException
configException
(String template, Object... arguments) default @NotNull ConfigurationException
configException
(Throwable cause, String template, Object... arguments) default <V> V
configNonNull
(V value, String template, Object... arguments) AsconfigCheck(boolean, String, Object...)
, but checks that the value is not null.@NotNull String
default @Nullable ResourceObjectAssociationNewConfigItem
default @Nullable ItemName
This is the name under which we declare the association.default @NotNull String
getLocalPart
(@NotNull QName name, String expectedNamespace) default @Nullable ItemName
This is the existing (native/simulated) association name we are referring to.default @NotNull Collection<? extends ResourceObjectTypeIdentification>
default boolean
isRelevantForItem
(@NotNull ItemName itemName) default <C extends Collection<?>>
Cdefault <C extends Collection<?>>
Cdefault <V> V
Even more shortened version.@NotNull ConfigurationItemOrigin
origin()
SeeConfigurationItem.origin
.default <C> C
single
(Collection<? extends C> collection, String template, Object... arguments) default @NotNull ItemName
singleNameRequired
(ItemPathType name, Object itemDesc) value()
SeeConfigurationItem.value
.
-
Method Details
-
getTypeIdentifiers
@NotNull default @NotNull Collection<? extends ResourceObjectTypeIdentification> getTypeIdentifiers() throws ConfigurationException- Throws:
ConfigurationException
-
getDeclaringItemName
This is the name under which we declare the association. It may be the same as existing (native/simulated) association, or it can be a virtual one.- Throws:
ConfigurationException
-
getReferencedItemName
This is the existing (native/simulated) association name we are referring to.- Throws:
ConfigurationException
-
isRelevantForItem
default boolean isRelevantForItem(@NotNull @NotNull ItemName itemName) throws ConfigurationException - Throws:
ConfigurationException
-
getAssociation
-
value
SeeConfigurationItem.value
. -
origin
SeeConfigurationItem.origin
. -
as
-
child
@Contract("null, _, _ -> null; !null, _, _ -> !null") <X extends Serializable & Cloneable,CI extends ConfigurationItem<X>> CI child(@Nullable X value, @NotNull @NotNull Class<CI> clazz, Object... pathSegments) -
fullDescription
-
configCheck
@Contract("false, _, _ -> fail") default void configCheck(boolean value, String template, Object... arguments) throws ConfigurationException Checks the value, and if it's `false`, emits aConfigurationException
. Note thatConfigurationItem.DESC
can be used as a placeholder forfullDescription()
in the `arguments`.- Throws:
ConfigurationException
-
checkNamespace
default void checkNamespace(@NotNull @NotNull QName name, String expectedNamespace) throws ConfigurationException - Throws:
ConfigurationException
-
getLocalPart
@NotNull default @NotNull String getLocalPart(@NotNull @NotNull QName name, String expectedNamespace) throws ConfigurationException - Throws:
ConfigurationException
-
configException
@NotNull default @NotNull ConfigurationException configException(Throwable cause, String template, Object... arguments) -
configException
@NotNull default @NotNull ConfigurationException configException(String template, Object... arguments) -
configNonNull
@Contract("null, _, _ -> fail") @NotNull default <V> V configNonNull(V value, String template, Object... arguments) throws ConfigurationException AsconfigCheck(boolean, String, Object...)
, but checks that the value is not null.- Throws:
ConfigurationException
-
nonNull
@Contract("null, _ -> fail") @NotNull default <V> V nonNull(V value, Object itemDesc) throws ConfigurationException Even more shortened version.- Throws:
ConfigurationException
-
nonEmpty
@NotNull default <C extends Collection<?>> C nonEmpty(C collection, Object itemDescription) throws ConfigurationException - Throws:
ConfigurationException
-
nonEmpty
@NotNull default <C extends Collection<?>> C nonEmpty(C collection, String template, Object... arguments) throws ConfigurationException - Throws:
ConfigurationException
-
singleNameRequired
@NotNull default @NotNull ItemName singleNameRequired(ItemPathType name, Object itemDesc) throws ConfigurationException - Throws:
ConfigurationException
-
single
@Nullable default <C> C single(Collection<? extends C> collection, String template, Object... arguments) throws ConfigurationException - Throws:
ConfigurationException
-