Class EscapeXmlReference
java.lang.Object
org.apache.velocity.app.event.implement.EscapeReference
org.apache.velocity.app.event.implement.EscapeXmlReference
- All Implemented Interfaces:
EventHandler,ReferenceInsertionEventHandler,RuntimeServicesAware
Escape all XML entities.
- Since:
- 1.5
- Author:
- wglass
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.velocity.app.event.ReferenceInsertionEventHandler
ReferenceInsertionEventHandler.referenceInsertExecutor -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.velocity.app.event.implement.EscapeReference
getRuntimeServices, referenceInsert, setRuntimeServices
-
Constructor Details
-
EscapeXmlReference
public EscapeXmlReference()
-
-
Method Details
-
escape
Escape all XML entities.- Specified by:
escapein classEscapeReference- Parameters:
text-- Returns:
- An escaped String.
- See Also:
-
getMatchAttribute
Description copied from class:EscapeReferenceSpecify the configuration attribute that specifies the regular expression. Ideally should be in a formeventhandler.escape.XYZ.matchwhere
XYZis the type of escaping being done.- Specified by:
getMatchAttributein classEscapeReference- Returns:
- attribute "eventhandler.escape.xml.match"
-