public class Eml210SAXHandler extends DBSAXHandler implements edu.ucsb.nceas.utilities.access.AccessControlInterface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INLINE |
action, atFirstElement, catalogid, connection, createDate, currentDocument, docid, docname, doctype, ECOGRID, encoding, endNodeId, groups, hitTextNode, ignoreDenyFirst, MAXDATACHARS, namespaces, nodeIndex, nodeStack, processingDTD, pub, revision, rootNode, schemaList, serverCode, systemid, textBuffer, updateDate, user, writeAccessRules| Constructor and Description |
|---|
Eml210SAXHandler(DBConnection conn,
java.lang.String action,
java.lang.String docid,
java.lang.String revision,
java.lang.String user,
java.lang.String[] groups,
java.lang.String pub,
int serverCode,
java.util.Date createDate,
java.util.Date updateDate,
boolean writeAccessRules,
java.util.Vector<java.lang.String> guidsToSync)
Construct an instance of the handler class In this constructor, user can
specify the version need to update
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] cbuf,
int start,
int len)
SAX Handler that is called for each XML text node
|
void |
comment(char[] ch,
int start,
int length)
SAX Handler that receives notification of comments in the DTD
|
void |
deleteInlineFiles() |
void |
endDocument()
SAX Handler that receives notification of end of the document
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
SAX Handler that is called at the end of each XML element
|
void |
ignorableWhitespace(char[] cbuf,
int start,
int len)
SAX Handler that is called for each XML text node that is Ignorable white
space
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
SAX Handler called once for each processing instruction found: node that
PI may occur before or after the root element.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
SAX Handler that is called at the start of each XML element
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
SAX Handler that is called at the start of Namespace
|
attributeDecl, elementDecl, endCDATA, endDTD, endEntity, error, externalEntityDecl, fatalError, getCatalogId, getDocname, getDocumentName, getDocumentType, getEncoding, getIsRevisionDoc, getRootNodeId, internalEntityDecl, processingDTD, setEncoding, setIsRevisionDoc, startCDATA, startDocument, startDTD, startEntity, warning, writeTextForDBSAXNodepublic static final java.lang.String INLINE
public Eml210SAXHandler(DBConnection conn, java.lang.String action, java.lang.String docid, java.lang.String revision, java.lang.String user, java.lang.String[] groups, java.lang.String pub, int serverCode, java.util.Date createDate, java.util.Date updateDate, boolean writeAccessRules, java.util.Vector<java.lang.String> guidsToSync) throws org.xml.sax.SAXException
conn - the JDBC connection to which information is writtenaction - -
"INSERT" or "UPDATE"docid - to be inserted or updated into JDBC connectionrevision, - the user specified the revision need to be updateuser - the user connected to MetaCat servlet and owns the documentgroups - the groups to which user belongspub - flag for public "read" access on documentserverCode - the serverid from xml_replication on which this document
resides.org.xml.sax.SAXExceptionpublic 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.ContentHandlerstartElement in class DBSAXHandlerorg.xml.sax.SAXExceptionpublic void characters(char[] cbuf,
int start,
int len)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class DBSAXHandlerorg.xml.sax.SAXExceptionpublic 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.ContentHandlerendElement in class DBSAXHandlerorg.xml.sax.SAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlercomment in class DBSAXHandlerorg.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerprocessingInstruction in class DBSAXHandlerorg.xml.sax.SAXExceptionpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerstartPrefixMapping in class DBSAXHandlerorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] cbuf,
int start,
int len)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class DBSAXHandlerorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class DBSAXHandlerorg.xml.sax.SAXExceptionpublic void deleteInlineFiles()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionCopyright © 2020 Regents of the University of California. All Rights Reserved.