gboat2.base.core.util
类 EscapeJavaScriptReference
java.lang.Object
org.apache.velocity.app.event.implement.EscapeReference
gboat2.base.core.util.EscapeJavaScriptReference
- 所有已实现的接口:
- org.apache.velocity.app.event.EventHandler, org.apache.velocity.app.event.ReferenceInsertionEventHandler, org.apache.velocity.util.RuntimeServicesAware
public class EscapeJavaScriptReference
- extends org.apache.velocity.app.event.implement.EscapeReference
Escapes the characters in a String to be suitable for use in JavaScript.
- 从以下版本开始:
- 1.5
- 作者:
- wglass
- 另请参见:
- StringEscapeUtils
从接口 org.apache.velocity.app.event.ReferenceInsertionEventHandler 继承的嵌套类/接口 |
org.apache.velocity.app.event.ReferenceInsertionEventHandler.referenceInsertExecutor |
从类 org.apache.velocity.app.event.implement.EscapeReference 继承的方法 |
getRuntimeServices, referenceInsert, setRuntimeServices |
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EscapeJavaScriptReference
public EscapeJavaScriptReference()
escape
protected String escape(Object text)
- Escapes the characters in a String to be suitable for use in JavaScript.
- 指定者:
- 类
org.apache.velocity.app.event.implement.EscapeReference
中的 escape
- 参数:
text
-
- 返回:
- An escaped String.
- 另请参见:
- StringEscapeUtils
getMatchAttribute
protected String getMatchAttribute()
- 指定者:
- 类
org.apache.velocity.app.event.implement.EscapeReference
中的 getMatchAttribute
- 返回:
- attribute "eventhandler.escape.javascript.match"
Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.