Package org.apache.tapestry

Examples of org.apache.tapestry.ILocation


        IAssetSpecification spec,
        IResourceLocation specificationLocation)
    {
        AssetType type = spec.getType();
        String path = spec.getPath();
        ILocation location = spec.getLocation();

        if (type == AssetType.EXTERNAL)
            return new ExternalAsset(path, location);

        if (type == AssetType.PRIVATE)
View Full Code Here


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

        advance();

        // Collect the element type
View Full Code Here

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

    ILocation startLocation = getCurrentLocation();
   
        _cursor += CLOSE_TAG.length;

        int tagStart = _cursor;
View Full Code Here

    }

    private IBinding convert(IComponent container, IBindingSpecification spec)
    {
        BindingType type = spec.getType();
        ILocation location = spec.getLocation();
        String value = spec.getValue();

        // The most common type.
    // TODO These bindings should be created somehow using the SpecFactory in SpecificationParser
        if (type == BindingType.DYNAMIC)
View Full Code Here

                // container's specification.

                IContainedComponent contained = containerSpec.getComponent(id);

                String type = contained.getType();
                ILocation location = contained.getLocation();

                _componentResolver.resolve(cycle, namespace, type, location);

                IComponentSpecification componentSpecification =
                    _componentResolver.getSpecification();
View Full Code Here

    {
        IPage result = null;

        String pageName = namespace.constructQualifiedName(name);
        String className = spec.getComponentClassName();
        ILocation location = spec.getLocation();

        if (Tapestry.isNull(className))
        {
            if (LOG.isDebugEnabled())
                LOG.debug(
View Full Code Here

        IAssetSpecification spec,
        IResourceLocation specificationLocation)
    {
        AssetType type = spec.getType();
        String path = spec.getPath();
        ILocation location = spec.getLocation();

        if (type == AssetType.EXTERNAL)
            return new ExternalAsset(path, location);

        if (type == AssetType.PRIVATE)
View Full Code Here

        // Yes, but does it *need* a property created?

        if (!isMissingProperty(propertyName))
            return;

        ILocation location = ps.getLocation();

        Class propertyType = convertPropertyType(ps.getType(), location);

        String readMethodName = checkAccessors(propertyName, propertyType, location);

View Full Code Here

        addEnhancer(enhancer);
    }

    protected void addAutoParameterEnhancer(String parameterName, IParameterSpecification ps)
    {
        ILocation location = ps.getLocation();
        String propertyName = ps.getPropertyName();

        if (!ps.isRequired())
            throw new ApplicationRuntimeException(
                Tapestry.format("ComponentClassFactory.auto-must-be-required", parameterName),
View Full Code Here

    }

    protected void scanForSpecifiedProperty(IPropertySpecification ps)
    {
        String propertyName = ps.getName();
        ILocation location = ps.getLocation();
        Class propertyType = convertPropertyType(ps.getType(), location);

        PropertyDescriptor pd = getPropertyDescriptor(propertyName);

        if (!isAbstract(pd))
View Full Code Here

TOP

Related Classes of org.apache.tapestry.ILocation

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.