Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.IBindingSpecification


    {try { __CLOVER_225_0.M[2782]++;
        __CLOVER_225_0.S[11359]++;BindingSetter bs = (BindingSetter) peekObject();

        __CLOVER_225_0.S[11360]++;String literalValue = getExtendedValue(bs.getValue(), "value", true);

        __CLOVER_225_0.S[11361]++;IBindingSpecification spec = _factory.createBindingSpecification();

        __CLOVER_225_0.S[11362]++;spec.setType(BindingType.PREFIXED);
        __CLOVER_225_0.S[11363]++;spec.setValue("literal:" + literalValue);

        __CLOVER_225_0.S[11364]++;bs.apply(spec);
    } finally { }}
View Full Code Here


    {try { __CLOVER_225_0.M[2786]++;
        __CLOVER_225_0.S[11390]++;BindingSetter bs = (BindingSetter) peekObject();

        __CLOVER_225_0.S[11391]++;String value = getExtendedValue(bs.getValue(), "value", true);

        __CLOVER_225_0.S[11392]++;IBindingSpecification spec = _factory.createBindingSpecification();

        __CLOVER_225_0.S[11393]++;spec.setType(BindingType.PREFIXED);
        __CLOVER_225_0.S[11394]++;spec.setValue(value);

        __CLOVER_225_0.S[11395]++;bs.apply(spec);
    } finally { }}
