public class ModelBindings extends Object
$with and $onlywith
EOL annotations.| Modifier and Type | Class and Description |
|---|---|
static class |
ModelBindings.ExclusiveMode
Model binding exclusivity mode enumeration.
|
| Constructor and Description |
|---|
ModelBindings(Map<String,String> mapping,
ModelBindings.ExclusiveMode mode)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ModelBindings.ExclusiveMode |
getExclusiveMode()
Returns the model binding exclusivity mode of this binding.
|
Map<String,String> |
getMappings()
Returns an unmodifiable map where the keys are the names of the models to
be renamed, and their respective values are the names they should be
renamed to.
|
String |
toString() |
public ModelBindings(Map<String,String> mapping, ModelBindings.ExclusiveMode mode) throws EolRuntimeException
mapping - Map from the source models to their new names after the
rename.mode - Model binding exclusivity mode enumeration. Indicates whether
models not mentioned in the map should be included, or whether
they should be excluded.EolRuntimeExceptionpublic ModelBindings.ExclusiveMode getExclusiveMode()
public Map<String,String> getMappings()
Collections.unmodifiableMap(Map)Copyright © 2016. All rights reserved.