Examples of IPropertySpecification


Examples of org.apache.tapestry.spec.IPropertySpecification

        __CLOVER_225_0.S[5423]++;String name = getValidatedAttribute("name", PROPERTY_NAME_PATTERN, "invalid-property-name");
        __CLOVER_225_0.S[5424]++;String type = getAttribute("type");
        __CLOVER_225_0.S[5425]++;boolean persistent = getBooleanAttribute("persistent", false);
        __CLOVER_225_0.S[5426]++;String initialValue = getAttribute("initial-value");

        __CLOVER_225_0.S[5427]++;IPropertySpecification ps = _factory.createPropertySpecification();
        __CLOVER_225_0.S[5428]++;ps.setName(name);

        __CLOVER_225_0.S[5429]++;if ((((Tapestry.isNonBlank(type)) && (++__CLOVER_225_0.CT[951] != 0)) || (++__CLOVER_225_0.CF[951] == 0))){
            __CLOVER_225_0.S[5430]++;ps.setType(type);}

        __CLOVER_225_0.S[5431]++;ps.setPersistent(persistent);
        __CLOVER_225_0.S[5432]++;ps.setInitialValue(initialValue);

        __CLOVER_225_0.S[5433]++;IComponentSpecification cs = (IComponentSpecification) peekObject();
        __CLOVER_225_0.S[5434]++;cs.addPropertySpecification(ps);

        __CLOVER_225_0.S[5435]++;push(_elementName, ps, STATE_PROPERTY_SPECIFICATION, false);
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        __CLOVER_225_0.S[13157]++;pvs.applyValue(finalValue);
    } finally { }}

    private void endPropertySpecification()
    {try { __CLOVER_225_0.M[3134]++;
        __CLOVER_225_0.S[13158]++;IPropertySpecification ps = (IPropertySpecification) peekObject();

        __CLOVER_225_0.S[13159]++;String initialValue = getExtendedValue(ps.getInitialValue(), "initial-value", false);

        __CLOVER_225_0.S[13160]++;ps.setInitialValue(initialValue);
    } finally { }}
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        __CLOVER_225_0.S[13305]++;String name = getValidatedAttribute("name", PROPERTY_NAME_PATTERN, "invalid-property-name");
        __CLOVER_225_0.S[13306]++;String type = getAttribute("type");
        __CLOVER_225_0.S[13307]++;boolean persistent = getBooleanAttribute("persistent", false);
        __CLOVER_225_0.S[13308]++;String initialValue = getAttribute("initial-value");

        __CLOVER_225_0.S[13309]++;IPropertySpecification ps = _factory.createPropertySpecification();
        __CLOVER_225_0.S[13310]++;ps.setName(name);

        __CLOVER_225_0.S[13311]++;if ((((Tapestry.isNonBlank(type)) && (++__CLOVER_225_0.CT[2239] != 0)) || (++__CLOVER_225_0.CF[2239] == 0))){
            __CLOVER_225_0.S[13312]++;ps.setType(type);}

        __CLOVER_225_0.S[13313]++;ps.setPersistent(persistent);
        __CLOVER_225_0.S[13314]++;ps.setInitialValue(initialValue);

        __CLOVER_225_0.S[13315]++;IComponentSpecification cs = (IComponentSpecification) peekObject();
        __CLOVER_225_0.S[13316]++;cs.addPropertySpecification(ps);

        __CLOVER_225_0.S[13317]++;push(_elementName, ps, STATE_PROPERTY_SPECIFICATION, false);
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        __CLOVER_106_0.S[2596]++;for (int i = 0; (((i < count) && (++__CLOVER_106_0.CT[481] != 0)) || (++__CLOVER_106_0.CF[481] == 0)); i++){
        {
            __CLOVER_106_0.S[2597]++;String name = (String) names.get(i);

            __CLOVER_106_0.S[2598]++;IPropertySpecification ps = _specification.getPropertySpecification(name);

            __CLOVER_106_0.S[2599]++;scanForSpecifiedProperty(ps);
        }}
    } finally { }}
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        pvs.applyValue(finalValue);
    }

    private void endPropertySpecification()
    {
        IPropertySpecification ps = (IPropertySpecification) peekObject();

        String initialValue = getExtendedValue(ps.getInitialValue(), "initial-value", false);

        // In the 3.0 DTD, the initial value was always an OGNL expression.
        // In the 4.0 DTD, it is a binding reference, qualified with a prefix.

        if (initialValue != null && !_DTD_4_0)
            initialValue = BindingConstants.OGNL_PREFIX + ":" + initialValue;

        ps.setInitialValue(initialValue);
    }
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        else
            persistence = getBooleanAttribute("persistent", false) ? "session" : null;

        String initialValue = getAttribute("initial-value");

        IPropertySpecification ps = _factory.createPropertySpecification();
        ps.setName(name);

        if (HiveMind.isNonBlank(type))
            ps.setType(type);

        ps.setPersistence(persistence);
        ps.setInitialValue(initialValue);

        IComponentSpecification cs = (IComponentSpecification) peekObject();
        cs.addPropertySpecification(ps);

        push(_elementName, ps, STATE_PROPERTY, false);
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        IComponentSpecification spec = parsePage("PropertySpecifications.page");

        checkList("propertySpecificationNames", new String[]
        { "bool", "init", "longInitialValue", "persist" }, spec.getPropertySpecificationNames());

        IPropertySpecification ps = spec.getPropertySpecification("bool");
        assertEquals("name", "bool", ps.getName());
        assertEquals("persistent", false, ps.isPersistent());
        assertEquals("type", "boolean", ps.getType());
        assertNull("initialValue", ps.getInitialValue());
        checkLine(ps, 24);

        ps = spec.getPropertySpecification("init");
        assertEquals("name", "init", ps.getName());
        assertEquals("persistent", false, ps.isPersistent());
        assertNull("type", ps.getType());

        // Starting with release 4.0, the initial value is a binding reference
        // with an appropriate prefix. In 3.0 it was always an OGNL expression.

        assertEquals("initialValue", "ognl:pageName", ps.getInitialValue());
        checkLine(ps, 26);

        ps = spec.getPropertySpecification("persist");
        assertEquals("name", "persist", ps.getName());
        assertEquals("persistent", true, ps.isPersistent());
        assertNull("type", ps.getType());
        assertNull("initialValue", ps.getInitialValue());
        checkLine(ps, 25);

        ps = spec.getPropertySpecification("longInitialValue");
        assertEquals("ognl:long.initial.value", ps.getInitialValue());

        ps = spec.getPropertySpecification("unknown");

        assertNull("Unknown PropertySpecification", ps);
    }
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        Iterator i = spec.getPropertySpecificationNames().iterator();

        while (i.hasNext())
        {
            String name = (String) i.next();
            IPropertySpecification ps = spec.getPropertySpecification(name);

            try
            {
                performEnhancement(op, ps);
            }
            catch (RuntimeException ex)
            {
                _errorLog.error(
                        EnhanceMessages.errorAddingProperty(name, op.getBaseClass(), ex),
                        ps.getLocation(),
                        ex);
            }
        }
    }
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        pvs.applyValue(finalValue);
    }

    private void endPropertySpecification()
    {
        IPropertySpecification ps = (IPropertySpecification) peekObject();

        String initialValue = getExtendedValue(ps.getInitialValue(), "initial-value", false);

        // In the 3.0 DTD, the initial value was always an OGNL expression.
        // In the 4.0 DTD, it is a binding reference, qualified with a prefix.

        if (initialValue != null && !_DTD_4_0)
            initialValue = BindingConstants.OGNL_PREFIX + ":" + initialValue;

        ps.setInitialValue(initialValue);
    }
View Full Code Here

Examples of org.apache.tapestry.spec.IPropertySpecification

        else
            persistence = getBooleanAttribute("persistent", false) ? "session" : null;

        String initialValue = getAttribute("initial-value");

        IPropertySpecification ps = _factory.createPropertySpecification();
        ps.setName(name);

        if (HiveMind.isNonBlank(type))
            ps.setType(type);

        ps.setPersistence(persistence);
        ps.setInitialValue(initialValue);

        IComponentSpecification cs = (IComponentSpecification) peekObject();
        cs.addPropertySpecification(ps);

        push(_elementName, ps, STATE_PROPERTY, false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.