public class ConfigurableDependencyInclusionResolver extends Object implements DependencyInclusionResolver
DependencyInclusionResolver interface that can be configured
to include/exclude relationships by being provided a dependency graph in the form of ExportConfiguration instance.| Constructor and Description |
|---|
ConfigurableDependencyInclusionResolver(ExportConfiguration edg) |
public ConfigurableDependencyInclusionResolver(ExportConfiguration edg)
edg - the dependency graph of allowed entities and relations among them.public boolean isValid(Edge edge)
Entity in the configuration that corresponds
to the "from node" Edge.getFrom() of the provided edge of the full dependency graph.
Entity corresponding to the Edge.getTo().
Relationship defined on the source entity that corresponds to the Edge.getFromField() (i.e. has the same name).
Relationship on the target entity corresponding to the Edge.getToField().
An edge is considered valid if at least one of the following conditions is true:
from field (i.e. the dependency is explicitly defined).
Entity.isIncludeAllFields()).
Entity.isIncludeAllFields()).
isValid in interface DependencyInclusionResolveredge - the edge from the full entity dependency graph to check the validity of.Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.