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, isToSaxInitializedcontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumerATTRIBUTE_KEEP, ATTRIBUTE_SRC, ATTRIBUTE_TH, CLASS_NAME_SUFFIX, PACKAGE_QUALNAMEDEFAULT_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, verifyConfigurationParametersconfigureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResourcescomment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMappingsetConsumer, setContentHandler, setLexicalHandlergetLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingcomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitygetId, setIdgetDescription, setDescriptiongetEncoding, setEncodinggetLocale, getXmlLang, setLocale, setXmlLangprotected 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
SDXExceptionpublic void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
AbstractTransformationconfigure in interface org.apache.avalon.framework.configuration.Configurableconfigure in class AbstractTransformationconfiguration - The configuration objectorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic 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.ContentHandlerstartElement in class org.apache.cocoon.xml.AbstractXMLPipeorg.xml.sax.SAXExceptionpublic void characters(char[] c,
int start,
int len)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.apache.cocoon.xml.AbstractXMLPipeorg.xml.sax.SAXExceptionpublic 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.ContentHandlerendElement in class org.apache.cocoon.xml.AbstractXMLPipeorg.xml.sax.SAXExceptionprotected void expandField(java.lang.String fieldName,
java.lang.String fieldValue,
java.util.Hashtable expansionParams)
throws SDXException,
org.xml.sax.SAXException
SDXExceptionorg.xml.sax.SAXExceptionprotected boolean initToSax()
AbstractSdxXMLPipeinitToSax in class AbstractTransformationCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.