Class CompositeContext
java.lang.Object
com.atlassian.confluence.velocity.context.CompositeContext
- All Implemented Interfaces:
org.apache.velocity.context.Context
Simple immutable composite Velocity
Context implementation that delegates to a collection of other contexts.
The order of the contexts is significant as it checks them in iteration order. This context should be wrapped in a
VelocityContext or other chained context before use.- Since:
- 9.1
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompositeContext(Iterable<? extends org.apache.velocity.context.Context> contexts) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.velocity.context.ContextbooleanObject[]getKeys()Union of all keys for all contexts.static org.apache.velocity.context.ContextreverseComposite(@NonNull Iterable<? extends org.apache.velocity.context.Context> contexts)
-
Constructor Details
-
CompositeContext
-
-
Method Details
-
composite
public static org.apache.velocity.context.Context composite(@NonNull Iterable<? extends org.apache.velocity.context.Context> contexts) -
reverseComposite
public static org.apache.velocity.context.Context reverseComposite(@NonNull Iterable<? extends org.apache.velocity.context.Context> contexts) -
containsKey
- Specified by:
containsKeyin interfaceorg.apache.velocity.context.Context
-
get
- Specified by:
getin interfaceorg.apache.velocity.context.Context
-
getKeys
Union of all keys for all contexts.- Specified by:
getKeysin interfaceorg.apache.velocity.context.Context
-
put
- Specified by:
putin interfaceorg.apache.velocity.context.Context
-
remove
- Specified by:
removein interfaceorg.apache.velocity.context.Context
-