Package org.iam.policy.grammer
Class Condition
java.lang.Object
org.iam.policy.grammer.Condition
- Direct Known Subclasses:
MCPCondition
Condition represents a condition block with an operator and key-value pairs.
Used for expressing constraints in policies, where each condition has an operator and a mapping from keys to lists of string values.
- Since:
- 2025-02-28
- Author:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for supported condition operators. -
Field Summary
FieldsModifier and TypeFieldDescriptionMapping from condition keys to their list of values.protected Condition.VarOperatorThe operator for this condition. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetKeyToValues(HashMap<String, List<String>> keyToValues) voidsetOperator(Condition.VarOperator operator)
-
Field Details
-
operator
The operator for this condition. -
keyToValues
Mapping from condition keys to their list of values.
-
-
Constructor Details
-
Condition
Copy constructor.- Parameters:
other- the Condition to copy
-
Condition
Constructs a Condition with the given operator and key-value mapping.- Parameters:
operator- the operatorkeyToValues- the key-value mapping
-
-
Method Details