org.apache.tapestry.util.xml
Class BaseRule
java.lang.Object
|
+--org.apache.tapestry.util.xml.BaseRule
- All Implemented Interfaces:
- IRule
- Direct Known Subclasses:
- org.apache.tapestry.script.AbstractTokenRule, ScriptRule
- public class BaseRule
- extends Object
- implements IRule
Base implementation of IRule
that
does nothing.
- Since:
- 3.0
- Version:
- $Id: BaseRule.java,v 1.1 2003/04/25 01:18:33 hlship Exp $
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseRule
public BaseRule()
getAttribute
protected String getAttribute(org.xml.sax.Attributes attributes,
String name)
startElement
public void startElement(RuleDirectedParser parser,
org.xml.sax.Attributes attributes)
- Description copied from interface:
IRule
- Invoked just after the rule is pushed onto the rule stack. Typically, a Rule will
use the information to create a new object and push it onto the object stack.
If the rule needs to know about the element (rather than the attributes), it
may obtain the URI, localName and qName from the parser.
- Specified by:
startElement
in interface IRule
endElement
public void endElement(RuleDirectedParser parser)
- Description copied from interface:
IRule
- Invoked just after the rule is popped off the rule stack.
- Specified by:
endElement
in interface IRule
ignorableWhitespace
public void ignorableWhitespace(RuleDirectedParser parser,
char[] ch,
int start,
int length)
- Description copied from interface:
IRule
- Invoked when ignorable whitespace is found.
- Specified by:
ignorableWhitespace
in interface IRule
characters
public void characters(RuleDirectedParser parser,
char[] ch,
int start,
int length)
- Description copied from interface:
IRule
- Invoked when real content is found.
- Specified by:
characters
in interface IRule