Package org.iam.model
Class IntentOrPolicyLabel
java.lang.Object
org.mcp.variables.statics.Label
org.iam.model.IntentOrPolicyLabel
public class IntentOrPolicyLabel
extends org.mcp.variables.statics.Label
IntentOrPolicyLabel is a Label that can wrap a finding, a policy, or an MCPBitVector.
Supports conversion to OperableLabel and provides type-safe access to the underlying value. Used for symbolic manipulation and EC computation.
- Since:
- 2025-02-28
- Author:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for IntentOrPolicyLabel.static enumEnum for the type of value this label represents. -
Method Summary
Modifier and TypeMethodDescriptionorg.mcp.variables.dynamics.OperableLabelconvert()Converts this label to an OperableLabel for symbolic operations.booleangetValue()Returns the underlying value (finding, policy, or MCPBitVector).Returns the type of value this label represents.inthashCode()toString()
-
Method Details
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.mcp.variables.statics.Label
-
equals
- Specified by:
equalsin classorg.mcp.variables.statics.Label
-
convert
public org.mcp.variables.dynamics.OperableLabel convert()Converts this label to an OperableLabel for symbolic operations.- Specified by:
convertin classorg.mcp.variables.statics.Label- Returns:
- the corresponding OperableLabel
-
getValue
Returns the underlying value (finding, policy, or MCPBitVector).- Specified by:
getValuein classorg.mcp.variables.statics.Label- Returns:
- the wrapped value
-
toString
-
getVarType
Returns the type of value this label represents.- Returns:
- the VarType
-