Package org.wildfly.common.expression
Class ResolveContext<E extends Exception>
java.lang.Object
org.wildfly.common.expression.ResolveContext<E>
- Type Parameters:
E- the exception type that can be thrown by the expansion function
Deprecated, for removal: This API element is subject to removal in a future version.
The expression resolve context, which can be used to query the current expression key, write out expansions or
default values, or perform validation.
The expression context is not thread-safe and is not valid outside of the property expansion function body.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Expand the default value to the current target string builder.voidexpandDefault(StringBuilder target) Deprecated, for removal: This API element is subject to removal in a future version.Expand the default value to the given string builder.Deprecated, for removal: This API element is subject to removal in a future version.Expand the default value to a string.getKey()Deprecated, for removal: This API element is subject to removal in a future version.Get the expression resolution key, as a string.booleanDeprecated, for removal: This API element is subject to removal in a future version.Determine if the current expression has a default value.
-
Method Details
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version.Get the expression resolution key, as a string. If the key contains an expression, it will have been expanded unlessExpression.Flag.NO_RECURSE_KEYwas given. The result is not cached and will be re-expanded every time this method is called.- Returns:
- the expanded key (not
null) - Throws:
E- if the recursive expansion threw an exception
-
expandDefault
Deprecated, for removal: This API element is subject to removal in a future version.Expand the default value to the given string builder. If the default value contains an expression, it will have been expanded unlessExpression.Flag.NO_RECURSE_DEFAULTwas given. The result is not cached and will be re-expanded every time this method is called.- Parameters:
target- the string builder target- Throws:
E- if the recursive expansion threw an exception
-
expandDefault
Deprecated, for removal: This API element is subject to removal in a future version.Expand the default value to the current target string builder. If the default value contains an expression, it will have been expanded unlessExpression.Flag.NO_RECURSE_DEFAULTwas given. The result is not cached and will be re-expanded every time this method is called.- Throws:
E- if the recursive expansion threw an exception
-
getExpandedDefault
Deprecated, for removal: This API element is subject to removal in a future version.Expand the default value to a string. If the default value contains an expression, it will have been expanded unlessExpression.Flag.NO_RECURSE_DEFAULTwas given. The result is not cached and will be re-expanded every time this method is called.- Returns:
- the expanded string (not
null) - Throws:
E- if the recursive expansion threw an exception
-
hasDefault
public boolean hasDefault()Deprecated, for removal: This API element is subject to removal in a future version.Determine if the current expression has a default value.- Returns:
trueif there is a default value,falseotherwise
-
ResolveContextinstead.