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, logger
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
HTTP_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, toSAX
contextualize, enableLogging, endElement, getContext, sendElement, sendElementContent, startElement
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
recycle, setConsumer, setContentHandler, setLexicalHandler
getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
protected 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.Serviceable
org.apache.avalon.framework.service.ServiceException
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
protected void configureFields(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
- org.apache.avalon.framework.configuration.ConfigurationException
protected void configurePipeline(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
- org.apache.avalon.framework.configuration.ConfigurationException
public void sendElement(java.lang.String origName, java.lang.String value) throws org.xml.sax.SAXException
sendElement
in interface OAIMetadataFormat
sendElement
in class AbstractOAIMetadataFormat
origName
- value
- org.xml.sax.SAXException
AbstractOAIMetadataFormat.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.SAXException
public void endMetadataFormatRootElement() throws org.xml.sax.SAXException
endMetadataFormatRootElement
in interface OAIMetadataFormat
endMetadataFormatRootElement
in class AbstractOAIMetadataFormat
org.xml.sax.SAXException
public Pipeline getPipeline()
public Pipeline getAddRootAttributePipe()
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.