Package org.apache.hivemind.impl

Examples of org.apache.hivemind.impl.LocationImpl


    }

    public DocumentParseException(String message, Resource resource,
            SAXParseException rootCause)
    {
        this(message, resource == null ? null : new LocationImpl(resource,
                rootCause.getLineNumber(), rootCause.getColumnNumber()),
                rootCause);
    }
View Full Code Here


    }

    public DocumentParseException(String message, Resource resource,
            Throwable rootCause)
    {
        this(message, resource == null ? null : new LocationImpl(resource),
                rootCause);
    }
View Full Code Here

            _line = line;
            _column = column;
        }

        if (_location == null)
            _location = new LocationImpl(_documentLocation, _line, _column);

        return _location;
    }
View Full Code Here

        }
        catch (SAXParseException ex)
        {
            _parser = null;

            Location location = new LocationImpl(resource, ex.getLineNumber(), ex.getColumnNumber());

            throw new DocumentParseException(ParseMessages.errorReadingResource(resource, ex),
                    location, ex);
        }
        catch (Exception ex)
View Full Code Here

       
        if (TAPESTRY_DTD_3_0_PUBLIC_ID.equals(publicId))
            return getDTDInputSource("Tapestry_3_0.dtd");

        throw new DocumentParseException(ParseMessages.unknownPublicId(getResource(), publicId),
                new LocationImpl(getResource()), null);
    }
View Full Code Here

        Resource namespaceResource = namespace.getSpecificationLocation();

        Resource componentResource = namespaceResource.getRelativeResource(type + ".jwc");

        Location location = new LocationImpl(componentResource);

        spec.setLocation(location);
        spec.setSpecificationLocation(componentResource);
        spec.setComponentClassName(componentClass.getName());
View Full Code Here

    protected void beforeParse(char[] templateData, ITemplateParserDelegate delegate,
            Resource resourceLocation)
    {
        _templateData = templateData;
        _resourceLocation = resourceLocation;
        _templateLocation = new LocationImpl(resourceLocation);
        _delegate = delegate;
        _ignoring = false;
        _line = 1;
        _componentAttributeName = delegate.getComponentAttributeName();
    }
View Full Code Here

            _blockStart = _cursor;

        while (true)
        {
            if (_cursor >= length)
                templateParseProblem(ParseMessages.commentNotEnded(startLine), new LocationImpl(
                        _resourceLocation, startLine), startLine, _cursor);

            if (lookahead(COMMENT_END))
                break;
View Full Code Here

        int length = _templateData.length;
        String tagName = null;
        boolean endOfTag = false;
        boolean emptyTag = false;
        int startLine = _line;
        Location startLocation = new LocationImpl(_resourceLocation, startLine);

        tagBeginEvent(startLine, _cursor);

        advance();
View Full Code Here

        // a body.

        boolean ignoreBody = !emptyTag && (isRemoveId || !allowBody);

        if (_ignoring && ignoreBody)
            templateParseProblem(ParseMessages.nestedIgnore(tagName, startLine), new LocationImpl(
                    _resourceLocation, startLine), startLine, cursorStart);

        if (!emptyTag)
            pushNewTag(tagName, startLine, isRemoveId, ignoreBody);
View Full Code Here

TOP

Related Classes of org.apache.hivemind.impl.LocationImpl

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.