Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
org.blueberry.core.expressions.definitions
This extension point allows you to create reusable extensions. They can then be used in other core expression constructs. The reference element in a core expression will evaluated the expression definition with the evaluation context that is active for the reference element.
point
: a fully qualified identifier of the target extension pointid
: an optional identifier of the extension instancename
: an optional name of the extension instanceProvides a global definition of an expression to be used with the <reference/>
expression element. This helps to reuse common expressions.
id
: a globally unique identifier for the expression definitionA generic root element. The element can be used inside an extension point to define its enablement expression. The children of an enablement expression are combined using the and operator.
This element represent a NOT operation on the result of evaluating it's sub-element expression.
This element represent an AND operation on the result of evaluating all it's sub-elements expressions.
This element represent an OR operation on the result of evaluating all it's sub-element expressions.
This element is used to perform an instanceof check of the object in focus. The expression returns EvaluationResult.TRUE
if the object's type is a sub type of the type specified by the attribute value. Otherwise EvaluationResult.FALSE
is returned.
value
: a fully qualified name of a class or interfaceThis element is used to evaluate the property state of the object in focus. The set of testable properties can be extended using the propery tester extension point. The test expression returns EvaluationResult.NOT_LOADED
if the property tester doing the actual testing isn't loaded yet and the attribute forcePluginActivation
is set to false
. If forcePluginActivation
is set to true
and the evaluation context used to evaluate this expression support plug-in activation then evaluating the property will result in activating the plug-in defining the tester.
property
: The name of an object's property to test.args
: Additional arguments passed to the property tester. Multiple arguments are seperated by commas. Each individual argument is converted into a Java base type using the same rules as defined for the value attribute of the test expression.value
: The expected value of the property. Can be omitted if the property is a boolean property. The test expression is supposed to return EvaluationResult.TRUE
if the property matches the value and EvaluationResult.FALSE
otherwise. The value attribute is converted into a Java base type using the following rules:"true"
is converted into Boolean.TRUE
."false"
is converted into Boolean.FALSE
.Float
object. If this fails the string is treated as a java.lang.String
.Integer
object.java.lang.String
.Boolean
, Float
, or Integer
can be suppressed by surrounding the string with single quotes. For example, the attribute value="'true'"
is converted into the string "true".forcePluginActivation
: A flag indicating whether the plug-in contributing the property tester should be loaded if necessary. As such, this flag should be used judiciously, in order to avoid unnecessary plug-in activations. Most clients should avoid setting this flag to true
. This flag is only honored if the evaluation context used to evaluate this expression allows plug-in activation. Otherwise the flag is ignored and no plug-in loading takes place.Tests a system property by calling the System.getProperty
method and compares the result with the value specified through the value attribute.
property
: The name of an system property to test.value
: The expected value of the property. The value is interpreted as a string value.This element is used to perform an equals check of the object in focus. The expression returns EvaluationResult.TRUE
if the object is equal to the value provided by the attribute value. Otherwise EvaluationResult.FALSE
is returned.
value
: The expected value. The value provided as a string is converted into a Java base type using the same rules as for the value attribute of the test expression.This element is used to test the number of elements in a collection.
value
: An expression to specify the number of elements in a list. Following wildcard characters can be used:*
: any number of elements?
: no elements or one element+
: one or more elements!
: no elementsinteger value
: the list must contain the exact number of elementsThis element changes the object to be inspected for all its child element to the object referenced by the given variable. If the variable can not be resolved then the expression will throw an ExpressionException
when evaluating it. The children of a with expression are combined using the and operator.
variable
: The name of the variable to be used for further inspection. It is up to the evaluator of an extension point to provide the variable in the variable pool.This element changes the object to be inspected for all its child element to the object referenced by the given variable. If the variable can not be resolved then the expression will throw an ExpressionException
when evaluating it. The children of a with expression are combined using the and operator.
variable
: The name of the variable to be resolved. This variable is then used as the object in focus for child element evaluation. It is up to the evaluator of an extension point to provide a corresponding variable resolver (see berry::IVariableResolver) through the evaluation context passed to the root expression element when evaluating the expression.args
: Additional arguments passed to the variable resolver. Multiple arguments are seperated by commas. Each individual argument is converted into a Java base type using the same rules as defined for the value attribute of the test expression.This element is used to adapt the object in focus to the type specified by the attribute type. The expression returns not loaded if either the adapter or the type referenced isn't loaded yet. It throws an ExpressionException
during evaluation if the type name doesn't exist at all. The children of an adapt expression are combined using the and operator.
type
: the type to which the object in focus is to be adaptedThis element is used to iterate over a variable that is of type java.util.Collection
. If the object in focus is not of type java.util.Collection
then an ExpressionException
will be thrown while evaluating the expression.
operator
: Either "and" or "or". The operator defines how the child elements will be combined. If not specified, "and" will be used.ifEmpty
: The value return from the iterate expression if the collection is empty. If not specified then true
is returned when the operator equals "and" and false
is returned if the operator equals "or".This element is used to reference an expression from the org.blueberry.core.expressions.definitions
extension point. The expression definition will be evaluated within the current expression element using the current evaluation context.
definitionId
: the unique id of an expression from org.blueberry.core.expressions.definitions
Then this expression definition can be used when composing other expressions.
org.blueberry.core.expressions.commonExpression
A generic root element. The element can be used inside an extension point to define its enablement expression. The children of an enablement expression are combined using the and operator.
This element represent a NOT operation on the result of evaluating it's sub-element expression.
This element represent an AND operation on the result of evaluating all it's sub-elements expressions.
This element represent an OR operation on the result of evaluating all it's sub-element expressions.
This element is used to perform an instanceof check of the object in focus. The expression returns EvaluationResult.TRUE
if the object's type is a sub type of the type specified by the attribute value. Otherwise EvaluationResult.FALSE
is returned.
value
: a fully qualified name of a class or interfaceThis element is used to evaluate the property state of the object in focus. The set of testable properties can be extended using the propery tester extension point. The test expression returns EvaluationResult.NOT_LOADED
if the property tester doing the actual testing isn't loaded yet and the attribute forcePluginActivation
is set to false. If forcePluginActivation
is set to true
and the evaluation context used to evaluate this expression support plug-in activation then evaluating the property will result in activating the plug-in defining the tester.
property
: The name of an object's property to test.args
: Additional arguments passed to the property tester. Multiple arguments are seperated by commas. Each individual argument is converted into a Java base type using the same rules as defined for the value attribute of the test expression.value
: The expected value of the property. Can be omitted if the property is a boolean property. The test expression is supposed to return EvaluationResult.TRUE if the property matches the value and EvaluationResult.FALSE otherwise. The value attribute is converted into a Java base type using the following rules:Boolean.TRUE
Boolean.FALSE
Float
object. If this fails the string is treated as a java.lang.String
Integer
object.java.lang.String
Boolean
, Float
, or Integer
can be suppressed by surrounding the string with single quotes. For example, the attribute value="'true'"
is converted into the string "true"forcePluginActivation
: A flag indicating whether the plug-in contributing the property tester should be loaded if necessary. As such, this flag should be used judiciously, in order to avoid unnecessary plug-in activations. Most clients should avoid setting this flag to true. This flag is only honored if the evaluation context used to evaluate this expression allows plug-in activation. Otherwise the flag is ignored and no plug-in loading takes place.Tests a system property by calling the System.getProperty
method and compares the result with the value specified through the value attribute.
property
: The name of an system property to test.value
: The expected value of the property. The value is interpreted as a string value.This element is used to perform an equals check of the object in focus. The expression returns EvaluationResult.TRUE
if the object is equal to the value provided by the attribute value. Otherwise EvaluationResult.FALSE
is returned.
value
: The expected value. The value provided as a string is converted into a Java base type using the same rules as for the value attribute of the test expression.This element is used to test the number of elements in a collection.
value
: An expression to specify the number of elements in a list. Following wildcard characters can be used:*
: any number of elements?
: no elements or one element+
: one or more elements!
: no elementsinteger value
: the list must contain the exact number of elementsThis element changes the object to be inspected for all its child element to the object referenced by the given variable. If the variable can not be resolved then the expression will throw an ExpressionException
when evaluating it. The children of a with expression are combined using the and operator.
variable
: The name of the variable to be used for further inspection. It is up to the evaluator of an extension point to provide the variable in the variable pool.This element changes the object to be inspected for all its child element to the object referenced by the given variable. If the variable can not be resolved then the expression will throw an ExpressionException
when evaluating it. The children of a with expression are combined using the and operator.
variable
: The name of the variable to be resolved. This variable is then used as the object in focus for child element evaluation. It is up to the evaluator of an extension point to provide a corresponding variable resolver (see berry::IVariableResolver) through the evaluation context passed to the root expression element when evaluating the expression.args
: Additional arguments passed to the variable resolver. Multiple arguments are seperated by commas. Each individual argument is converted into a Java base type using the same rules as defined for the value attribute of the test expression.This element is used to adapt the object in focus to the type specified by the attribute type. The expression returns not loaded if either the adapter or the type referenced isn't loaded yet. It throws an ExpressionException
during evaluation if the type name doesn't exist at all. The children of an adapt expression are combined using the and operator.
type
: the type to which the object in focus is to be adaptedThis element is used to iterate over a variable that is of type java.util.Collection
. If the object in focus is not of type java.util.Collection
then an ExpressionException
will be thrown while evaluating the expression.
operator
: Either "and" or "or". The operator defines how the child elements will be combined. If not specified, "and" will be used.ifEmpty
: The value return from the iterate expression if the collection is empty. If not specified then true
is returned when the operator equals "and" and false
is returned if the operator equals "or".This element is used to reference an expression from the org.blueberry.core.expressions.definitions
extension point. The expression definition will be evaluated within the current expression element using the current evaluation context.
definitionId
: the unique id of an expression from org.blueberry.core.expressions.definitions
org.blueberry.core.expressions.propertyTesters
This extension point allows to add properties to an already existing type. Those properties can then be used inside the expression language's test expression element.
point
: a fully qualified identifier of the target extension pointid
: an optional identifier of the extension instancename
: an optional name of the extension instanceid
: Unique identifier for the property tester.type
: The type to be extended by this property tester.namespace
: A unique id determining the name space the properties are added to.properties
: A comma separated list of properties provided by this property tester.class
: The name of the class that implements the testing methods. The class must be public and extend org.blueberry.core.expressions.PropertyTester
with a public 0-argument constructor.