Package org.apache.hivemind

Examples of org.apache.hivemind.Location


    private static final int RANGE = 5;

    public void renderObject(Object object, IMarkupWriter writer,
            IRequestCycle cycle)
    {
        Location l = (Location) object;

        // Always print out the location as a string.

        writer.print(l.toString());

        int lineNumber = l.getLineNumber();

        if (lineNumber < 1) return;

        URL url = l.getResource().getResourceURL();

        if (url == null) return;

        writeResourceContent(writer, url, lineNumber);
    }
View Full Code Here


    private ComponentMessagesSource _componentMessagesSource;
   
    public void performEnhancement(EnhancementOperation op, IComponentSpecification spec)
    {
        Location location = spec.getLocation();

        try
        {
            injectMessages(op, location);
        }
View Full Code Here

        String propertyName = ps.getName();
        String specifiedType = ps.getType();
        boolean persistent = ps.isPersistent();
        String initialValue = ps.getInitialValue();
        Location location = ps.getLocation();

        addProperty(op, propertyName, specifiedType, persistent, initialValue,
                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

        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

        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

    {
        int cursorStart = _cursor;
        int length = _templateData.length;
        int startLine = _line;

        Location startLocation = getCurrentLocation();

        _cursor += CLOSE_TAG.length;

        int tagStart = _cursor;
View Full Code Here

     */
    private static final int RANGE = 5;

    public void renderObject(Object object, IMarkupWriter writer, IRequestCycle cycle)
    {
        Location l = (Location) object;

        // Always print out the location as a string.

        writer.print(l.toString());

        URL url = l.getResource().getResourceURL();

        if (url == null)
            return;

        writeResourceContent(writer, url, l.getLineNumber());
    }
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

        Set implementedMethods = new HashSet();
        // Key is MethodSignature, value is Method
        // Tracks which methods come from interfaces
        Map interfaceMethods = new HashMap();

        Location location = specification.getLocation();

        Class current = enhancedClass;

        while(true)
        {
View Full Code Here

TOP

Related Classes of org.apache.hivemind.Location

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.