public static interface BrooklynObject.RelationSupport<T extends BrooklynObject>
Modifier and Type | Method and Description |
---|---|
<U extends BrooklynObject> |
add(RelationshipType<? super T,? super U> relationship,
U target)
Adds a relationship of the given type from this object pointing at the given target,
and ensures that the inverse relationship (if there is one) is present at the target pointing back at this object.
|
<U extends BrooklynObject> |
getRelations(RelationshipType<? super T,U> relationshipType) |
java.util.Set<RelationshipType<? super T,? extends BrooklynObject>> |
getRelationshipTypes() |
<U extends BrooklynObject> |
remove(RelationshipType<? super T,? super U> relationship,
U target)
Removes any and all relationships of the given type from this object pointing at the given target,
and ensures that the inverse relationships (if there are one) are also removed.
|
<U extends BrooklynObject> void add(RelationshipType<? super T,? super U> relationship, U target)
<U extends BrooklynObject> void remove(RelationshipType<? super T,? super U> relationship, U target)
java.util.Set<RelationshipType<? super T,? extends BrooklynObject>> getRelationshipTypes()
RelationshipType
s originating from this object<U extends BrooklynObject> java.util.Set<U> getRelations(RelationshipType<? super T,U> relationshipType)
BrooklynObject
s which are targets of the given RelationshipType