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
 
构造方法摘要
EscapeJavaScriptReference()
           
 
方法摘要
protected  String escape(Object text)
          Escapes the characters in a String to be suitable for use in JavaScript.
protected  String getMatchAttribute()
           
 
从类 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.