public interface ILet
Represents a variable assignment for use in Metaschema module constraints.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the let variable.Get the remarks associated with the let statement.Information about the source resource containing the let statement.Get the Metapath expression to use to query the value.static ILetof(IEnhancedQName name, IMetapathExpression valueExpression, ISource source, MarkupMultiline remarks) Create a new Let expression.static ILetof(IEnhancedQName name, String valueExpression, ISource source, MarkupMultiline remarks) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
of
@NonNull @Deprecated(since="2.2.0", forRemoval=true) static ILet of(@NonNull IEnhancedQName name, @NonNull String valueExpression, @NonNull ISource source, @Nullable MarkupMultiline remarks) Deprecated, for removal: This API element is subject to removal in a future version.Create a new Let expression by compiling the provided Metapath expression string.This method is deprecated. Callers should use
of(IEnhancedQName, IMetapathExpression, ISource, MarkupMultiline)instead.- Parameters:
name- the let expression variable namevalueExpression- a Metapath expression string representing the variable valuesource- the source descriptor for the resource containing the constraintremarks- remarks about the let statement- Returns:
- the original let statement with the same name or
null
-
of
@NonNull static ILet of(@NonNull IEnhancedQName name, @NonNull IMetapathExpression valueExpression, @NonNull ISource source, @Nullable MarkupMultiline remarks) Create a new Let expression.- Parameters:
name- the let expression variable namevalueExpression- a Metapath expression representing the variable valuesource- the source descriptor for the resource containing the constraintremarks- remarks about the let statement- Returns:
- the original let statement with the same name or
null
-
getName
Get the name of the let variable.- Returns:
- the name
-
getValueExpression
Get the Metapath expression to use to query the value.- Returns:
- the Metapath expression to use to query the value
-
getSource
Information about the source resource containing the let statement.- Returns:
- the source information
-
getRemarks
Get the remarks associated with the let statement.- Returns:
- the remark or
nullif no remarks are defined
-