public class PicaXMLContentHandler extends MarcContentHandler implements PicaConstants
content, format, listeners, marcListener, marcValueTransformers, recordCounter, stack, type
GLOBAL_TAG, ID_ATTRIBUTE, OCC, OCCURENCE_ATTRIBUTE, OPACFLAG, PICAXML_NAMESPACE, PICAXML_PREFIX, SRW_PICAXML_NAMESPACE, STATUS, SUBF_TAG
BIBLIOGRAPHIC_TYPE, CODE_ATTRIBUTE, COLLECTION, CONTROLFIELD, DATAFIELD, FORMAT_ATTRIBUTE, HOLDINGS_TYPE, IND_ATTRIBUTE, LEADER, MARC21_FORMAT, MARC21_SCHEMA_LOCATION, MARC21_SCHEMA_URI, MARCXCHANGE_FORMAT, MARCXCHANGE_V1_NS_URI, MARCXCHANGE_V2_0_SCHEMA_LOCATION, MARCXCHANGE_V2_NS_URI, RECORD, SUBFIELD, TAG_ATTRIBUTE, TYPE_ATTRIBUTE
Constructor and Description |
---|
PicaXMLContentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
beginRecord(java.lang.String format,
java.lang.String type)
Begin of a record.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
field(MarcField marcField)
A field.
|
protected java.lang.String |
getDefaultFormat() |
protected java.lang.String |
getDefaultType() |
protected boolean |
isNamespace(java.lang.String uri) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
addNamespace, beginCollection, characters, endCollection, endDocument, endPrefixMapping, endRecord, error, fatalError, getFormat, getRecordCounter, getType, ignorableWhitespace, leader, notationDecl, processingInstruction, record, resolveEntity, setDocumentLocator, setFormat, setMarcFieldTransformers, setMarcListener, setMarcListener, setMarcValueTransformers, setType, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected java.lang.String getDefaultFormat()
getDefaultFormat
in class MarcContentHandler
protected java.lang.String getDefaultType()
getDefaultType
in class MarcContentHandler
public void beginRecord(java.lang.String format, java.lang.String type)
MarcListener
beginRecord
in interface MarcListener
beginRecord
in class MarcContentHandler
format
- the record formattype
- the record typepublic void field(MarcField marcField)
MarcListener
field
in interface MarcListener
field
in class MarcContentHandler
marcField
- the field.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
startElement
in interface org.xml.sax.ContentHandler
startElement
in class MarcContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class MarcContentHandler
org.xml.sax.SAXException
protected boolean isNamespace(java.lang.String uri)
isNamespace
in class MarcContentHandler