Examples of Settable


Examples of com.amazonaws.services.simpleworkflow.flow.core.Settable

                if (!voidReturnType) {
                    if (!Promise.class.isAssignableFrom(returnType)) {
                        throw new IllegalArgumentException("Cannot decorate " + method.getName()
                                + " as its return type is not void or Promise");
                    }
                    result = new Settable();
                }
                this.method = method;
            }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.core.Settable

                Object r = swfWorkflowConsumer.processWorkflow(parameters, startTime, replaying);
                if (r instanceof Promise) {
                    methodResult.set((Promise) r);
                } else if (r != null) {
                    methodResult.set(new Settable(r));
                }
            }

            @Override
            protected void doCatch(Throwable e) throws Throwable {
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.core.Settable

                if (!voidReturnType) {
                    if (!Promise.class.isAssignableFrom(returnType)) {
                        throw new IllegalArgumentException("Cannot decorate " + method.getName()
                                + " as its return type is not void or Promise");
                    }
                    result = new Settable();
                }
                this.method = method;
            }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.core.Settable

                if (!voidReturnType) {
                    if (!Promise.class.isAssignableFrom(returnType)) {
                        throw new IllegalArgumentException("Cannot decorate " + method.getName()
                                + " as its return type is not void or Promise");
                    }
                    result = new Settable();
                }
                this.method = method;
            }
View Full Code Here

Examples of com.bitmovers.maui.components.foundation.Settable

  // METHOD: getValue
  // ----------------------------------------------------------------------
 
  public String getValue(I_Renderable aRenderable)
  {
    Settable theSettable = (Settable) aRenderable;
    return theSettable.getValue ().toString ();
  }
View Full Code Here

Examples of com.bitmovers.maui.components.foundation.Settable

  {
    String retVal = null;
   
    if (needsEpilogue)
    {
      Settable theSelectList = (Settable) aRenderable;
      String theComponentID = generateComponentID ((MComponent) aRenderable);
      String theSelection =
        MSelectList_wml.generateSelectList (this,
                          theComponentID,
                          ((HasSelectList) theSelectList).getSelectListOptions (),
                          theSelectList.getValue ().toString (),
                          "  ",
                          onPick,
                          false,
                          new SimpleOnPickGenerator ());
      retVal = generateCard (theComponentID + "_Card",
View Full Code Here

Examples of ptolemy.kernel.util.Settable

        Iterator parameters = object.attributeList(Settable.class).iterator();
        boolean foundOne = false;

        while (parameters.hasNext()) {
            Settable parameter = (Settable) parameters.next();

            if (Configurer.isVisible(object, parameter)) {
                foundOne = true;
                query.addStyledEntry(parameter);
            }
View Full Code Here

Examples of ptolemy.kernel.util.Settable

            // Count visible attributes
            Iterator parameters = attributeList.iterator();
            int count = 0;

            while (parameters.hasNext()) {
                Settable parameter = (Settable) parameters.next();

                if (Configurer.isVisible(target, parameter)) {
                    count++;
                }
            }

            String[] attributeNames = new String[count];
            parameters = attributeList.iterator();

            int index = 0;

            while (parameters.hasNext()) {
                Settable parameter = (Settable) parameters.next();

                if (Configurer.isVisible(target, parameter)) {
                    attributeNames[index++] = ((Attribute) parameter).getName();
                }
            }
View Full Code Here

Examples of ptolemy.kernel.util.Settable

                throw new RuntimeException(
                        "already created field for attribute" + attribute);
            }

            if (attribute instanceof Settable) {
                Settable settable = (Settable) attribute;

                if (debug) {
                    System.out.println("creating field for " + settable);
                }

                String fieldName = StringUtilities.sanitizeName(attribute
                        .getName(context));
                SootField field;

                // Create a field to contain the value of the attribute.
                if (settable instanceof Variable) {
                    Variable variable = (Variable) settable;
                    ptolemy.data.type.Type type = variable.getType();
                    Type tokenType = PtolemyUtilities
                            .getSootTypeForTokenType(type);

                    boolean isConstant = constantAnalysis.getConstVariables(
                            context).contains(attribute);

                    int modifier;

                    if (isConstant) {
                        modifier = Modifier.PUBLIC | Modifier.FINAL;
                    } else {
                        modifier = Modifier.PUBLIC;
                    }

                    field = new SootField(fieldName + "_CGToken", tokenType,
                            modifier);
                    theClass.addField(field);

                    if (isConstant) {
                        try {
                            field.addTag(new ValueTag(variable.getToken()));
                        } catch (Exception ex) {
                        }

                        field.addTag(new TypeTag(type));
                    }
                } else {
                    field = new SootField(fieldName + "_CGExpression",
                            stringType, Modifier.PUBLIC | Modifier.FINAL);
                    theClass.addField(field);

                    String expression = settable.getExpression();
                    field.addTag(new ValueTag(expression));
                }

                attributeToValueFieldMap.put(attribute, field);
            }
View Full Code Here

Examples of ptolemy.kernel.util.Settable

                StringBuffer parameters = new StringBuffer();
                Iterator settables = container.attributeList(Settable.class)
                        .iterator();

                while (settables.hasNext()) {
                    Settable settable = (Settable) settables.next();

                    if (settable.getVisibility() != Settable.FULL) {
                        continue;
                    }

                    if (!showAllParameters
                            && !((NamedObj) settable).isOverridden()) {
                        continue;
                    }

                    if (!showAllParameters
                            && _isPropertySet((NamedObj) settable, "_hide")) {
                        continue;
                    }

                    String name = settable.getName();
                    String displayName = settable.getDisplayName();
                    parameters.append(displayName);

                    if (showAllParameters && !name.equals(displayName)) {
                        parameters.append(" (" + name + ")");
                    }

                    parameters.append(": ");
                    parameters.append(settable.getExpression());

                    if (settables.hasNext()) {
                        parameters.append("\n");
                    }
                }
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.