fr.gouv.culture.sdx.thesaurus
Class LuceneConcept

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.thesaurus.AbstractConcept
                      extended byfr.gouv.culture.sdx.thesaurus.LuceneConcept
All Implemented Interfaces:
Concept, 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 LuceneConcept
extends AbstractConcept


Nested Class Summary
 
Nested classes inherited from class fr.gouv.culture.sdx.document.AbstractIndexableDocument
AbstractIndexableDocument.StoreHandler
 
Field Summary
protected  java.lang.String idKey
           
protected  org.apache.lucene.document.Document luceneDoc
           
 
Fields inherited from class fr.gouv.culture.sdx.thesaurus.AbstractConcept
FIELD_NAME_FTERM, FIELD_NAME_FUF, RELATION_BROADER_TERM, RELATION_BROADER_TERMS, RELATION_EQUIVALENT_TERM, RELATION_NARROWER_TERM, RELATION_PARTIAL_EQIUVALENCE, RELATION_RELATED_TERM, RELATION_SCOPE_NOTE, RELATION_USE, RELATION_USED_FOR, TERM, value, valueKey, xmlLang, xmlLangKey
 
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.thesaurus.Concept
DOCTYPE_CONCEPT
 
Fields inherited from interface fr.gouv.culture.sdx.document.Document
DOCTYPE_BINARY, DOCTYPE_GROUP, DOCTYPE_HTML, DOCTYPE_USER, DOCTYPE_XML
 
Constructor Summary
LuceneConcept()
           
LuceneConcept(org.apache.lucene.document.Document lDoc)
           
 
Method Summary
 java.lang.String getId()
          Returns the document's id.
 java.lang.String[] getRelations(int type)
          Returns a list of concepts related to this one.
 java.lang.String getValue()
          Provides the value from a lucene data object if it exists
 java.lang.String getXmlLang()
          Provides the xml:lang otherwise it returnts the value of the class variable from a lucene data object if it exists
 
Methods inherited from class fr.gouv.culture.sdx.thesaurus.AbstractConcept
addRelation, endElement, getDocType, getRelationTypeInt, getRelationTypeString, setValue, setXmlLang, startElement
 
Methods inherited from class fr.gouv.culture.sdx.document.XMLDocument
addAdditionalSystemFields, 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, 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, startEntity, startPrefixMapping, updateAttachedDocuments
 
Methods inherited from class fr.gouv.culture.sdx.document.AbstractDocument
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.IndexableDocument
addAdditionalSystemFields, getAttachedDocuments, getBoost, getFieldValues, getStoreHandler, getSubDocuments, getTransformedDocument, resetAttachedDocuments, setBoost, setMessageHandler, setTransformedDocument, setTransformedDocument, startIndexing
 
Methods inherited from interface fr.gouv.culture.sdx.document.Document
getLength, getMimeType, getPreferredFilename, getRepositoryForStorage, getURL, openStream, 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.xml.sax.ContentHandler
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

luceneDoc

protected org.apache.lucene.document.Document luceneDoc

idKey

protected final java.lang.String idKey
See Also:
Constant Field Values
Constructor Detail

LuceneConcept

public LuceneConcept()

LuceneConcept

public LuceneConcept(org.apache.lucene.document.Document lDoc)
Method Detail

getValue

public java.lang.String getValue()
Provides the value from a lucene data object if it exists


getXmlLang

public java.lang.String getXmlLang()
Provides the xml:lang otherwise it returnts the value of the class variable from a lucene data object if it exists


getRelations

public java.lang.String[] getRelations(int type)
Description copied from interface: Concept
Returns a list of concepts related to this one.

Parameters:
type - The relation type.

getId

public java.lang.String getId()
Description copied from interface: Document
Returns the document's id.

Specified by:
getId in interface Document
Overrides:
getId in class AbstractDocument


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