| Modifier and Type | Class and Description |
|---|---|
static class |
Related.EntityRole |
Filter.Accumulator| Modifier | Constructor and Description |
|---|---|
protected |
Related(T entity,
String relationshipName,
Related.EntityRole entityRole) |
protected |
Related(T entity,
String relationshipName,
String relationshipId,
Related.EntityRole entityRole) |
| Modifier and Type | Method and Description |
|---|---|
static Related<?> |
asTargetBy(Relationships.WellKnown relationship)
Overloaded version of
asTargetBy(String) that uses the
Relationships.WellKnown as the name of the relationship. |
static Related<?> |
asTargetBy(String relationshipName)
Creates a filter for entities that are targets of at least one relationship with the specified name.
|
static <U extends Entity> |
asTargetWith(U entity,
Relationships.WellKnown relationship)
An overloaded version of
asTargetWith(org.hawkular.inventory.api.model.Entity, String) that uses one of
the Relationships.WellKnown as the name of the relationship. |
static <U extends Entity> |
asTargetWith(U entity,
String relationship)
Specifies a filter for entities that are targets of a relationship with the specified entity.
|
static Related<?> |
by(Relationships.WellKnown relationship)
Overloaded version of
by(String) that uses the
Relationships.WellKnown as the name of the relationship. |
static Related<?> |
by(String relationshipName)
Creates a filter for entities that are sources of at least one relationship with the specified name.
|
static Related<?> |
byRelationshipWithId(String relationshipId)
Creates a filter for entities that are sources of at least one relationship with the specified id.
|
boolean |
equals(Object o) |
T |
getEntity() |
Related.EntityRole |
getEntityRole() |
String |
getRelationshipId() |
String |
getRelationshipName() |
int |
hashCode() |
String |
toString() |
static <U extends Entity> |
with(U entity,
Relationships.WellKnown relationship)
An overloaded version of
with(org.hawkular.inventory.api.model.Entity, String) that uses one of the
Relationships.WellKnown as the name of the relationship. |
static <U extends Entity> |
with(U entity,
String relationship)
Specifies a filter for entities that are sources of a relationship with the specified entity.
|
protected Related(T entity, String relationshipName, String relationshipId, Related.EntityRole entityRole)
protected Related(T entity, String relationshipName, Related.EntityRole entityRole)
public static <U extends Entity> Related<U> with(U entity, String relationship)
U - the type of the entityentity - the entity that is the target of the relationshiprelationship - the name of the relationshippublic static <U extends Entity> Related<U> with(U entity, Relationships.WellKnown relationship)
with(org.hawkular.inventory.api.model.Entity, String) that uses one of the
Relationships.WellKnown as the name of the relationship.U - the type of the entityentity - the entity that is the target of the relationshiprelationship - the type of the relationshippublic static Related<?> by(String relationshipName)
relationshipName - the name of the relationshippublic static Related<?> by(Relationships.WellKnown relationship)
by(String) that uses the
Relationships.WellKnown as the name of the relationship.relationship - the type of the relationshippublic static Related<?> byRelationshipWithId(String relationshipId)
relationshipId - the id of the relationshippublic static <U extends Entity> Related<U> asTargetWith(U entity, String relationship)
U - the type of the entityentity - the entity that is the source of the relationshiprelationship - the name of the relationshippublic static <U extends Entity> Related<U> asTargetWith(U entity, Relationships.WellKnown relationship)
asTargetWith(org.hawkular.inventory.api.model.Entity, String) that uses one of
the Relationships.WellKnown as the name of the relationship.U - the type of the entityentity - the entity that is the source of the relationshiprelationship - the type of the relationshippublic static Related<?> asTargetBy(String relationshipName)
relationshipName - the name of the relationshippublic static Related<?> asTargetBy(Relationships.WellKnown relationship)
asTargetBy(String) that uses the
Relationships.WellKnown as the name of the relationship.relationship - the type of the relationshippublic T getEntity()
public String getRelationshipName()
public String getRelationshipId()
public Related.EntityRole getEntityRole()
Copyright © 2015 Red Hat, Inc.. All rights reserved.