public final class Relationship extends AbstractElement<Relationship.Blueprint,Relationship.Update>
| Modifier and Type | Class and Description |
|---|---|
static class |
Relationship.Blueprint |
static class |
Relationship.Update |
AbstractElement.Updater<U extends AbstractElement.Update,E extends AbstractElement<?,U>>ID_PROPERTY, properties| Constructor and Description |
|---|
Relationship(String id,
String name,
CanonicalPath source,
CanonicalPath target) |
Relationship(String id,
String name,
CanonicalPath source,
CanonicalPath target,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> visitor,
P parameter)
Accepts the provided visitor.
|
String |
getId() |
String |
getName() |
CanonicalPath |
getSource() |
CanonicalPath |
getTarget() |
String |
toString() |
AbstractElement.Updater<Relationship.Update,Relationship> |
update() |
equals, getPath, getProperties, hashCode, valueOrDefaultpublic Relationship(String id, String name, CanonicalPath source, CanonicalPath target)
public Relationship(String id, String name, CanonicalPath source, CanonicalPath target, Map<String,Object> properties)
public <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
AbstractElementaccept in class AbstractElement<Relationship.Blueprint,Relationship.Update>R - the return typeP - the type of the parametervisitor - the visitor to visit this entityparameter - the parameter to pass on to the visitorpublic AbstractElement.Updater<Relationship.Update,Relationship> update()
update in class AbstractElement<Relationship.Blueprint,Relationship.Update>public String getId()
getId in class AbstractElement<Relationship.Blueprint,Relationship.Update>public String getName()
public CanonicalPath getSource()
public CanonicalPath getTarget()
Copyright © 2015 Red Hat, Inc.. All rights reserved.