|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.chaperon.process.LexicalProcessor
org.apache.cocoon.transformation.LexicalTransformer
public class LexicalTransformer
This transfomer transforms special mark text part of a XML file into lexemes by using a lexicon file.
Input:
<text xmlns="http://chaperon.sourceforge.net/schema/text/1.0"> Text 123 bla </text>
were transform into the following output:
<lexemes xmlns="http://chaperon.sourceforge.net/schema/lexemes/1.0"> <lexeme symbol="word" text="Text"/> <lexeme symbol="number" text="123"/> <lexeme symbol="word" text="bla"/> </lexemes>
| Nested Class Summary | |
|---|---|
static class |
LexicalTransformer.LexicalAutomatonEntry
This class represent a entry in a store to cache the lexical automaton. |
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.chaperon.process.LexicalProcessor |
|---|
ERROR, GROUP, LEXEME, NS, NS_OUTPUT, OUTPUT, TEXT |
| Fields inherited from interface org.apache.cocoon.transformation.Transformer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
LexicalTransformer()
|
|
| Method Summary | |
|---|---|
void |
dispose()
The dispose operation is called at the end of a components lifecycle. |
void |
enableLogging(Logger logger)
Provide component with a logger. |
Serializable |
getKey()
Generate the unique key. |
SourceValidity |
getValidity()
Generate the validity object. |
void |
parameterize(Parameters parameters)
Provide component with parameters. |
void |
recycle()
Recycle this component. |
void |
service(ServiceManager manager)
Pass the ServiceManager to the object. |
void |
setConsumer(XMLConsumer consumer)
Set the XMLConsumer that will receive XML data. |
void |
setup(SourceResolver resolver,
Map objectmodel,
String src,
Parameters parameters)
Set the SourceResolver, objectModel Map, the source and sitemap Parameters used to process the request. |
| Methods inherited from class net.sourceforge.chaperon.process.LexicalProcessor |
|---|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, handleEndDocument, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, setGrouping, setLexicalAutomaton, setLexicalHandler, setLocalizable, setLog, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping |
| 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 |
|---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Constructor Detail |
|---|
public LexicalTransformer()
| Method Detail |
|---|
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledlogger - the loggerpublic void service(ServiceManager manager)
service in interface Serviceablemanager - The ServiceManager which this Serviceable uses.
public void parameterize(Parameters parameters)
throws ParameterException
parameterize in interface Parameterizableparameters - the parameters
ParameterException - if parameters are invalidpublic void setConsumer(XMLConsumer consumer)
XMLConsumer that will receive XML data.
setConsumer in interface XMLProducerconsumer -
public void setup(SourceResolver resolver,
Map objectmodel,
String src,
Parameters parameters)
throws ProcessingException,
SAXException,
IOException
setup in interface SitemapModelComponentresolver - Source resolverobjectmodel - Object modelsrc - Sourceparameters - Parameters
IOException
ProcessingException
SAXExceptionpublic Serializable getKey()
getKey in interface CacheableProcessingComponentpublic SourceValidity getValidity()
getValidity in interface CacheableProcessingComponentnull if the component is currently not
cacheable.public void recycle()
null.
recycle in interface Recyclablepublic void dispose()
dispose in interface Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||