|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.XMLFilterImpl org.apache.cocoon.components.language.markup.LogicsheetFilter org.apache.cocoon.components.language.markup.xsp.XSPExpressionFilter
public class XSPExpressionFilter
Filter attributes and text and expand {#expr} to xsp:attribute and xsp:expr elements.
Nested Class Summary | |
---|---|
static class |
XSPExpressionFilter.XMLPipeAdapter
|
Field Summary |
---|
Fields inherited from class org.apache.cocoon.components.language.markup.LogicsheetFilter |
---|
locator |
Constructor Summary | |
---|---|
XSPExpressionFilter(XSPMarkupLanguage markup)
|
Method Summary | |
---|---|
protected void |
addAttribute(AttributesImpl attribs,
String name,
String value)
Add an attribute if it is neither null nor empty (length 0). |
void |
characters(char[] ch,
int start,
int length)
Handle characters. |
void |
endElement(String uri,
String loc,
String raw)
Flush the current expression. |
void |
handleExpression(char[] chars,
int start,
int length)
Wrap expressions in xsp:expr tags. |
void |
handleText(char[] chars,
int start,
int length)
Forward text to parent class. |
void |
startDocument()
Create a new . |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes attribs)
Start a new element. |
Methods inherited from class org.apache.cocoon.components.language.markup.LogicsheetFilter |
---|
setDocumentLocator, setNamespaceMap, setParent, startPrefixMapping |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSPExpressionFilter(XSPMarkupLanguage markup)
Method Detail |
---|
public void startDocument() throws SAXException
XSPExpressionFilter
.
startDocument
in interface ContentHandler
startDocument
in class XMLFilterImpl
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes attribs) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
SAXException
ContentHandler.startElement(java.lang.String, java.lang.String,
java.lang.String, org.xml.sax.Attributes)
public void endElement(String uri, String loc, String raw) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class XMLFilterImpl
SAXException
ContentHandler.characters(char[], int, int)
public void handleText(char[] chars, int start, int length) throws SAXException
handleText
in interface XSPExpressionParser.Handler
SAXException
XSPExpressionParser.Handler.handleText(char[],
int, int)
public void handleExpression(char[] chars, int start, int length) throws SAXException
handleExpression
in interface XSPExpressionParser.Handler
SAXException
XSPExpressionParser.Handler.handleExpression(char[],
int, int)
protected void addAttribute(AttributesImpl attribs, String name, String value)
null
nor empty (length 0).
attribs
- The attributesname
- The attribute namevalue
- The attribute value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |