Package net.officefloor.gef.editor
Interface AdaptedConnectionBuilder<R extends Model,O,S extends Model,C extends ConnectionModel,E extends java.lang.Enum<E>>
-
- All Known Implementing Classes:
AdaptedConnectionFactory
public interface AdaptedConnectionBuilder<R extends Model,O,S extends Model,C extends ConnectionModel,E extends java.lang.Enum<E>>
Builder for theAdaptedConnection
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Model,TE extends java.lang.Enum<TE>>
AdaptedConnectionManagementBuilder<R,O,S,C,T>toMany(java.lang.Class<T> targetModel, java.util.function.Function<T,java.util.List<C>> getConnections, java.util.function.Function<C,T> getTarget, TE... targetChangeEvents)
Provides linking to the targetConnectionModel
.<T extends Model,TE extends java.lang.Enum<TE>>
AdaptedConnectionManagementBuilder<R,O,S,C,T>toOne(java.lang.Class<T> targetModel, java.util.function.Function<T,C> getConnection, java.util.function.Function<C,T> getTarget, TE... targetChangeEvents)
Provides linking to the targetConnectionModel
.
-
-
-
Method Detail
-
toOne
<T extends Model,TE extends java.lang.Enum<TE>> AdaptedConnectionManagementBuilder<R,O,S,C,T> toOne(java.lang.Class<T> targetModel, java.util.function.Function<T,C> getConnection, java.util.function.Function<C,T> getTarget, TE... targetChangeEvents)
Provides linking to the targetConnectionModel
.- Type Parameters:
T
- TargetModel
type.TE
- TargetModel
event type.- Parameters:
targetModel
- TargetModel
type.getConnection
-Function
to obtain theConnectionModel
from the targetModel
.getTarget
-Function
to extract the targetModel
from theConnectionModel
.targetChangeEvents
-Enum
events on the targetModel
indicating change inConnectionModel
.- Returns:
this
.
-
toMany
<T extends Model,TE extends java.lang.Enum<TE>> AdaptedConnectionManagementBuilder<R,O,S,C,T> toMany(java.lang.Class<T> targetModel, java.util.function.Function<T,java.util.List<C>> getConnections, java.util.function.Function<C,T> getTarget, TE... targetChangeEvents)
Provides linking to the targetConnectionModel
.- Type Parameters:
T
- TargetModel
type.TE
- TargetModel
event type.- Parameters:
targetModel
- TargetModel
type.getConnections
-Function
to obtain theConnectionModel
instances from the targetModel
.getTarget
-Function
to extract the targetModel
from theConnectionModel
.targetChangeEvents
-Enum
events on the targetModel
indicating change inConnectionModel
.- Returns:
AdaptedConnectionManagementBuilder
.
-
-