public class DefaultLink extends AbstractProjectableModel implements Link
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultLink.Builder
Builder for DefaultLink objects.
|
AbstractProjectableModel.AnnotationDriverDataLink.State, Link.TypeNO_DRIVER, NO_DRIVER_SERVICE| Modifier | Constructor and Description |
|---|---|
protected |
DefaultLink(ProviderId providerId,
ConnectPoint src,
ConnectPoint dst,
Link.Type type,
Link.State state,
Annotations... annotations)
Creates an infrastructure link using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultLink.Builder |
builder()
Creates a new default link builder.
|
ConnectPoint |
dst()
Returns the link destination connection point.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isExpected()
Indicates if the link was created from a predefined configuration.
|
ConnectPoint |
src()
Returns the link source connection point.
|
Link.State |
state()
Returns the link state.
|
String |
toString() |
Link.Type |
type()
Returns the link type.
|
as, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverServiceproviderIdannotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationsproviderIdas, is, projectprotected DefaultLink(ProviderId providerId, ConnectPoint src, ConnectPoint dst, Link.Type type, Link.State state, Annotations... annotations)
providerId - provider identitysrc - link sourcedst - link destinationtype - link typestate - link stateannotations - optional key/value annotationspublic ConnectPoint src()
Linkpublic ConnectPoint dst()
Linkpublic Link.State state()
Linkpublic boolean isExpected()
LinkisExpected in interface Linkpublic static DefaultLink.Builder builder()