Package net.officefloor.gef.ide.editor
Class AbstractItem.IdeConnectionTarget<C extends ConnectionModel,T extends Model,TE extends java.lang.Enum<TE>>
- java.lang.Object
-
- net.officefloor.gef.ide.editor.AbstractItem.IdeConnectionTarget<C,T,TE>
-
- Enclosing class:
- AbstractItem<R extends Model,O,P extends Model,PE extends java.lang.Enum<PE>,M extends Model,E extends java.lang.Enum<E>>
public class AbstractItem.IdeConnectionTarget<C extends ConnectionModel,T extends Model,TE extends java.lang.Enum<TE>> extends java.lang.Object
IDE targetAdaptedConnectionBuilder
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractItem.IdeConnectionTarget<C,T,TE>
create(AdaptedConnectionManagementBuilder.ConnectionFactory<R,O,M,C,T> createConnetion)
Configures creating theConnectionModel
.AbstractItem.IdeConnectionTarget<C,T,TE>
delete(AdaptedConnectionManagementBuilder.ConnectionRemover<R,O,C> deleteConnection)
Configures deleting theConnectionModel
.AbstractItem.IdeConnectionTarget<C,T,TE>
many(java.util.function.Function<T,java.util.List<C>> targetToMany, java.util.function.Function<C,T> connToTarget, java.lang.Enum<?>... targetChangeEvents)
Connect to many sources.AbstractItem.IdeConnectionTarget<C,T,TE>
one(java.util.function.Function<T,C> targetToOne, java.util.function.Function<C,T> connToTarget, java.lang.Enum<?>... targetChangeEvents)
Connect to one target.
-
-
-
Method Detail
-
many
@SafeVarargs public final AbstractItem.IdeConnectionTarget<C,T,TE> many(java.util.function.Function<T,java.util.List<C>> targetToMany, java.util.function.Function<C,T> connToTarget, java.lang.Enum<?>... targetChangeEvents)
Connect to many sources.- Parameters:
targetToMany
- Obtains the multipleConnectionModel
instances from the target.connToTarget
- Obtains the target from a particularConnectionModel
.targetChangeEvents
- Target change events.- Returns:
this
.
-
one
@SafeVarargs public final AbstractItem.IdeConnectionTarget<C,T,TE> one(java.util.function.Function<T,C> targetToOne, java.util.function.Function<C,T> connToTarget, java.lang.Enum<?>... targetChangeEvents)
Connect to one target.- Parameters:
targetToOne
- Obtains the singleConnectionModel
from the target.connToTarget
- Obtains the target from theConnectionModel
.targetChangeEvents
- Target change events.- Returns:
this
.
-
create
public final AbstractItem.IdeConnectionTarget<C,T,TE> create(AdaptedConnectionManagementBuilder.ConnectionFactory<R,O,M,C,T> createConnetion)
Configures creating theConnectionModel
.- Parameters:
createConnetion
-AdaptedConnectionManagementBuilder.ConnectionFactory
to create theConnectionModel
.- Returns:
this
.
-
delete
public final AbstractItem.IdeConnectionTarget<C,T,TE> delete(AdaptedConnectionManagementBuilder.ConnectionRemover<R,O,C> deleteConnection)
Configures deleting theConnectionModel
.- Parameters:
deleteConnection
-AdaptedConnectionManagementBuilder.ConnectionRemover
to delete theConnectionModel
.- Returns:
this
.
-
-