public class DisplayNameRule extends FeatureRule
Digester rule for the <display-name> element.
| Constructor and Description |
|---|
DisplayNameRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes)
Create or retrieve an instance of
DisplayNameBean
and push it on to the object statck. |
void |
body(java.lang.String namespace,
java.lang.String name,
java.lang.String text)
Save the body text of this element.
|
void |
end(java.lang.String namespace,
java.lang.String name)
Pop the
DisplayNameBean off the top of the stack. |
void |
finish()
No finish processing is required.
|
java.lang.String |
toString() |
public void begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
Create or retrieve an instance of DisplayNameBean
and push it on to the object statck.
begin in class org.apache.commons.digester.Rulenamespace - the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the element has
no namespacename - the local name if the parser is namespace aware, or just
the element name otherwiseattributes - The attribute list of this elementjava.lang.IllegalStateException - if the parent stack element is not
of type FeatureBeanjava.lang.Exceptionpublic void body(java.lang.String namespace,
java.lang.String name,
java.lang.String text)
throws java.lang.Exception
Save the body text of this element.
body in class org.apache.commons.digester.Rulenamespace - the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the element has
no namespacename - the local name if the parser is namespace aware, or just
the element name otherwisetext - The text of the body of this elementjava.lang.Exceptionpublic void end(java.lang.String namespace,
java.lang.String name)
throws java.lang.Exception
Pop the DisplayNameBean off the top of the stack.
end in class org.apache.commons.digester.Rulenamespace - the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the element has
no namespacename - the local name if the parser is namespace aware, or just
the element name otherwisejava.lang.IllegalStateException - if the popped object is not
of the correct typejava.lang.Exceptionpublic void finish()
throws java.lang.Exception
No finish processing is required.
finish in class org.apache.commons.digester.Rulejava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.