public class LuceneConcept extends AbstractConcept
AbstractIndexableDocument.StoreHandler
SdxObject.ConfigurationNode
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
idKey |
protected org.apache.lucene.document.Document |
luceneDoc |
value, valueKey, xmlLang, xmlLangKey
_boost, _currentFieldBoost, _msgHandler, _xmlFieldList, _xmlFieldOutput, _xmlFieldTransformer, 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, withinXmlField, xmlConsumer
idGenerator, idPrefix, idSuffix, mimeType, storeRepo
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
ABBREVIATION_SCOPE_NOTE, DOCTYPE_CONCEPT, RELATION_BROADER_TERM, RELATION_BROADER_TERMS, RELATION_EQUIVALENT_TERM, RELATION_NARROWER_TERM, RELATION_PARTIAL_EQIUVALENCE, RELATION_RELATED_TERM, RELATION_USE, RELATION_USED_FOR, TERM, XMLLANG
CLASS_NAME_SUFFIX, DOCTYPE_BINARY, DOCTYPE_GROUP, DOCTYPE_HTML, DOCTYPE_USER, DOCTYPE_XML
DEFAULT_ENCODING
Constructor and Description |
---|
LuceneConcept() |
LuceneConcept(org.apache.lucene.document.Document lDoc) |
Modifier and Type | Method and Description |
---|---|
void |
endElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw) |
java.lang.String |
getId() |
java.lang.String[] |
getRelations(int type)
Deprecated.
Should not be used as int/relation string mapping should be handled by
the Thesaurus as it defines the relationship between itself and a Concept, so the
Thesaurus shoud to the int to String conversion before calling getRelations(String type)
|
java.lang.String[] |
getRelations(java.lang.String type)
Returns a list of concept ids 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
|
addRelation, getDocType, setValue, setXmlLang, startElement
addAdditionalSystemFields, getLength, getMimeType, openStream, parse, parse, setContent, setTransformedDocument, setTransformedDocument, startIndexing
addAttachedDocument, characters, comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, generateId, getAttachedDocuments, getAttachedDocumentsSize, getBoost, getFieldValues, getStoreHandler, getSubDocuments, getSubDocumentsSize, getTransformedDocument, handleDocumentId, ignorableWhitespace, processingInstruction, resetAttachedDocuments, resetFields, setAttachedDocuments, setBoost, setConsumer, setContentHandler, setDocumentLocator, setLexicalHandler, setMessageHandler, setUpdateAttachedDocuments, setUpTransformedDocument, setXMLFieldList, setXMLTransformerHandler, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, updateAttachedDocuments
getClassNameSuffix, getInputSource, getPreferredFilename, getRepositoryForStorage, getURL, initToSax, initVolatileObjectsToSax, save, setContent, setContent, setContent, setContent, setIdGenerator, setIdGenerator, setMimeType, setPreferredFilename, setPreferredFilename, setRepositoryForStorage, setURL
configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getLocale, getLog, getServiceManager, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, toSAX, verifyConfigurationResources
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAdditionalSystemFields, getAttachedDocuments, getBoost, getFieldValues, getStoreHandler, getSubDocuments, getTransformedDocument, resetAttachedDocuments, setBoost, setMessageHandler, setTransformedDocument, setTransformedDocument, setXMLFieldList, setXMLTransformerHandler, startIndexing
getLength, getMimeType, getPreferredFilename, getRepositoryForStorage, getURL, openStream, save, setContent, setContent, setContent, setContent, setId, setIdGenerator, setIdGenerator, setMimeType, setPreferredFilename, setRepositoryForStorage, setURL
getDescription, setDescription
getEncoding, setEncoding
getLocale, setLocale
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
protected org.apache.lucene.document.Document luceneDoc
protected final java.lang.String idKey
public LuceneConcept()
public LuceneConcept(org.apache.lucene.document.Document lDoc)
public java.lang.String getValue()
public java.lang.String getXmlLang()
getXmlLang
in interface Localizable
getXmlLang
in class AbstractSdxObject
public java.lang.String[] getRelations(int type)
Concept
type
- The relation type.public java.lang.String[] getRelations(java.lang.String type)
Concept
type
- The relation type String.public java.lang.String getId()
getId
in interface Identifiable
getId
in class AbstractSdxObject
public 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.ContentHandler
endElement
in class AbstractConcept
org.xml.sax.SAXException
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.