public class AttributeModifierCriteria extends Object
AttributeModifiers
to build the criteria.| Constructor and Description |
|---|
AttributeModifierCriteria(int exclusive,
int alternative,
int disallowed)
Instantiates a new attribute modifier criteria with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAlternative(int modifier)
Adds the alternative attribute modifier for filtering.
|
void |
addDisallowed(int modifier)
Adds the disallowed attribute modifier for filtering.
|
void |
addRequired(int modifier)
Adds the required attribute modifier for filtering.
|
boolean |
matches(int actualAttributeModifiers)
Function checks if the given combined attribute modifier matches current state of this criteria.
|
public AttributeModifierCriteria(int exclusive,
int alternative,
int disallowed)
exclusive - the exclusivealternative - the alternativedisallowed - the disallowedpublic void addRequired(int modifier)
modifier - the modifierpublic void addAlternative(int modifier)
modifier - the modifierpublic void addDisallowed(int modifier)
modifier - the modifierpublic boolean matches(int actualAttributeModifiers)
actualAttributeModifiers - the actual attribute modifiersCopyright © 2017 SAP SE. All Rights Reserved.