Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.ILibrarySpecification


        __CLOVER_225_0.S[13240]++;IExtensionSpecification es = _factory.createExtensionSpecification(_expressionEvaluator);

        __CLOVER_225_0.S[13241]++;es.setClassName(className);
        __CLOVER_225_0.S[13242]++;es.setImmediate(immediate);

        __CLOVER_225_0.S[13243]++;ILibrarySpecification ls = (ILibrarySpecification) peekObject();

        __CLOVER_225_0.S[13244]++;ls.addExtensionSpecification(name, es);

        __CLOVER_225_0.S[13245]++;push(_elementName, es, STATE_EXTENSION);
    } finally { }}
View Full Code Here


        __CLOVER_225_0.S[13257]++;if ((((libraryId.equals(INamespace.FRAMEWORK_NAMESPACE)) && (++__CLOVER_225_0.CT[2236] != 0)) || (++__CLOVER_225_0.CF[2236] == 0))){
            __CLOVER_225_0.S[13258]++;throw new DocumentParseException(ParseMessages
                    .frameworkLibraryIdIsReserved(INamespace.FRAMEWORK_NAMESPACE), getLocation(),
                    null);}

        __CLOVER_225_0.S[13259]++;ILibrarySpecification ls = (ILibrarySpecification) peekObject();

        __CLOVER_225_0.S[13260]++;ls.setLibrarySpecificationPath(libraryId, path);

        __CLOVER_225_0.S[13261]++;push(_elementName, null, STATE_NO_CONTENT);
    } finally { }}
View Full Code Here

    private void enterPage()
    {try { __CLOVER_225_0.M[3153]++;
        __CLOVER_225_0.S[13276]++;String name = getValidatedAttribute("name", PAGE_NAME_PATTERN, "invalid-page-name");
        __CLOVER_225_0.S[13277]++;String path = getAttribute("specification-path");

        __CLOVER_225_0.S[13278]++;ILibrarySpecification ls = (ILibrarySpecification) peekObject();

        __CLOVER_225_0.S[13279]++;ls.setPageSpecificationPath(name, path);

        __CLOVER_225_0.S[13280]++;push(_elementName, null, STATE_NO_CONTENT);
    } finally { }}
View Full Code Here

     * @since 2.2
     */

    public void testValidLibrary() throws Exception
    {
        ILibrarySpecification spec = parseLib("ValidLibrary.library");

        checkLine(spec, 24);

        checkList("pageNames", new String[]
        { "FirstPage", "SecondPage" }, spec.getPageNames());

        checkList("componentAliases", new String[]
        { "FirstComponent", "SecondComponent" }, spec.getComponentTypes());

        checkList("libraryIds", new String[]
        { "lib1", "lib2" }, spec.getLibraryIds());

        assertNotNull(spec.getSpecificationLocation());
    }
View Full Code Here

     * @since 3.0
     */

    public void testConfigureValue() throws Exception
    {
        ILibrarySpecification spec = parseLib("ConfigureValue.library");

        checkLine(spec, 22);
        checkLine(spec.getExtensionSpecification("bedrock"), 24);

        Bedrock bedrock = (Bedrock) spec.getExtension("bedrock", Bedrock.class);

        assertEquals("flintstone", bedrock.getFred());
    }
View Full Code Here

    /** @since 4.0 */

    public void testLibraryDescription() throws Exception
    {
        ILibrarySpecification ls = parseLib("LibraryDescription.library");

        assertEquals("Often, these are just placeholders.", ls.getDescription());
    }
View Full Code Here

    }

    /** @since 4.0 */
    public void testMeta() throws Exception
    {
        ILibrarySpecification spec = parseLib("Meta.library");

        assertEquals("bar", spec.getProperty("foo"));
        assertEquals("long value", spec.getProperty("long"));
    }
View Full Code Here

    /** @since 4.0 */

    public void testLibrarySlashInComponentType() throws Exception
    {
        ILibrarySpecification ls = parseLib("SlashInComponentType.library");

        List types = ls.getComponentTypes();

        assertEquals(1, types.size());

        assertEquals("foo/Bar", types.get(0));

        assertEquals("foocomponents/BarComponent.jwc", ls.getComponentSpecificationPath("foo/Bar"));
    }
View Full Code Here

        // following little kludge:

        if (location.getResourceURL() == null && path.startsWith("/"))
            location = new ClasspathResource(_resolver, path);

        ILibrarySpecification ls = _specificationSource.getLibrarySpecification(location);

        return new Namespace(id, this, ls, _specificationSource, _resolver);
    }
View Full Code Here

    private void beginLibrarySpecificationInitial()
    {
        expectElement("library-specification");

        ILibrarySpecification ls = _factory.createLibrarySpecification();

        _rootObject = ls;

        push(_elementName, ls, STATE_LIBRARY_SPECIFICATION);
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.spec.ILibrarySpecification

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.