fr.gouv.culture.oai
Class OAIObjectImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
fr.gouv.culture.oai.OAIObjectImpl
- All Implemented Interfaces:
- OAIObject, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer, org.apache.excalibur.xml.sax.XMLConsumer, org.apache.excalibur.xml.sax.XMLizable, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
- Direct Known Subclasses:
- AbstractOAIMetadataFormat, AbstractOAIRepository, OAIError, OAIRecordImpl, OAIRequestImpl, OAIResponseImpl
public abstract class OAIObjectImpl
- extends org.apache.cocoon.xml.AbstractXMLPipe
- implements OAIObject
A base class for common variables/behaviors
Field Summary |
protected org.apache.avalon.framework.context.DefaultContext |
_context
|
protected org.apache.avalon.framework.logger.Logger |
logger
The super.getLog() |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Method Summary |
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
Establishes the super.getLog() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Sends a end element event |
protected org.apache.avalon.framework.context.DefaultContext |
getContext()
|
protected void |
sendElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts,
java.lang.String elemContent)
Sends a element with the simple character content
provided by the elemContent param |
protected void |
sendElementContent(java.lang.String content)
Sends character content from the provided string |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Sends a start element event |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
recycle, setConsumer, setContentHandler, setLexicalHandler |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable |
toSAX |
Methods inherited from interface org.xml.sax.ContentHandler |
characters, endDocument, endElement, 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 |
logger
protected org.apache.avalon.framework.logger.Logger logger
- The super.getLog()
_context
protected org.apache.avalon.framework.context.DefaultContext _context
OAIObjectImpl
public OAIObjectImpl()
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
- Establishes the super.getLog()
- Specified by:
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
- Overrides:
enableLogging
in class org.apache.avalon.framework.logger.AbstractLogEnabled
- Parameters:
logger
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
- Specified by:
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
- Throws:
org.apache.avalon.framework.context.ContextException
getContext
protected org.apache.avalon.framework.context.DefaultContext getContext()
sendElement
protected void sendElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts,
java.lang.String elemContent)
throws org.xml.sax.SAXException
- Sends a element with the simple character content
provided by the
elemContent
param
- Parameters:
uri
- The namespace urilocalName
- The local nameqName
- The qualified nameatts
- The attributeselemContent
- The character content
- Throws:
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
- Sends a start element event
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class org.apache.cocoon.xml.AbstractXMLPipe
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
- Sends a end element event
- Throws:
org.xml.sax.SAXException
sendElementContent
protected void sendElementContent(java.lang.String content)
throws org.xml.sax.SAXException
- Sends character content from the provided string
- Parameters:
content
- The string of characters to send
- Throws:
org.xml.sax.SAXException
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.