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:
  • Method Details

    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.mcp.variables.statics.Label
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class org.mcp.variables.statics.Label
    • convert

      public org.mcp.variables.dynamics.OperableLabel convert()
      Converts this label to an OperableLabel for symbolic operations.
      Specified by:
      convert in class org.mcp.variables.statics.Label
      Returns:
      the corresponding OperableLabel
    • getValue

      public Object getValue()
      Returns the underlying value (finding, policy, or MCPBitVector).
      Specified by:
      getValue in class org.mcp.variables.statics.Label
      Returns:
      the wrapped value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getVarType

      public IntentOrPolicyLabel.VarType getVarType()
      Returns the type of value this label represents.
      Returns:
      the VarType