public enum DefaultDisambiguationUpdateStrategies extends Enum<DefaultDisambiguationUpdateStrategies> implements DisambiguationUpdateStrategy
| Enum Constant and Description |
|---|
EXACT
The disambiguation policy is followed precisely.
|
KEEP_ALL_PARENTS
All parents are preserved no matter what the policy says.
|
KEEP_AT_LEAST_ONE_PARENT
Even if the disambiguation policy determined that parents are not needed to disambiguate the
results, at least one of them is kept in the report.
|
KEEP_PARENTS_TO_TOPMOST_SERVERS
The parentage of the report is retained at least up to the server/service directly under platform.
|
| Modifier and Type | Method and Description |
|---|---|
EnumSet<ResourceResolution> |
alwaysRepartitionableResolutions() |
static DefaultDisambiguationUpdateStrategies |
getDefault() |
EnumSet<ResourceResolution> |
resourceLevelRepartitionableResolutions() |
static <T> void |
updateResources(DisambiguationPolicy policy,
MutableDisambiguationReport<T> report,
boolean honorAmbiguousTypeNamesList,
boolean pushDownPluginInfo)
This updates the resources in the report according to the resolutions contained in the policy.
|
static DefaultDisambiguationUpdateStrategies |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultDisambiguationUpdateStrategies[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfpartitionFurther, updatepublic static final DefaultDisambiguationUpdateStrategies EXACT
public static final DefaultDisambiguationUpdateStrategies KEEP_AT_LEAST_ONE_PARENT
public static final DefaultDisambiguationUpdateStrategies KEEP_PARENTS_TO_TOPMOST_SERVERS
public static final DefaultDisambiguationUpdateStrategies KEEP_ALL_PARENTS
public static DefaultDisambiguationUpdateStrategies[] values()
for (DefaultDisambiguationUpdateStrategies c : DefaultDisambiguationUpdateStrategies.values()) System.out.println(c);
public static DefaultDisambiguationUpdateStrategies valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static <T> void updateResources(DisambiguationPolicy policy, MutableDisambiguationReport<T> report, boolean honorAmbiguousTypeNamesList, boolean pushDownPluginInfo)
DisambiguationUpdateStrategy.update(DisambiguationPolicy, MutableDisambiguationReport)
implementations in this enum before the individual enums modify the parent list as they see fit.
This method is left public because it is generic enough to be reused by other potential implementations of the
DisambiguationUpdateStrategy interface.T - policy - report - honorAmbiguousTypeNamesList - whether to honor the list of ambiguous type names as listed in the policy when updating the resources.pushDownPluginInfo - if true, the plugin information is pushed down as low in the resource hierarchy as possible. This means that if
some parent needs plugin disambiguation or is of an ambiguous type and the resource comes from the same plugin, the plugin info is preserved
on the resource rather than on the parent. This is mainly useful for the display purposes, because it just
looks nicer to have that info at a resource than somewhere in the location string.public EnumSet<ResourceResolution> resourceLevelRepartitionableResolutions()
resourceLevelRepartitionableResolutions in interface DisambiguationUpdateStrategypublic EnumSet<ResourceResolution> alwaysRepartitionableResolutions()
alwaysRepartitionableResolutions in interface DisambiguationUpdateStrategyresourceLevelRepartitionableResolutions().public static DefaultDisambiguationUpdateStrategies getDefault()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.