public static final class Context.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Context |
build()
Build a context stack.
|
Context.Builder |
combine(java.util.Map<java.lang.String,?> model)
Combine all the map entries into the context stack.
|
Context.Builder |
combine(java.lang.String name,
java.lang.Object model)
Combine the given model using the specified name.
|
Context.Builder |
push(ValueResolver... resolvers)
Add one or more value resolver to the defaults defined by
ValueResolver.VALUE_RESOLVERS . |
Context.Builder |
resolver(ValueResolver... resolvers)
Set the value resolvers to use.
|
public Context.Builder combine(java.lang.String name, java.lang.Object model)
name
- The variable's name. Required.model
- The model data.public Context.Builder combine(java.util.Map<java.lang.String,?> model)
model
- The model data.public Context.Builder resolver(ValueResolver... resolvers)
resolvers
- The value resolvers. Required.public Context.Builder push(ValueResolver... resolvers)
ValueResolver.VALUE_RESOLVERS
.resolvers
- The value resolvers. Required.public Context build()
Copyright © 2010 - 2020 Adobe. All Rights Reserved