|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.digester.Rule
org.apache.commons.digester.NodeCreateRule
com.sun.faces.config.rules.DescriptionTextRule
public class DescriptionTextRule
Digester rule for the <description>
element,
used to absorb the body content of the matching element even if it
contains mixed markup and body content, and then save it as the
value of the description
property of the corresponding
DescriptionBean
instance..
Field Summary |
---|
Fields inherited from class org.apache.commons.digester.Rule |
---|
digester, namespaceURI |
Constructor Summary | |
---|---|
DescriptionTextRule()
Construct a variant of NodeCreateRule that will
create a DocumentFragment object. |
Method Summary | |
---|---|
void |
begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes)
Ensure that the object at the top of the stack is a DescriptionBean , then perform the standard
superclass processing. |
void |
body(java.lang.String namespace,
java.lang.String name,
java.lang.String text)
No body processing is required. |
void |
end(java.lang.String namespace,
java.lang.String name)
Serialize the resulting DOM into text, and use it to set the description property of the parent
DescriptionBean . |
void |
finish()
No finish processing is required. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.commons.digester.NodeCreateRule |
---|
end |
Methods inherited from class org.apache.commons.digester.Rule |
---|
begin, body, getDigester, getNamespaceURI, setDigester, setNamespaceURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DescriptionTextRule() throws java.lang.Exception
Construct a variant of NodeCreateRule
that will
create a DocumentFragment
object.
java.lang.Exception
Method Detail |
---|
public void begin(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attributes) throws java.lang.Exception
Ensure that the object at the top of the stack is a
DescriptionBean
, then perform the standard
superclass processing.
begin
in class org.apache.commons.digester.NodeCreateRule
namespace
- 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 element
java.lang.IllegalStateException
- if the parent stack element is not
of type FeatureBean
java.lang.Exception
public void body(java.lang.String namespace, java.lang.String name, java.lang.String text) throws java.lang.Exception
No body processing is required.
body
in class org.apache.commons.digester.Rule
namespace
- 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 element
java.lang.Exception
public void end(java.lang.String namespace, java.lang.String name) throws java.lang.Exception
Serialize the resulting DOM into text, and use it to set the
description
property of the parent
DescriptionBean
.
end
in class org.apache.commons.digester.Rule
namespace
- 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 otherwise
java.lang.IllegalStateException
- if the popped object is not
of the correct type
java.lang.Exception
public void finish() throws java.lang.Exception
No finish processing is required.
finish
in class org.apache.commons.digester.Rule
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |