public class TinyVelocityContext extends ContextImpl
Constructor and Description |
---|
TinyVelocityContext(Map map,
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
public TinyVelocityContext(Map map, WebContext webContext)
public <T> T get(String name)
ContextImpl
get
in interface BaseContext
get
in class ContextImpl
name
- 参数名称public WebContext getWebContext()
public boolean exist(String name)
BaseContext
exist
in interface BaseContext
exist
in class ContextImpl
name
- 参数名称Copyright © 2006–2018 TinyGroup. All rights reserved.