Package org.exist.util.sax.event

Examples of org.exist.util.sax.event.SAXEvent


     *
     * 2) If the principal uses a name or id which already exists in
     * the database then we must avoid conflicts
     */
    private final void processPrincipal(final PrincipalType principalType) throws SAXException {
        final SAXEvent firstEvent = deferred.peek();
        if(!(firstEvent instanceof StartElement)) {
            throw new SAXException("Unbalanced SAX Events");
        }

        final StartElement start = ((StartElement)firstEvent);
View Full Code Here


     */
    private String findName() {
        boolean inName = false;
        final StringBuilder name = new StringBuilder();
        for(final Iterator<SAXEvent> iterator = deferred.iterator(); iterator.hasNext(); ) {
            final SAXEvent event = iterator.next();
            if(event instanceof Element) {
                final Element element = (Element)event;
                if(element.namespaceURI != null && element.namespaceURI.equals(Configuration.NS) && element.localName.equals("name")) {
                    inName = !inName;
                }
View Full Code Here

    /**
     * Applies any deferred events
     * by dispatching to the appropriate _deferred method
     */
    protected void applyDeferredEvents() throws SAXException {
        SAXEvent event = null;
        while((event = deferred.poll()) != null) {
            if(event instanceof SetDocumentLocator) {
                final SetDocumentLocator setDocumentLocator = (SetDocumentLocator)event;
                setDocumentLocator_deferred(setDocumentLocator.locator);
            } else if(event instanceof StartDocument) {
View Full Code Here

TOP

Related Classes of org.exist.util.sax.event.SAXEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.