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(java.lang.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.
|
java.lang.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 int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static DefaultLink.Builder builder()