context.java

来自「pojo的mvc框架」· Java 代码 · 共 46 行

JAVA
46
字号
package xyz.frame.scope;/** * A simple scope (context). *  * @author Guilherme Silveira */public interface Context {	/**	 * Sets an attribute	 * 	 * @param name	 *            name	 * @param value	 *            value	 */	void setAttribute(String name, Object value);	/**	 * Retrieves an attribute	 * 	 * @param name	 *            name	 * @return value or null if not found	 */	Object getAttribute(String name);	/**	 * Whether it contains an attribute	 * 	 * @param name	 *            name	 * @return true if contained	 */	boolean hasAttribute(String name);	/**	 * Removes an attribute	 * 	 * @param name	 *            name	 * @return value	 */	Object removeAttribute(String name);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?