Examples of Tvalue


Examples of Subset0267.TValue

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setValue(TValue newValue) {
    TValue oldValue = value;
    value = newValue == null ? VALUE_EDEFAULT : newValue;
    boolean oldValueESet = valueESet;
    valueESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, Subset0267Package.SPECIAL_TYPE__VALUE, oldValue, value, !oldValueESet));
View Full Code Here

Examples of Subset0267.TValue

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void unsetValue() {
    TValue oldValue = value;
    boolean oldValueESet = valueESet;
    value = VALUE_EDEFAULT;
    valueESet = false;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.UNSET, Subset0267Package.SPECIAL_TYPE__VALUE, oldValue, VALUE_EDEFAULT, oldValueESet));
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.template.TValue

    }

    // Javadoc inherited.
    public void doAction(DynamicProcess dynamicProcess) throws SAXException {

        TValue value = model.getParameterBlock().query(parameter);

        XMLPipelineContext pipelineContext = dynamicProcess.getPipelineContext();

        ExpressionContext context = pipelineContext.getExpressionContext();
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.template.TValue

            throw forwardFatalError(dynamicProcess,
                    "Default values cannot be specified for " +
                    "mandatory parameter '" + name + "'");
        } else {
            ParameterBlock parameters = model.getParameterBlock();
            TValue boundValue = parameters.query(name);

            if (boundValue != null) {
                if (boundValue.getComplexity() == Complexity.COMPLEX &&
                        complexity == Complexity.SIMPLE) {

                    throw forwardFatalError(dynamicProcess,
                            "A complex binding has been provided for the " +
                            "simple parameter " + name);
                } else {

                    model.transition(TemplateSchema.VALUE_START);

                    dynamicProcess.getPipelineContext()
                            .getFlowControlManager().exitCurrentElement();

                    // Record the fact that the existing binding value is
                    // "good"
                    boundValue.verify();

                    model.transition(TemplateSchema.VALUE_END);

                    action = new EndParameterAction(model);
                }
            } else if (use == Use.REQUIRED) {
                throw forwardFatalError(dynamicProcess,
                        "No binding has been provided for required " +
                        "parameter " + name);
            } else {
                // The parameter is optional and has no existing binding
                if (defaultValue != null) {

                    TValue value = model.createSimpleValue(defaultValue);
                    model.addDefaultValue(name, value);

                    action = new EndParameterAction(model);

                } else {
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.template.TValue

        // Make sure that all the bindings supplied by the apply are correct.
        ParameterBlock parameters = model.getParameterBlock();
        for (Iterator i = parameters.iterator(); i.hasNext();) {
            String name = (String) i.next();
            TValue binding = parameters.query(name);

            if (!binding.isVerified()) {
                forwardFatalError(dynamicProcess,
                        "Binding \"" + name + "\" has been " +
                        "supplied that does not exist in the template " +
                        "definition declarations");
            }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.template.TValue

        if (ref == null) {
            throw forwardFatalError(dynamicProcess,
                    "A ref must be provided for a value");
        }

        TValue value = model.getParameterBlock().query(ref);
        if (value == null) {
            throw forwardFatalError(dynamicProcess,
                    "Parameter " + ref + " not defined in the current scope");
        }

        value.insert(dynamicProcess.getPipeline(), ref);

        return null;
    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.template.TValue

        }

        String value = attributes.getValue("value");
        String ref = attributes.getValue("ref");

        TValue tValue;
        if (value != null && ref != null) {
            throw forwardFatalError(dynamicProcess,
                    "Only one of 'value' or 'ref' may be specified");
        } else if (value != null) {
            tValue = model.createSimpleValue(value);
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tvalue

        String name = inj.name();
        String desp = inj.description();
                        
        Tproperty tp = new Tproperty();
        if (value.length() > 0) {
            Tvalue tvalue = new Tvalue();
            tvalue.setContent(value);
            tp.setValue(tvalue);
        }
       
        if (ref.length() > 0) {
            tp.setRefAttribute(ref);
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tvalue

        String name = inj.name();
        String desp = inj.description();
                        
        Tproperty tp = new Tproperty();
        if (value.length() > 0) {
            Tvalue tvalue = new Tvalue();
            tvalue.setContent(value);
            tp.setValue(tvalue);
        }
       
        if (ref.length() > 0) {
            tp.setRefAttribute(ref);
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tvalue

        String name = inj.name();
        String desp = inj.description();
                        
        Tproperty tp = new Tproperty();
        if (value.length() > 0) {
            Tvalue tvalue = new Tvalue();
            tvalue.setContent(value);
            tp.setValue(tvalue);
        }
       
        if (ref.length() > 0) {
            tp.setRefAttribute(ref);
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.