GridSafeDocumentation/PropExpression/

PropExpression

PropExpressions are simple expressions over property values. The following syntax is supported:

PropExpression : PropName
               | Number
               | String
               | ( PropExpression )
               | PropExpression + PropExpression
               | PropExpression - PropExpression
               | PropExpression * PropExpression
               | PropExpression / PropExpression
               | PropExpression [ PropExpression ] 
               | { PropExpressionList }
               | @NAME( PropExpression )
               | @STRING( PropExpression )
               | @INT( PropExpression )
               | @DURATION_CAST( PropExpression)

PropExpressionList : PropExpression
                   | PropExpressionList , PropExpression



The numerical operators allow simple numerical combinations of properties. If a data-time property is used in this way then it will automatically be converted into the number of milliseconds since the Unix epoch. Therefore the difference between any two date-time properties is always a duration in milliseconds. Property expressions that correspond to a ReferenceProperty can be de-referenced using square brackets to evaluate properties defined in the remote table provided the handler class for the remote table supports this operation. A PropExpressionList evaluates as the first expression in the list that generates a non-null result.

 

Grid-SAFE was funded by JISC and is maintained, developed, and managed by EPCC at the University of Edinburgh