public class ExclusiveOptionConstraint extends Object implements OptionConstraint
Constructor and Description |
---|
ExclusiveOptionConstraint(String option,
Set<String> excluded)
Constructor with option and set of excluded options if
option is
active. |
public ExclusiveOptionConstraint(String option, Set<String> excluded)
option
is
active.option
- the option (long) name; if active the excluded
options
are not allowed to be activeexcluded
- the (long) names of options that cannot be active if
option
is activepublic boolean isValidActiveSet(Set<String> activeSet)
isValidActiveSet
in interface OptionConstraint
Copyright © 2024. All rights reserved.