Examples of Option


Examples of com.xmlcalabash.model.Option

        // there are such compound steps.

        // Calculate all the options
        inScopeOptions = parent.getInScopeOptions();
        for (QName name : step.getOptions()) {
            Option option = step.getOption(name);
            RuntimeValue value = null;
            if (optionsPassedIn != null && optionsPassedIn.containsKey(name)) {
                value = optionsPassedIn.get(name);
            } else {
                if (option.getRequired() && option.getSelect() == null) {
                    throw XProcException.staticError(18, option.getNode(), "No value provided for required option \"" + option.getName() + "\"");
                }

                if (option.getSelect() == null) {
                    value = new RuntimeValue();
                } else {
                    value = computeValue(option);
                }
            }
View Full Code Here

Examples of de.micromata.opengis.kml.v_2_2_0.gx.Option

    /**
     * Create an instance of {@link Option}
     *
     */
    public static Option createGxOption() {
        return new Option();
    }
View Full Code Here

Examples of dk.i2m.drupal.field.Option

        this.name = name;
    }

    public OptionWrapper(String name, Boolean value) {
        this(name);
        options.add(new Option(value));
    }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.Option

          final Procedure1<Options> _function = new Procedure1<Options>() {
            public void apply(final Options o) {
              for (int i = 0; (i < o.getOptions().size()); i++) {
                {
                  EList<Option> _options = o.getOptions();
                  final Option it = _options.get(i);
                  Option _element = e.getElement();
                  boolean _equals = Objects.equal(_element, it);
                  if (_equals) {
                    StringConcatenation _builder = new StringConcatenation();
                    _builder.append("Cannot define multiple option \'");
                    _builder.append(it, "");
View Full Code Here

Examples of fr.soleil.salsa.client.view.component.Option

        Behaviour[] behavioursValues = Behaviour.values();
        Option[] behavioursArray = new Option[behavioursValues.length];
        Behaviour behaviour;
        for (int behaviourIndex = 0; behaviourIndex < behavioursValues.length; ++behaviourIndex) {
            behaviour = behavioursValues[behaviourIndex];
            behavioursArray[behaviourIndex] = new Option(behaviour, behaviour.getShortDescription());
        }
        view.setFunctionsArray(behavioursArray);

        updater = new ScanFunctionsUpdater();
        PeriodicRefreshUpdater.getInstance().add(updater);
View Full Code Here

Examples of gri.gridp.modules.Option

    String displayText = elem.getText();
    String value = elem.getAttributeValue("value");
    if (value == null)
      value = displayText;

    return new Option(value, displayText);
  }
View Full Code Here

Examples of gri.gui.widgets.options.Option

  public void addTask(JobManager jobManager, String taskId) {
    TaskDescription desc = jobManager.getTaskDescription(taskId);
    String displayName = desc.getName();

    TaskInfo info = new TaskInfo(jobManager, taskId, desc);
    addOption(new Option(displayName, info));
  }
View Full Code Here

Examples of gri.tasks.Option

        if (value == null)
          value = displayText;
        if (displayText == null || displayText.equals(""))
          displayText = value;

        options.add(new Option(displayText, parseValue(value, valueClass)));
      }
    }


    return options;
View Full Code Here

Examples of hudson.util.ListBoxModel.Option

         if (server == null) {       
            return new ListBoxModel();
         }

         ListBoxModel d = null;
         Option temp = null;
         List<String> depots = new ArrayList<String>();
        
         // Execute the login command first & upon success of that run show depots
         // command. If any of the command's exitvalue is 1 proper error message is
         // logged
View Full Code Here

Examples of io.airlift.airline.Option

                    } else {
                        loadInjectionMetadata(field.getType(), injectionMetadata, path);
                    }
                }

                Option optionAnnotation = field.getAnnotation(Option.class);
                if (optionAnnotation != null) {
                    OptionType optionType = optionAnnotation.type();
                    String name;
                    if (!optionAnnotation.title().isEmpty()) {
                        name = optionAnnotation.title();
                    }
                    else {
                        name = field.getName();
                    }

                    List<String> options = ImmutableList.copyOf(optionAnnotation.name());
                    String description = optionAnnotation.description();

                    int arity = optionAnnotation.arity();
                    Preconditions.checkArgument(arity >= 0 || arity == Integer.MIN_VALUE, "Invalid arity for option %s", name);

                    if (optionAnnotation.arity() >= 0) {
                        arity = optionAnnotation.arity();
                    }
                    else {
                        Class<?> fieldType = field.getType();
                        if (Boolean.class.isAssignableFrom(fieldType) || boolean.class.isAssignableFrom(fieldType)) {
                            arity = 0;
                        }
                        else {
                            arity = 1;
                        }
                    }

                    boolean required = optionAnnotation.required();
                    boolean hidden = optionAnnotation.hidden();
                    List<String> allowedValues = ImmutableList.copyOf(optionAnnotation.allowedValues());
                    if (allowedValues.isEmpty()) {
                        allowedValues = null;
                    }

                    OptionMetadata optionMetadata = new OptionMetadata(optionType, options, name, description, arity, required, hidden, allowedValues, path);
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.