fr.gouv.culture.sdx.document
Class OAIDocument

java.lang.Object
  extended byfr.gouv.culture.sdx.utils.SdxObjectImpl
      extended byfr.gouv.culture.sdx.document.AbstractDocument
          extended byfr.gouv.culture.sdx.document.AbstractIndexableDocument
              extended byfr.gouv.culture.sdx.document.XMLDocument
                  extended byfr.gouv.culture.sdx.document.OAIDocument
All Implemented Interfaces:
org.xml.sax.ContentHandler, Document, IndexableDocument, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.LogEnabled, ParsableDocument, SdxObject, org.apache.cocoon.xml.XMLConsumer, org.apache.cocoon.xml.XMLProducer

public class OAIDocument
extends XMLDocument

An OAI document in a SDX documents collection has a date of harvest and an OAI identifier. Those informations will be use for update and/or deletion.

Author:
Malo Pichot

Nested Class Summary
 
Nested classes inherited from class fr.gouv.culture.sdx.document.AbstractIndexableDocument
AbstractIndexableDocument.StoreHandler
 
Field Summary
static java.lang.String INTERNAL_FIELD_NAME_SDXOAIDATE
           
static java.lang.String INTERNAL_FIELD_NAME_SDXOAIID
           
 
Fields inherited from class fr.gouv.culture.sdx.document.AbstractIndexableDocument
_boost, _currentFieldBoost, _msgHandler, attachedDocuments, characterBuffer, contentHandler, currentFieldName, DOC_ATTACHEDOC_ELEMENT_NAME, DOC_FIELD_ELEMENT_NAME, DOC_MSG_ELEMENT_NAME, DOC_NAMESPACE, DOC_ROOT_ELEMENT_NAME, lexicalHandler, nsTable, openSdxDocElems, properties, storeHandler, subDoc, subDocBytes, subDocuments, transformedDoc, withinSdxElement, xmlConsumer
 
Fields inherited from class fr.gouv.culture.sdx.document.AbstractDocument
idGenerator, idPrefix, idSuffix, mimeType, storeRepo
 
Fields inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl
encoding, logger
 
Fields inherited from interface fr.gouv.culture.sdx.document.Document
DOCTYPE_BINARY, DOCTYPE_GROUP, DOCTYPE_HTML, DOCTYPE_USER, DOCTYPE_XML
 
Constructor Summary
OAIDocument()
           
 
Method Summary
 void addAdditionalSystemFields(org.apache.lucene.document.Document doc)
          A method to add system fields: date of the harvest, OAI identifier of the document.
 java.lang.String getDateString()
           
 java.lang.String getIdentifier()
           
 void setDateString(java.lang.String dateString)
           
 void setIdentifier(java.lang.String identifier)
           
 
Methods inherited from class fr.gouv.culture.sdx.document.XMLDocument
getDocType, getLength, getMimeType, openStream, parse, parse, setContent, setTransformedDocument, setTransformedDocument, startIndexing
 
Methods inherited from class fr.gouv.culture.sdx.document.AbstractIndexableDocument
addAttachedDocument, characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, generateId, getAttachedDocuments, getBoost, getFieldValues, getStoreHandler, getSubDocuments, getTransformedDocument, handleDocumentId, ignorableWhitespace, processingInstruction, resetAttachedDocuments, resetFields, setAttachedDocuments, setBoost, setConsumer, setContentHandler, setDocumentLocator, setLexicalHandler, setMessageHandler, setUpdateAttachedDocuments, setUpTransformedDocument, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, updateAttachedDocuments
 
Methods inherited from class fr.gouv.culture.sdx.document.AbstractDocument
getId, getInputSource, getPreferredFilename, getRepositoryForStorage, getURL, save, setContent, setContent, setContent, setContent, setId, setIdGenerator, setIdGenerator, setMimeType, setPreferredFilename, setPreferredFilename, setRepositoryForStorage, setURL
 
Methods inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl
enableLogging, getChildLogger, setEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.gouv.culture.sdx.document.Document
getId, getPreferredFilename, getRepositoryForStorage, getURL, save, setContent, setContent, setContent, setContent, setId, setIdGenerator, setIdGenerator, setMimeType, setPreferredFilename, setRepositoryForStorage, setURL
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

INTERNAL_FIELD_NAME_SDXOAIDATE

public static final java.lang.String INTERNAL_FIELD_NAME_SDXOAIDATE
See Also:
Constant Field Values

INTERNAL_FIELD_NAME_SDXOAIID

public static final java.lang.String INTERNAL_FIELD_NAME_SDXOAIID
See Also:
Constant Field Values
Constructor Detail

OAIDocument

public OAIDocument()
Method Detail

addAdditionalSystemFields

public void addAdditionalSystemFields(org.apache.lucene.document.Document doc)
A method to add system fields: date of the harvest, OAI identifier of the document.

Specified by:
addAdditionalSystemFields in interface IndexableDocument
Overrides:
addAdditionalSystemFields in class XMLDocument

getDateString

public java.lang.String getDateString()

setDateString

public void setDateString(java.lang.String dateString)

getIdentifier

public java.lang.String getIdentifier()

setIdentifier

public void setIdentifier(java.lang.String identifier)


Copyright © 2000-2004 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.