public class PropertyValueOperand extends DynamicOperand
PropertyValueOperand implements a property value operand.EMPTY| Constructor and Description |
|---|
PropertyValueOperand(PropertyValueImpl operand)
Creates a new property value operand.
|
| Modifier and Type | Method and Description |
|---|---|
Property |
getProperty(ScoreNode sn,
EvaluationContext context)
Returns the property for the given score node or
null if
none exists. |
PropertyState |
getPropertyState(ScoreNode sn,
EvaluationContext context)
Returns the property state for the given score node or
null
if none exists. |
Value[] |
getValues(ScoreNode sn,
EvaluationContext context)
Returns the values for the given score node
sn of this
dynamic operand. |
public PropertyValueOperand(PropertyValueImpl operand)
operand - the QOM operand.public final PropertyState getPropertyState(ScoreNode sn, EvaluationContext context) throws RepositoryException
null
if none exists.sn - the current score node.context - the evaluation context.null.RepositoryException - if an error occurs while reading.public final Property getProperty(ScoreNode sn, EvaluationContext context) throws RepositoryException
null if
none exists.sn - the current score node.context - the evaluation context.null.RepositoryException - if an error occurs while reading.public Value[] getValues(ScoreNode sn, EvaluationContext context) throws RepositoryException
sn of this
dynamic operand. If there are no values for the given score node, then
an empty array is returned.getValues in class DynamicOperandsn - the current score node.context - the evaluation context.RepositoryException - if an error occurs while retrieving the value.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.