Class PropertyValueOperand


  • public class PropertyValueOperand
    extends DynamicOperand
    PropertyValueOperand implements a property value operand.
    • Constructor Detail

      • PropertyValueOperand

        public PropertyValueOperand​(PropertyValueImpl operand)
        Creates a new property value operand.
        Parameters:
        operand - the QOM operand.
    • Method Detail

      • getPropertyState

        public final PropertyState getPropertyState​(ScoreNode sn,
                                                    EvaluationContext context)
                                             throws RepositoryException
        Returns the property state for the given score node or null if none exists.
        Parameters:
        sn - the current score node.
        context - the evaluation context.
        Returns:
        the property state or null.
        Throws:
        RepositoryException - if an error occurs while reading.
      • getProperty

        public final Property getProperty​(ScoreNode sn,
                                          EvaluationContext context)
                                   throws RepositoryException
        Returns the property for the given score node or null if none exists.
        Parameters:
        sn - the current score node.
        context - the evaluation context.
        Returns:
        the property or null.
        Throws:
        RepositoryException - if an error occurs while reading.
      • getValues

        public Value[] getValues​(ScoreNode sn,
                                 EvaluationContext context)
                          throws RepositoryException
        Returns the values for the given score node sn of this dynamic operand. If there are no values for the given score node, then an empty array is returned.
        Specified by:
        getValues in class DynamicOperand
        Parameters:
        sn - the current score node.
        context - the evaluation context.
        Returns:
        the values for the given score node.
        Throws:
        RepositoryException - if an error occurs while retrieving the value.