fr.gouv.culture.sdx.thesaurus
Class AbstractConcept

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
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
Direct Known Subclasses:
LuceneConcept

public abstract class AbstractConcept
extends XMLDocument
implements Concept

Created by IntelliJ IDEA. User: rpandey Date: Dec 20, 2002 Time: 11:52:42 AM To change this template use Options | File Templates.


Nested Class Summary
 
Nested classes inherited from class fr.gouv.culture.sdx.document.AbstractIndexableDocument
AbstractIndexableDocument.StoreHandler
 
Field Summary
static java.lang.String FIELD_NAME_FTERM
          Two field names
static java.lang.String FIELD_NAME_FUF
           
static java.lang.String RELATION_BROADER_TERM
           
static java.lang.String RELATION_BROADER_TERMS
           
static java.lang.String RELATION_EQUIVALENT_TERM
           
static java.lang.String RELATION_NARROWER_TERM
           
static java.lang.String RELATION_PARTIAL_EQIUVALENCE
           
static java.lang.String RELATION_RELATED_TERM
           
static java.lang.String RELATION_SCOPE_NOTE
           
static java.lang.String RELATION_USE
           
static java.lang.String RELATION_USED_FOR
           
static java.lang.String TERM
           
protected  java.lang.String value
           
protected  java.lang.String valueKey
           
protected  java.lang.String xmlLang
           
protected  java.lang.String 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
AbstractConcept()
           
AbstractConcept(java.lang.String id)
           
 
Method Summary
 void addRelation(java.lang.String relationType, java.lang.String relationValue)
          Adds a relation to the document
 void endElement(java.lang.String uri, java.lang.String loc, java.lang.String raw)
           
 java.lang.String getDocType()
          Gets the docType for the document
static int getRelationTypeInt(java.lang.String abbr)
           
static java.lang.String getRelationTypeString(int type)
           
 void setValue(java.lang.String value)
          Sets the term/value of the document
 void setXmlLang(java.lang.String xmlLang)
           
 void startElement(java.lang.String uri, java.lang.String loc, java.lang.String raw, org.xml.sax.Attributes a)
           
 
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
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.thesaurus.Concept
getRelations, getValue, getXmlLang
 
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
getId, 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

TERM

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

RELATION_SCOPE_NOTE

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

RELATION_NARROWER_TERM

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

RELATION_BROADER_TERM

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

RELATION_BROADER_TERMS

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

RELATION_USED_FOR

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

RELATION_EQUIVALENT_TERM

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

RELATION_RELATED_TERM

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

RELATION_USE

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

RELATION_PARTIAL_EQIUVALENCE

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

FIELD_NAME_FTERM

public static final java.lang.String FIELD_NAME_FTERM
Two field names

See Also:
Constant Field Values

FIELD_NAME_FUF

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

valueKey

protected java.lang.String valueKey

xmlLangKey

protected java.lang.String xmlLangKey

value

protected java.lang.String value

xmlLang

protected java.lang.String xmlLang
Constructor Detail

AbstractConcept

public AbstractConcept()

AbstractConcept

public AbstractConcept(java.lang.String id)
                throws SDXException
Method Detail

getDocType

public java.lang.String getDocType()
Description copied from interface: Document
Gets the docType for the document

Specified by:
getDocType in interface Document
Overrides:
getDocType in class XMLDocument

startElement

public void startElement(java.lang.String uri,
                         java.lang.String loc,
                         java.lang.String raw,
                         org.xml.sax.Attributes a)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class AbstractIndexableDocument
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String loc,
                       java.lang.String raw)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class AbstractIndexableDocument
Throws:
org.xml.sax.SAXException

addRelation

public void addRelation(java.lang.String relationType,
                        java.lang.String relationValue)
Description copied from interface: Concept
Adds a relation to the document

Specified by:
addRelation in interface Concept
Parameters:
relationType - The relation type name or other key
relationValue - The relation value or term

getRelationTypeString

public static java.lang.String getRelationTypeString(int type)

getRelationTypeInt

public static int getRelationTypeInt(java.lang.String abbr)

setValue

public void setValue(java.lang.String value)
Description copied from interface: Concept
Sets the term/value of the document

Specified by:
setValue in interface Concept
Parameters:
value - The value

setXmlLang

public void setXmlLang(java.lang.String xmlLang)
Specified by:
setXmlLang in interface Concept


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