Package net.officefloor.gef.editor
Interface AdaptedConnector<M extends Model>
-
- All Known Subinterfaces:
AdaptedArea<M>
- All Known Implementing Classes:
AdaptedAreaFactory.AdaptedAreaImpl
,AdaptedConnectorImpl
public interface AdaptedConnector<M extends Model>
Adapted connector.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdaptedConnectorRole
getAssociationRole()
Obtains the role of thisAdaptedConnector
.java.lang.Class<? extends ConnectionModel>
getConnectionModelClass()
Obtains theConnectionModel
Class
.AdaptedConnectable<M>
getParentAdaptedConnectable()
Obtains the parentAdaptedConnectable
.boolean
isAssociationCreateConnection()
Indicates if able to create anAdaptedConnection
from the association ofAdaptedConnector
instances.void
setAssociation(java.util.List<AdaptedConnector<M>> associatedAdaptedConnectors, AdaptedConnectorRole associatedRole)
Specifies the associatedAdaptedConnector
instances.
-
-
-
Method Detail
-
getParentAdaptedConnectable
AdaptedConnectable<M> getParentAdaptedConnectable()
Obtains the parentAdaptedConnectable
.- Returns:
- Parent
AdaptedConnectable
.
-
getConnectionModelClass
java.lang.Class<? extends ConnectionModel> getConnectionModelClass()
Obtains theConnectionModel
Class
.- Returns:
ConnectionModel
Class
.
-
setAssociation
void setAssociation(java.util.List<AdaptedConnector<M>> associatedAdaptedConnectors, AdaptedConnectorRole associatedRole)
Specifies the associated
AdaptedConnector
instances.Visually multiple
AdaptedConnectionPart
instances may be connected via the singleAdaptedConnectorPart
Node
.- Parameters:
associatedAdaptedConnectors
- AssociatedAdaptedConnector
instances.associatedRole
-AdaptedConnectorRole
.
-
isAssociationCreateConnection
boolean isAssociationCreateConnection()
Indicates if able to create anAdaptedConnection
from the association ofAdaptedConnector
instances.- Returns:
true
if able to createAdaptedConnection
.
-
getAssociationRole
AdaptedConnectorRole getAssociationRole()
Obtains the role of thisAdaptedConnector
.- Returns:
AdaptedConnectorRole
. May benull
to indicate fills all roles.
-
-