|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.blueworld.lassopro.LassoTagModule
Base class for any tag module.
Most tag modules output data onto the web page, though some tags may
perform other actions based on the parameters passed to them.
Every LassoTagModule
must implement registerLassoModule
method, and one or more methods with the same signature as TAG_METHOD_PROTOTYPE
.
Lasso calls registerLassoModule
once at startup to give this
module a chance to register its tags. LassoTagModule
must then
call registerTagModule
as many times as there are tags implemented by this module.
Field Summary | |
static int |
FLAG_ASYNC
Async tags run asynchronously in their own thread. |
static int |
FLAG_CONTAINER
Container tags have opening and closing. |
static int |
FLAG_INITIALIZER
Type initializer tags can have their own members. |
static int |
FLAG_LOOPING
Looping tags keep track of the loop count |
static int |
FLAG_SKIP_SECURITY_CHECK
CAUTION! |
static int |
FLAG_SUBSTITUTION
Regular substitution tag. |
Fields inherited from interface com.blueworld.lassopro.LassoJavaModule |
ERR_NOERR |
Constructor Summary | |
protected |
LassoTagModule()
|
Method Summary | |
protected void |
registerTagModule(java.lang.String moduleName,
java.lang.String tagName,
java.lang.String methodName,
int flags,
java.lang.String description)
Use this method to register substitution tags implemented by your module. |
int |
TAG_METHOD_PROTOTYPE(LassoCall lasso,
int action)
A prototype for all tag methods registered by registerTagModule .
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.blueworld.lassopro.LassoJavaModule |
registerLassoModule |
Field Detail |
public static final int FLAG_INITIALIZER
public static final int FLAG_SUBSTITUTION
public static final int FLAG_ASYNC
public static final int FLAG_CONTAINER
public static final int FLAG_SKIP_SECURITY_CHECK
public static final int FLAG_LOOPING
Constructor Detail |
protected LassoTagModule()
Method Detail |
protected void registerTagModule(java.lang.String moduleName, java.lang.String tagName, java.lang.String methodName, int flags, java.lang.String description)
registerTagModule
as many times as there are tags implemented in your module.
moduleName
- name of the module as returned by [Lasso_TagModuleName]
LDML tagtagName
- name of the custom LDML tag implemented by this modulemethodName
- Lasso will call this method every time it finds tagName
tag in a xxx.lasso
format fileflags
- one or more logically or'ed FLAG
constantsdescription
- optional tag info, such as brief description of this tag usagepublic int TAG_METHOD_PROTOTYPE(LassoCall lasso, int action)
registerTagModule
.
Since methods are being registered by name, they must exactly match
the values passed in a tagName
parameter of registerTagModule
call.
action
- reserved for future use;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |