public class DefaultPropertyExpansionContext extends StringToObjectMap implements PropertyExpansionContext
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DefaultPropertyExpansionContext(ModelItem modelItem) |
Modifier and Type | Method and Description |
---|---|
String |
expand(String content) |
Object |
get(Object key) |
ModelItem |
getModelItem() |
StringToObjectMap |
getProperties() |
Object |
getProperty(String name) |
String[] |
getPropertyNames() |
boolean |
hasProperty(String name) |
Object |
removeProperty(String name) |
void |
setProperties(PropertyExpansionContext context) |
void |
setProperty(String name,
Object value) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public DefaultPropertyExpansionContext(ModelItem modelItem)
public String expand(String content)
expand
in interface PropertyExpansionContext
public ModelItem getModelItem()
getModelItem
in interface PropertyExpansionContext
public Object getProperty(String name)
getProperty
in interface PropertyExpansionContext
public String[] getPropertyNames()
getPropertyNames
in interface PropertyExpansionContext
public boolean hasProperty(String name)
hasProperty
in interface PropertyExpansionContext
public Object removeProperty(String name)
removeProperty
in interface PropertyExpansionContext
public void setProperty(String name, Object value)
setProperty
in interface PropertyExpansionContext
public void setProperties(PropertyExpansionContext context)
public StringToObjectMap getProperties()
getProperties
in interface PropertyExpansionContext
Copyright © 2019. All Rights Reserved.