View Full Code Here

    private void enterInheritedBinding()
    {try { __CLOVER_225_0.M[2795]++;
        __CLOVER_225_0.S[11442]++;String name = getAttribute("name");
        __CLOVER_225_0.S[11443]++;String parameterName = getAttribute("parameter-name");

        __CLOVER_225_0.S[11444]++;IBindingSpecification bs = _factory.createBindingSpecification();
        __CLOVER_225_0.S[11445]++;bs.setType(BindingType.INHERITED);
        __CLOVER_225_0.S[11446]++;bs.setValue(parameterName);

        __CLOVER_225_0.S[11447]++;IContainedComponent cc = (IContainedComponent) peekObject();

        __CLOVER_225_0.S[11448]++;cc.setBinding(name, bs);
View Full Code Here

    private void enterMessageBinding()
    {try { __CLOVER_225_0.M[2798]++;
        __CLOVER_225_0.S[11462]++;String name = getAttribute("name");
        __CLOVER_225_0.S[11463]++;String key = getAttribute("key");

        __CLOVER_225_0.S[11464]++;IBindingSpecification bs = _factory.createBindingSpecification();
        __CLOVER_225_0.S[11465]++;bs.setType(BindingType.PREFIXED);
        __CLOVER_225_0.S[11466]++;bs.setValue("message:" + key);
        __CLOVER_225_0.S[11467]++;bs.setLocation(getLocation());

        __CLOVER_225_0.S[11468]++;IContainedComponent cc = (IContainedComponent) peekObject();

        __CLOVER_225_0.S[11469]++;cc.setBinding(name, bs);
View Full Code Here

        {
            __CLOVER_194_0.S[12681]++;String name = (String) i.next();

            __CLOVER_194_0.S[12682]++;boolean isFormal = spec.getParameter(name) != null;

            __CLOVER_194_0.S[12683]++;IBindingSpecification bspec = contained.getBinding(name);

            // If not allowing informal parameters, check that each binding
            // matches
            // a formal parameter.

            __CLOVER_194_0.S[12684]++;if ((((formalOnly && !isFormal) && (++__CLOVER_194_0.CT[2167] != 0)) || (++__CLOVER_194_0.CF[2167] == 0))){
                __CLOVER_194_0.S[12685]++;throw new ApplicationRuntimeException(PageloadMessages.formalParametersOnly(
                        component,
                        name), component, bspec.getLocation(), null);}

            // If an informal parameter that conflicts with a reserved name,
            // then
            // skip it.

            __CLOVER_194_0.S[12686]++;if ((((!isFormal && spec.isReservedParameterName(name)) && (++__CLOVER_194_0.CT[2168] != 0)) || (++__CLOVER_194_0.CF[2168] == 0))){
                __CLOVER_194_0.S[12687]++;continue;}

            // The type determines how to interpret the value:
            // As a simple static String
            // As a nested property name (relative to the component)
            // As the name of a binding inherited from the containing component.
            // As the name of a public field
            // As a script for a listener

            __CLOVER_194_0.S[12688]++;BindingType type = bspec.getType();

            // For inherited bindings, defer until later. This gives components
            // a chance to setup bindings from static values and expressions in
            // the
            // template. The order of operations is tricky, template bindings
            // come
            // later.

            __CLOVER_194_0.S[12689]++;if ((((type == BindingType.INHERITED) && (++__CLOVER_194_0.CT[2169] != 0)) || (++__CLOVER_194_0.CF[2169] == 0))){
            {
                __CLOVER_194_0.S[12690]++;QueuedInheritedBinding queued = new QueuedInheritedBinding(component, bspec
                        .getValue(), name);
                __CLOVER_194_0.S[12691]++;_inheritedBindingQueue.add(queued);
                __CLOVER_194_0.S[12692]++;continue;
            }}
View Full Code Here

        __CLOVER_225_0.S[5225]++;Iterator i = source.getBindingNames().iterator();
        __CLOVER_225_0.S[5226]++;while ((((i.hasNext()) && (++__CLOVER_225_0.CT[942] != 0)) || (++__CLOVER_225_0.CF[942] == 0))){
        {
            __CLOVER_225_0.S[5227]++;String bindingName = (String) i.next();
            __CLOVER_225_0.S[5228]++;IBindingSpecification binding = source.getBinding(bindingName);
            __CLOVER_225_0.S[5229]++;target.setBinding(bindingName, binding);
        }}

        __CLOVER_225_0.S[5230]++;target.setType(source.getType());
    } finally { }}
View Full Code Here

    {try { __CLOVER_225_0.M[1124]++;
        __CLOVER_225_0.S[5255]++;BindingSetter bs = (BindingSetter) peekObject();

        __CLOVER_225_0.S[5256]++;String expression = getExtendedValue(bs.getValue(), "expression", true);

        __CLOVER_225_0.S[5257]++;IBindingSpecification spec = _factory.createBindingSpecification();

        __CLOVER_225_0.S[5258]++;spec.setType(BindingType.PREFIXED);
        __CLOVER_225_0.S[5259]++;spec.setValue("ognl:" + expression);

        __CLOVER_225_0.S[5260]++;bs.apply(spec);
    } finally { }}
View Full Code Here

    {try { __CLOVER_225_0.M[1132]++;
        __CLOVER_225_0.S[5286]++;BindingSetter bs = (BindingSetter) peekObject();

        __CLOVER_225_0.S[5287]++;String literalValue = getExtendedValue(bs.getValue(), "value", true);

        __CLOVER_225_0.S[5288]++;IBindingSpecification spec = _factory.createBindingSpecification();

        __CLOVER_225_0.S[5289]++;spec.setType(BindingType.PREFIXED);
        __CLOVER_225_0.S[5290]++;spec.setValue("literal:" + literalValue);

        __CLOVER_225_0.S[5291]++;bs.apply(spec);
    } finally { }}
View Full Code Here

    {try { __CLOVER_225_0.M[1136]++;
        __CLOVER_225_0.S[5317]++;BindingSetter bs = (BindingSetter) peekObject();

        __CLOVER_225_0.S[5318]++;String value = getExtendedValue(bs.getValue(), "value", true);

        __CLOVER_225_0.S[5319]++;IBindingSpecification spec = _factory.createBindingSpecification();

        __CLOVER_225_0.S[5320]++;spec.setType(BindingType.PREFIXED);
        __CLOVER_225_0.S[5321]++;spec.setValue(value);

        __CLOVER_225_0.S[5322]++;bs.apply(spec);
    } finally { }}
View Full Code Here

    private void enterInheritedBinding()
    {try { __CLOVER_225_0.M[1145]++;
        __CLOVER_225_0.S[5369]++;String name = getAttribute("name");
        __CLOVER_225_0.S[5370]++;String parameterName = getAttribute("parameter-name");

        __CLOVER_225_0.S[5371]++;IBindingSpecification bs = _factory.createBindingSpecification();
        __CLOVER_225_0.S[5372]++;bs.setType(BindingType.INHERITED);
        __CLOVER_225_0.S[5373]++;bs.setValue(parameterName);

        __CLOVER_225_0.S[5374]++;IContainedComponent cc = (IContainedComponent) peekObject();

        __CLOVER_225_0.S[5375]++;cc.setBinding(name, bs);
View Full Code Here

TOP

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

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.