public class BasicOAIMetadataFormat extends AbstractOAIMetadataFormat implements org.apache.avalon.framework.service.Serviceable
OAIObject.Node| Modifier and Type | Field and Description |
|---|---|
protected java.util.Hashtable |
aggregatedFields
Object for temporary storage of aggregated sdx fields
|
protected java.lang.String |
ATTRIBUTE_NAME_METADATA_PREFIX
Configuration node names
|
protected java.lang.String |
ATTRIBUTE_NAME_NAME
Configuration node names
|
protected java.lang.String |
ATTRIBUTE_NAME_NAMESPACE
Configuration node names
|
protected java.lang.String |
ATTRIBUTE_NAME_REPEATED
Configuration node names
|
protected java.lang.String |
ATTRIBUTE_NAME_ROOT_ELEMENT
Configuration node names
|
protected java.lang.String |
ATTRIBUTE_NAME_SCHEMA_URL
Configuration node names
|
protected java.lang.String |
ATTRIBUTE_NAME_SDXFIELD
Configuration node names
|
protected java.lang.String |
ATTRIBUTE_NAME_SEPARATOR
Configuration node names
|
protected java.lang.String |
ATTRIBUTE_VALUE_CONCATENATE
Configuration node names
|
protected org.apache.avalon.framework.parameters.Parameters |
concatenateFields
Parameters object containing information about which sdx fields to concatenate
|
protected java.lang.String |
DEFAULT_CONCATENATED_FIELD_SEPARATOR
Default separator for field concatenation
|
protected java.lang.String |
ELEMENT_NAME_OAI_FIELD
Configuration node names
|
protected java.lang.String |
ELEMENT_NAME_OAI_FIELDS
Configuration node names
|
protected org.apache.avalon.framework.service.ServiceManager |
manager
The service manager for this object
|
protected Pipeline |
pipe
The pipeline for for this object
|
formatName, metadataMappings, namespace, prefix, rootElement, schemaUrl_context, loggercontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumerHTTP_HEADER_NAME_FROM, HTTP_HEADER_NAME_USER_AGENT, NUMBER_RECORDS_PER_RESPONSE, STRING_DATEFORMAT_GRANULARITY_DAY, STRING_DATEFORMAT_GRANULARITY_SECOND| Constructor and Description |
|---|
BasicOAIMetadataFormat() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
aggregateFields(java.lang.String fieldName,
java.lang.String valueToConcat)
Aggregates field values to temporary storage
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configures this object
|
protected void |
configureFields(org.apache.avalon.framework.configuration.Configuration configuration)
Configures field mappings
|
protected void |
configurePipeline(org.apache.avalon.framework.configuration.Configuration configuration)
Configures the pipeline for process documents and search fields
|
void |
endMetadataFormatRootElement()
Sends any aggregated fields before sending the END
event for the root element of the metadata format
|
Pipeline |
getAddRootAttributePipe()
Retrieves a special pipeline for
adding an attribute to the root element
of the metadata format
|
Pipeline |
getPipeline()
Retrieves the pipeline for processing
documents into metadata
|
protected void |
sendAggregatedFields()
Sends all aggregatged fields
|
void |
sendElement(java.lang.String origName,
java.lang.String value)
Sends an element to the object's consumer
doing any aggregation and/or concatenation
|
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager)
Establishes the service manager for this object
|
getMappings, getName, getNamespace, getPrefix, getSchemaUrl, prepareAndSendElement, setMappings, setName, setNamespace, setPrefix, setSchemaUrl, startMetadataFormatRootElement, toSAXcontextualize, enableLogging, endElement, getContext, sendElement, sendElementContent, startElementcharacters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMappingrecycle, setConsumer, setContentHandler, setLexicalHandlergetLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMappingprotected org.apache.avalon.framework.service.ServiceManager manager
protected Pipeline pipe
protected org.apache.avalon.framework.parameters.Parameters concatenateFields
protected java.util.Hashtable aggregatedFields
protected java.lang.String DEFAULT_CONCATENATED_FIELD_SEPARATOR
protected final java.lang.String ELEMENT_NAME_OAI_FIELDS
protected final java.lang.String ELEMENT_NAME_OAI_FIELD
protected final java.lang.String ATTRIBUTE_NAME_NAME
protected final java.lang.String ATTRIBUTE_NAME_METADATA_PREFIX
protected final java.lang.String ATTRIBUTE_NAME_NAMESPACE
protected final java.lang.String ATTRIBUTE_NAME_SCHEMA_URL
protected final java.lang.String ATTRIBUTE_NAME_ROOT_ELEMENT
protected final java.lang.String ATTRIBUTE_NAME_SDXFIELD
protected final java.lang.String ATTRIBUTE_NAME_REPEATED
protected final java.lang.String ATTRIBUTE_NAME_SEPARATOR
protected final java.lang.String ATTRIBUTE_VALUE_CONCATENATE
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionpublic void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionprotected void configureFields(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - org.apache.avalon.framework.configuration.ConfigurationExceptionprotected void configurePipeline(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - org.apache.avalon.framework.configuration.ConfigurationExceptionpublic void sendElement(java.lang.String origName,
java.lang.String value)
throws org.xml.sax.SAXException
sendElement in interface OAIMetadataFormatsendElement in class AbstractOAIMetadataFormatorigName - value - org.xml.sax.SAXExceptionAbstractOAIMetadataFormat.prepareAndSendElement(java.lang.String, java.lang.String)protected void aggregateFields(java.lang.String fieldName,
java.lang.String valueToConcat)
fieldName - valueToConcat - protected void sendAggregatedFields()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic void endMetadataFormatRootElement()
throws org.xml.sax.SAXException
endMetadataFormatRootElement in interface OAIMetadataFormatendMetadataFormatRootElement in class AbstractOAIMetadataFormatorg.xml.sax.SAXExceptionpublic Pipeline getPipeline()
public Pipeline getAddRootAttributePipe()
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.