public interface DataAssociationAgent
DataAssociating
,
DataAssociationHandler
Modifier and Type | Field and Description |
---|---|
static SpecialistType<DataAssociationAgent> |
TYPE
Agent providing methods regarding data association.
|
Modifier and Type | Method and Description |
---|---|
<T,A> Set<A> |
associate(DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token,
T object)
Determines the associations for the specified object and association namespace.
|
Set<String> |
associate(String namespace,
Object object)
Determines the associations for the specified object and association namespace.
|
<T,A> Set<String> |
associateIds(DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> type,
T object)
Determines the associations for the specified object and association namespace.
|
<T,A> A |
getFromId(DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token,
String id)
Determines the association object belonging to the specified namespace and association identifier.
|
<T,A> String |
getId(DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token,
A association)
Returns the identifier of the specified data association.
|
String |
getId(String namespace,
Object association)
Returns the identifier of the specified data association.
|
static final SpecialistType<DataAssociationAgent> TYPE
@Nullable Set<String> associate(@NotNull String namespace, @NotNull Object object)
namespace
- The namespace of the requested data association.object
- The object to determine the association from.null
@Nullable <T,A> Set<A> associate(@NotNull DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token, @NotNull T object)
T
- The object type.A
- The association object type.token
- The type of the requested data association.object
- The object to determine the association from.null
@Nullable <T,A> Set<String> associateIds(@NotNull DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> type, @NotNull T object)
T
- The object type.A
- The association object type.type
- The type of the requested data association.object
- The object to determine the association from.null
@NotNull <T,A> String getId(@NotNull DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token, @NotNull A association)
T
- The object type.A
- The association object type.token
- The type of the data association.association
- The association to get the identifier from.@NotNull String getId(@NotNull String namespace, @NotNull Object association)
namespace
- The namespace of the data association.association
- The association to get the identifier from.@Nullable <T,A> A getFromId(@NotNull DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token, @NotNull String id)
T
- The object type.A
- The association object type.token
- The type of the data association.id
- The association identifier to get the association object from.null
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210