Package org.apache.hivemind.impl

Examples of org.apache.hivemind.impl.LocationImpl


            throws TemplateParseException
    {
        if (_ignoring)
            templateParseProblem(
                    ParseMessages.contentBlockMayNotBeIgnored(tagName, startLine),
                    new LocationImpl(_resourceLocation, startLine),
                    startLine,
                    cursorStart);

        if (emptyTag)
            templateParseProblem(
                    ParseMessages.contentBlockMayNotBeEmpty(tagName, startLine),
                    new LocationImpl(_resourceLocation, startLine),
                    startLine,
                    cursorStart);

        _tokens.clear();
        _blockStart = -1;
View Full Code Here


     */

    protected Location getCurrentLocation()
    {
        if (_currentLocation == null)
            _currentLocation = new LocationImpl(_resourceLocation, _line);

        return _currentLocation;
    }
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

                .getRelativeResource(_simpleName + ".page");

        IComponentSpecification specification = new ComponentSpecification();
        specification.setPageSpecification(true);
        specification.setSpecificationLocation(pageResource);
        specification.setLocation(new LocationImpl(resource));

        setSpecification(specification);

        install();
    }
View Full Code Here

        super(message, location, rootCause);
    }

    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

                .getLineNumber(), rootCause.getColumnNumber()), rootCause);
    }

    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

    {
        URL url = getClass().getResource(file);

        Resource resource = new URLResource(url);

        return new LocationImpl(resource, lineNumber);
    }
View Full Code Here

    public DocumentParseException(String message, Resource documentLocation,
            SAXParseException rootCause)
    {
        this(message, documentLocation, rootCause == null || documentLocation == null ? null
                : new LocationImpl(documentLocation, rootCause.getLineNumber(), rootCause
                        .getColumnNumber()), rootCause);
    }
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.