public class Related extends Filter
| Modifier and Type | Class and Description |
|---|---|
static class |
Related.EntityRole |
Filter.Accumulator| Modifier | Constructor and Description |
|---|---|
protected |
Related(CanonicalPath entityPath,
String relationshipName,
Related.EntityRole entityRole) |
protected |
Related(CanonicalPath entityPath,
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 Related |
asTargetWith(CanonicalPath entityPath,
Relationships.WellKnown relationship)
An overloaded version of
asTargetWith(org.hawkular.inventory.api.model.CanonicalPath, String) that uses
one of the Relationships.WellKnown as the name of the relationship. |
static Related |
asTargetWith(CanonicalPath entityPath,
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) |
CanonicalPath |
getEntityPath() |
Related.EntityRole |
getEntityRole() |
String |
getRelationshipId() |
String |
getRelationshipName() |
int |
hashCode() |
String |
toString() |
static Related |
with(CanonicalPath entityPath,
Relationships.WellKnown relationship)
An overloaded version of
with(org.hawkular.inventory.api.model.CanonicalPath, String) that uses one of
the Relationships.WellKnown as the name of the relationship. |
static Related |
with(CanonicalPath entityPath,
String relationship)
Specifies a filter for entities that are sources of a relationship with the specified entity.
|
protected Related(CanonicalPath entityPath, String relationshipName, String relationshipId, Related.EntityRole entityRole)
protected Related(CanonicalPath entityPath, String relationshipName, Related.EntityRole entityRole)
public static Related with(CanonicalPath entityPath, String relationship)
entityPath - the entity that is the target of the relationshiprelationship - the name of the relationshippublic static Related with(CanonicalPath entityPath, Relationships.WellKnown relationship)
with(org.hawkular.inventory.api.model.CanonicalPath, String) that uses one of
the Relationships.WellKnown as the name of the relationship.entityPath - 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 Related asTargetWith(CanonicalPath entityPath, String relationship)
entityPath - the entity that is the source of the relationshiprelationship - the name of the relationshippublic static Related asTargetWith(CanonicalPath entityPath, Relationships.WellKnown relationship)
asTargetWith(org.hawkular.inventory.api.model.CanonicalPath, String) that uses
one of the Relationships.WellKnown as the name of the relationship.entityPath - 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 CanonicalPath getEntityPath()
public String getRelationshipName()
public String getRelationshipId()
public Related.EntityRole getEntityRole()
Copyright © 2015 Red Hat, Inc.. All rights reserved.