|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.xml.AbstractXMLProducer org.apache.cocoon.xml.AbstractXMLPipe fr.gouv.culture.oai.OAIObjectImpl fr.gouv.culture.oai.AbstractOAIMetadataFormat
public abstract class AbstractOAIMetadataFormat
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface fr.gouv.culture.oai.OAIObject |
---|
OAIObject.Node |
Field Summary | |
---|---|
protected java.lang.String |
formatName
Format name string |
protected org.apache.avalon.framework.parameters.Parameters |
metadataMappings
|
protected java.lang.String |
namespace
The namespace of the metadata format |
protected java.lang.String |
prefix
The metadataPrefix |
protected java.lang.String |
rootElement
The root element for metadata |
protected java.lang.String |
schemaUrl
The schema url of the metadata format |
Fields inherited from class fr.gouv.culture.oai.OAIObjectImpl |
---|
_context, logger |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Fields inherited from interface fr.gouv.culture.oai.OAIObject |
---|
HTTP_HEADER_NAME_FROM, HTTP_HEADER_NAME_USER_AGENT, NUMBER_RECORDS_PER_RESPONSE, STRING_DATEFORMAT_GRANULARITY_DAY, STRING_DATEFORMAT_GRANULARITY_SECOND |
Constructor Summary | |
---|---|
AbstractOAIMetadataFormat()
|
Method Summary | |
---|---|
void |
endMetadataFormatRootElement()
Sends END of the root element for this metadata format |
org.apache.avalon.framework.parameters.Parameters |
getMappings()
Retrieves a Parameters object with mappings for element sent via this object |
java.lang.String |
getName()
Retrieves the human readable name of the metadata format |
java.lang.String |
getNamespace()
Retrieves the namespace uri of this metadata format |
java.lang.String |
getPrefix()
Retrieves the prefix of this metadata format |
java.lang.String |
getSchemaUrl()
Retrieves the schema url of this metadata format |
protected void |
prepareAndSendElement(java.lang.String origName,
java.lang.String value)
Sends an element to this object's consumer passing through any specified mappings |
void |
sendElement(java.lang.String origName,
java.lang.String value)
Sends an element to this object's consumer |
void |
setMappings(org.apache.avalon.framework.parameters.Parameters mappings)
Establishes a Parameters object with mappings for element sent via this object |
void |
setName(java.lang.String formatName)
Establishes the human readable name of the metadata format |
void |
setNamespace(java.lang.String namespace)
Establishes the namespace uri of this metadata format |
void |
setPrefix(java.lang.String prefix)
Establishes the prefix of this metadata format |
void |
setSchemaUrl(java.lang.String schemaUrl)
Establishes the schema url of this metadata format |
void |
startMetadataFormatRootElement()
Sends START of the root element for this metadata format |
void |
toSAX(org.xml.sax.ContentHandler contentHandler)
Sends SAX events to the provided content handler, describing the metadata format in the syntax of the oai repository ListMetadataFormats verb response. |
Methods inherited from class fr.gouv.culture.oai.OAIObjectImpl |
---|
contextualize, enableLogging, endElement, getContext, sendElement, sendElementContent, startElement |
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.avalon.framework.logger.LogEnabled |
---|
enableLogging |
Methods inherited from interface org.apache.avalon.framework.context.Contextualizable |
---|
contextualize |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, 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 |
Methods inherited from interface org.apache.avalon.framework.configuration.Configurable |
---|
configure |
Field Detail |
---|
protected java.lang.String formatName
protected java.lang.String prefix
protected java.lang.String schemaUrl
protected java.lang.String namespace
protected java.lang.String rootElement
protected org.apache.avalon.framework.parameters.Parameters metadataMappings
Constructor Detail |
---|
public AbstractOAIMetadataFormat()
Method Detail |
---|
public java.lang.String getName()
getName
in interface OAIMetadataFormat
public void setName(java.lang.String formatName)
setName
in interface OAIMetadataFormat
public java.lang.String getPrefix()
getPrefix
in interface OAIMetadataFormat
public void setPrefix(java.lang.String prefix)
setPrefix
in interface OAIMetadataFormat
public java.lang.String getSchemaUrl()
getSchemaUrl
in interface OAIMetadataFormat
public void setSchemaUrl(java.lang.String schemaUrl)
setSchemaUrl
in interface OAIMetadataFormat
public java.lang.String getNamespace()
getNamespace
in interface OAIMetadataFormat
public void setNamespace(java.lang.String namespace)
setNamespace
in interface OAIMetadataFormat
public org.apache.avalon.framework.parameters.Parameters getMappings()
getMappings
in interface OAIMetadataFormat
metadataMappings
public void setMappings(org.apache.avalon.framework.parameters.Parameters mappings)
setMappings
in interface OAIMetadataFormat
metadataMappings
public void toSAX(org.xml.sax.ContentHandler contentHandler) throws org.xml.sax.SAXException
toSAX
in interface org.apache.excalibur.xml.sax.XMLizable
contentHandler
-
org.xml.sax.SAXException
public void startMetadataFormatRootElement() throws org.xml.sax.SAXException
startMetadataFormatRootElement
in interface OAIMetadataFormat
org.xml.sax.SAXException
public void endMetadataFormatRootElement() throws org.xml.sax.SAXException
endMetadataFormatRootElement
in interface OAIMetadataFormat
org.xml.sax.SAXException
protected void prepareAndSendElement(java.lang.String origName, java.lang.String value) throws org.xml.sax.SAXException
origName
- value
-
org.xml.sax.SAXException
metadataMappings
public void sendElement(java.lang.String origName, java.lang.String value) throws org.xml.sax.SAXException
sendElement
in interface OAIMetadataFormat
origName
- value
-
org.xml.sax.SAXException
prepareAndSendElement(java.lang.String, java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |