org.apache.commons.jelly.tags.regexp
Class RegexpTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.regexp.RegexpTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
ContainsTag, MatchTag

public abstract class RegexpTag
extends org.apache.commons.jelly.TagSupport

Base class for tags using the Oro Regexp library.

Version:
$Revision: 155420 $
Author:
Christian Amor Kvalheim

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
RegexpTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
protected  org.apache.oro.text.regex.Pattern getPattern()
           
protected  org.apache.oro.text.regex.Perl5Matcher getPatternMatcher()
           
protected abstract  boolean getResult()
           
protected  java.lang.String getText()
           
 void setExpr(java.lang.String expr)
           
 void setScope(java.lang.String scope)
          Sets the variable scope for this variable.
 void setText(java.lang.String text)
           
 void setVar(java.lang.String var)
           
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexpTag

public RegexpTag()
Method Detail

getText

protected final java.lang.String getText()

getPattern

protected final org.apache.oro.text.regex.Pattern getPattern()

getPatternMatcher

protected final org.apache.oro.text.regex.Perl5Matcher getPatternMatcher()

setExpr

public final void setExpr(java.lang.String expr)
                   throws org.apache.oro.text.regex.MalformedPatternException
Throws:
org.apache.oro.text.regex.MalformedPatternException

setText

public final void setText(java.lang.String text)

setVar

public final void setVar(java.lang.String var)

setScope

public final void setScope(java.lang.String scope)
Sets the variable scope for this variable. For example setting this value to 'parent' will set this value in the parent scope. When Jelly is run from inside a Servlet environment then other scopes will be available such as 'request', 'session' or 'application'. Other applications may implement their own custom scopes.


doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException

getResult

protected abstract boolean getResult()


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.