|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ejen.ext.Messenger
Messages utility (static methods).
Usage (XSL stylesheet) |
---|
<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ... xmlns:msg="org.ejen.ext.Messenger" extension-element-prefixes="msg ..." exclude-result-prefixes="msg ..." version="1.0"> <xsl:output method="text" encoding="iso-8859-1"/> <xsl:template match="ejen"> <msg: |
Constructor Summary | |
protected |
Messenger()
Protected constructor (prevents instanciation). |
Method Summary | |
static void |
send(XSLProcessorContext context,
ElemExtensionCall elem)
Sends a message to the current EjenListener .
|
static void |
throwRuntimeException(XSLProcessorContext context,
ElemExtensionCall elem)
Throws a RuntimeException .
|
static void |
throwSQLException(XSLProcessorContext context,
ElemExtensionCall elem)
Throws a SQLException .
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Messenger()
Method Detail |
public static void send(XSLProcessorContext context, ElemExtensionCall elem)
EjenListener
.
<msg:send message="Hello {people[$i]/@name} !"/> |
context
- automatically passed by the xalan extension mechanism.elem
- automatically passed by the xalan extension mechanism.
WrappedRuntimeException
- with a XSL Exception
if something goes wrong.public static void throwSQLException(XSLProcessorContext context, ElemExtensionCall elem) throws SQLException
SQLException
.
<msg:throwSQLException message="Table not found" code="2"/> |
context
- automatically passed by the xalan extension mechanism.elem
- automatically passed by the xalan extension mechanism.
SQLException
- with supplied message/code.
WrappedRuntimeException
- if one of 'message' or 'code' attributes is missing, or if 'code'
cannot be parsed as an integer.public static void throwRuntimeException(XSLProcessorContext context, ElemExtensionCall elem)
RuntimeException
.
<msg:throwRuntimeException message="Didn't want to work anymore"/> |
context
- automatically passed by the xalan extension mechanism.elem
- automatically passed by the xalan extension mechanism.
RuntimeException
- with supplied message.
WrappedRuntimeException
- if the 'message' attribute is missing.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |