|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.apache.cocoon.transformation.FilterTransformer
public class FilterTransformer
| Field Summary | |
|---|---|
protected int |
blocknr
|
protected int |
count
|
protected int |
counter
|
protected int |
currentBlocknr
|
protected String |
elementName
|
protected boolean |
foundIt
|
protected String |
parentName
|
protected boolean |
skip
|
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
| Fields inherited from interface org.apache.cocoon.transformation.Transformer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
FilterTransformer()
|
|
| Method Summary | |
|---|---|
void |
characters(char[] c,
int start,
int len)
Receive notification of character data. |
void |
comment(char[] ch,
int start,
int len)
Report an XML comment anywhere in the document. |
void |
endCDATA()
Report the end of a CDATA section. |
void |
endElement(String uri,
String name,
String raw)
Receive notification of the end of an element. |
void |
endEntity(String name)
Report the end of an entity. |
Serializable |
getKey()
Generate the unique key. |
SourceValidity |
getValidity()
Generate the validity object. |
void |
processingInstruction(String target,
String data)
Receive notification of a processing instruction. |
void |
setup(SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
BEGIN SitemapComponent methods |
void |
startCDATA()
Report the start of a CDATA section. |
void |
startElement(String uri,
String name,
String raw,
Attributes attributes)
BEGIN SAX ContentHandler handlers |
void |
startEntity(String name)
Report the beginning of an entity. |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
|---|
endDocument, endDTD, endPrefixMapping, ignorableWhitespace, setDocumentLocator, skippedEntity, startDocument, startDTD, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
recycle, setConsumer, setContentHandler, setLexicalHandler |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
endDocument, endPrefixMapping, ignorableWhitespace, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
endDTD, startDTD |
| Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
|---|
setConsumer |
| Field Detail |
|---|
protected int counter
protected int count
protected int blocknr
protected int currentBlocknr
protected String elementName
protected String parentName
protected boolean skip
protected boolean foundIt
| Constructor Detail |
|---|
public FilterTransformer()
| Method Detail |
|---|
public void setup(SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
throws ProcessingException,
SAXException,
IOException
setup in interface SitemapModelComponentProcessingException
SAXException
IOExceptionpublic Serializable getKey()
getKey in interface CacheableProcessingComponent0 if the component
is currently not cacheable.public SourceValidity getValidity()
getValidity in interface CacheableProcessingComponentnull if the
component is currently not cacheable.
public void startElement(String uri,
String name,
String raw,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class AbstractXMLPipeuri - The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name - The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw - The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.attributes - The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
SAXException
public void endElement(String uri,
String name,
String raw)
throws SAXException
AbstractXMLPipe
endElement in interface ContentHandlerendElement in class AbstractXMLPipeuri - The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name - The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw - The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.
SAXException
public void characters(char[] c,
int start,
int len)
throws SAXException
AbstractXMLPipe
characters in interface ContentHandlercharacters in class AbstractXMLPipec - The characters from the XML document.start - The start position in the array.len - The number of characters to read from the array.
SAXException
public void processingInstruction(String target,
String data)
throws SAXException
AbstractXMLPipe
processingInstruction in interface ContentHandlerprocessingInstruction in class AbstractXMLPipetarget - The processing instruction target.data - The processing instruction data, or null if none was
supplied.
SAXException
public void startEntity(String name)
throws SAXException
AbstractXMLPipe
startEntity in interface LexicalHandlerstartEntity in class AbstractXMLPipename - The name of the entity. If it is a parameter entity, the
name will begin with '%'.
SAXException
public void endEntity(String name)
throws SAXException
AbstractXMLPipe
endEntity in interface LexicalHandlerendEntity in class AbstractXMLPipename - The name of the entity that is ending.
SAXException
public void startCDATA()
throws SAXException
AbstractXMLPipe
startCDATA in interface LexicalHandlerstartCDATA in class AbstractXMLPipeSAXException
public void endCDATA()
throws SAXException
AbstractXMLPipe
endCDATA in interface LexicalHandlerendCDATA in class AbstractXMLPipeSAXException
public void comment(char[] ch,
int start,
int len)
throws SAXException
AbstractXMLPipe
comment in interface LexicalHandlercomment in class AbstractXMLPipech - An array holding the characters in the comment.start - The starting position in the array.len - The number of characters to use from the array.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||