org.openanzo.serialization
Class GraphParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.openanzo.serialization.GraphParser
- All Implemented Interfaces:
- SerializationConstants, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class GraphParser
- extends org.xml.sax.helpers.DefaultHandler
- implements SerializationConstants
SAX parser that parses the results of server operations, and calls corresponding IBocaHandler methods.
- Author:
- Matthew Roy ( mroy@cambridgesemantics.com )
| Fields inherited from interface org.openanzo.serialization.SerializationConstants |
aci, acl, aclUri, addition, canChangeAcl, canDelete, canInsert, canRead, canRemove, canUpdate, command, commandBegin, commandComplete, commandId, commandPrecondition, commandType, createdBy, dataType, defaultAclTemplate, defaultRole, deletion, destination, errorMessageArg, errorResult, exception, falseValue, id, isTemplate, language, metaUri, method, modified, modifiedBy, namedGraph, namedGraphUri, node, object, objectType, operation, parentRole, password, payload, predicate, reset, revision, role, roleId, statement, subject, subjectType, subRole, transaction, transactionBegin, transactionComplete, transactionId, transactionTimestamp, transactionUpdateResults, trueValue, type, updateResults, uri, user, userId, userInRole, userType, value, version |
|
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(java.lang.String uri,
java.lang.String localpart,
java.lang.String rawname)
|
void |
startElement(java.lang.String uri,
java.lang.String localpart,
java.lang.String rawname,
org.xml.sax.Attributes attributes)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphParser
public GraphParser(IRepositoryHandler handler)
- Create a new graph parser with the given IBocaHandler
- Parameters:
handler - IRepositoryHandler that handles events from sax parser
startElement
public void startElement(java.lang.String uri,
java.lang.String localpart,
java.lang.String rawname,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Specified by:
startElement in interface org.xml.sax.ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String localpart,
java.lang.String rawname)
throws org.xml.sax.SAXException
- Specified by:
endElement in interface org.xml.sax.ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
- Specified by:
characters in interface org.xml.sax.ContentHandler- Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.