public class TinyWebTemplateContext extends TemplateContextDefault implements TemplateContext
Constructor and Description |
---|
TinyWebTemplateContext(Map dataMap,
WebContext webContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
exist(String name)
检测参数是否存在
|
<T> T |
get(String name)
改写get方法,使得可以从父环境中查找,同时,也可以从子环境中查找 先找自己,再找子,再找父
|
WebContext |
getWebContext() |
clear, clearSubContext, contain, containNodeMap, createSubContext, existNodeMap, findNodeMap, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalContext, getTotalItemMap, put, putContext, putSubContext, remove, removeSubContext, renameKey, renameKeyNodeMap, setParent
get, put, putAll, remove, setItemMap, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearSubContext, createSubContext, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalItemMap, put, putSubContext, remove, removeSubContext, setParent
public TinyWebTemplateContext(Map dataMap, WebContext webContext)
public <T> T get(String name)
ContextImpl
get
in interface BaseContext
get
in class TemplateContextDefault
name
- 参数名称public WebContext getWebContext()
public boolean exist(String name)
BaseContext
exist
in interface BaseContext
exist
in class TemplateContextDefault
name
- 参数名称Copyright © 2006–2018 TinyGroup. All rights reserved.