public class FieldExpansionTransformation extends AbstractTransformation
SdxObject.ConfigurationNode
Modifier and Type | Field and Description |
---|---|
protected Application |
app |
protected java.lang.StringBuffer |
charBuff |
protected java.lang.String |
defaultThesaurusId |
protected java.util.HashSet |
expandedTerms |
protected java.util.Hashtable |
expansionParams |
protected java.lang.String |
fieldName |
protected FieldList |
fields |
protected java.lang.String |
PARAM_NAME_DEPTH |
protected java.lang.String |
PARAM_NAME_LANG |
protected java.lang.String |
PARAM_NAME_TH |
protected SDXThesaurus |
thesaurus |
_resolver, PARAMETER_NAME_DISABLE, PARAMETER_NAME_ENABLE, parameters, transParameters
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
ATTRIBUTE_KEEP, ATTRIBUTE_SRC, ATTRIBUTE_TH, CLASS_NAME_SUFFIX, PACKAGE_QUALNAME
DEFAULT_ENCODING
Constructor and Description |
---|
FieldExpansionTransformation() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] c,
int start,
int len) |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Loads base configuration common to all transformations.
|
void |
endElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw) |
protected void |
expandField(java.lang.String fieldName,
java.lang.String fieldValue,
java.util.Hashtable expansionParams) |
protected boolean |
initToSax()
Init the DefaultContext class _xmlizable_objects with the objects in order to describ them in XML
|
void |
setApplication(Application app) |
void |
setFieldList(FieldList fields) |
void |
setThesaurus(SDXThesaurus thesaurus) |
void |
setThesaurus(java.lang.String id) |
void |
startElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw,
org.xml.sax.Attributes a) |
getClassNameSuffix, getParameters, initVolatileObjectsToSax, isStepEnabled, recycle, service, setParameters, shouldKeepResult, verifyConfigurationParameters
configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
setConsumer, setContentHandler, setLexicalHandler
getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
getId, setId
getDescription, setDescription
getEncoding, setEncoding
getLocale, getXmlLang, setLocale, setXmlLang
protected SDXThesaurus thesaurus
protected java.lang.String defaultThesaurusId
protected java.lang.String PARAM_NAME_DEPTH
protected java.lang.String PARAM_NAME_LANG
protected java.lang.String PARAM_NAME_TH
protected java.lang.StringBuffer charBuff
protected java.lang.String fieldName
protected java.util.Hashtable expansionParams
protected java.util.HashSet expandedTerms
protected Application app
protected FieldList fields
public void setApplication(Application app)
public void setFieldList(FieldList fields)
public void setThesaurus(SDXThesaurus thesaurus)
public void setThesaurus(java.lang.String id) throws SDXException
SDXException
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
AbstractTransformation
configure
in interface org.apache.avalon.framework.configuration.Configurable
configure
in class AbstractTransformation
configuration
- The configuration objectorg.apache.avalon.framework.configuration.ConfigurationException
public void startElement(java.lang.String uri, java.lang.String loc, java.lang.String raw, org.xml.sax.Attributes a) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.apache.cocoon.xml.AbstractXMLPipe
org.xml.sax.SAXException
public void characters(char[] c, int start, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.apache.cocoon.xml.AbstractXMLPipe
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String loc, java.lang.String raw) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.apache.cocoon.xml.AbstractXMLPipe
org.xml.sax.SAXException
protected void expandField(java.lang.String fieldName, java.lang.String fieldValue, java.util.Hashtable expansionParams) throws SDXException, org.xml.sax.SAXException
SDXException
org.xml.sax.SAXException
protected boolean initToSax()
AbstractSdxXMLPipe
initToSax
in class AbstractTransformation
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.