Examples of required()


Examples of org.jboss.aesh.cl.OptionList.required()

                    ParameterizedType listType = (ParameterizedType) field.getGenericType();
                    type = (Class) listType.getActualTypeArguments()[0];
                }
                if(ol.name() == null || ol.name().length() < 1) {
                    processedCommand.addOption(ol.shortName(), field.getName(), ol.description(), "",
                            ol.required(), ol.valueSeparator(), ol.defaultValue(), type, field.getName(), OptionType.LIST,
                            ol.converter(), ol.completer(), ol.validator(), ol.activator(), ol.renderer());
                }
                else {
                    processedCommand.addOption(ol.shortName(), ol.name(), ol.description(), "",
                            ol.required(), ol.valueSeparator(), ol.defaultValue(), type, field.getName(), OptionType.LIST,
View Full Code Here

Examples of org.jboss.aesh.cl.builder.OptionBuilder.required()

                     .hasValue(hasValue)
                     .type(input.getValueType());

            if (input.isRequired())
            {
               optionBuilder.required(true).renderer(OptionRenderers.REQUIRED);
            }
            OptionCompleter completer = OptionCompleterFactory.getCompletionFor(input, shellContext, converterFactory);
            optionBuilder.completer(completer);
            optionBuilder.activator(new OptionActivator()
            {
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.FormItem.required()

        if(formItemDeclaration!=null)
        {
            defaultValue = formItemDeclaration.defaultValue();
            label = formItemDeclaration.label();
            localLabel = formItemDeclaration.localLabel();
            required = formItemDeclaration.required();
            formItemTypeForEdit = formItemDeclaration.formItemTypeForEdit();
            formItemTypeForAdd = formItemDeclaration.formItemTypeForAdd();
            subgroup = formItemDeclaration.subgroup();
            tabName = formItemDeclaration.tabName();
            order = formItemDeclaration.order();
View Full Code Here

Examples of org.jboss.ejb3.test.tx.instance.InstanceTest.required()

      finally
      {
         tm.rollback();
      }
     
      bean.required();
   }
  
   @Test
   public void testTransactionMandatory() throws Throwable
   {
View Full Code Here

Examples of org.jboss.forge.shell.plugins.Option.required()

                     optionMeta.setShortName(option.shortName());
                     optionMeta.setFlagOnly(option.flagOnly());
                     optionMeta.setDescription(option.description());
                     optionMeta.setDefaultValue(option.defaultValue());
                     optionMeta.setHelp(option.help());
                     optionMeta.setRequired(option.required());
                     optionMeta.setPromptType(option.type());
                     optionMeta.setCompleterType(option.completer());

                  }
                  else if (annotation instanceof PipeIn)
View Full Code Here

Examples of org.jboss.seam.annotations.In.required()

                Class<?> implType = getImplClass(compType);

                // TODO stateless components should not / need not be cached
                // autowire the component if not done yet
                if (!namedComponents.containsKey(compName)) {
                    boolean required = inAnnotation.required();
                    boolean autoCreate = implType.isAnnotationPresent(AutoCreate.class);
                    Scope scopeAnn = implType.getAnnotation(Scope.class);
                    boolean stateless = false;
                    if (scopeAnn != null) {
                        stateless = scopeAnn.value() == ScopeType.STATELESS;
View Full Code Here

Examples of org.jruby.anno.JRubyMethod.required()

                    // Arity does not give us enough information about min/max
                    // so we must go to the annotation
                    Method reflected = method.getNativeCall().getMethod();
                    JRubyMethod annotation = reflected.getAnnotation(JRubyMethod.class);
                   
                    int required = annotation.required();
                    int optional = annotation.optional();
                    boolean rest = annotation.rest();
                   
                    if (required > 0 || !rest) {
                        MethodHandle arityCheck = Binder
View Full Code Here

Examples of org.jruby.runtime.Arity.required()

        // for zsupers in define_method (blech!) we tell the proc scope to act as the "argument" scope
        scope.setArgumentScope(true);

        Arity arity = block.arity();
        // just using required is broken...but no more broken than before zsuper refactoring
        scope.setRequiredArgs(arity.required());

        if(!arity.isFixed()) {
            scope.setRestArg(arity.required());
        }
View Full Code Here

Examples of org.jvnet.hk2.config.Attribute.required()

        {
            d.setField(DESC_DEFAULT_VALUE, a.defaultValue());
        }

        d.setField(DESC_KEY, a.key());
        d.setField(DESC_REQUIRED, a.required());
        d.setField(DESC_REFERENCE, a.reference());
        d.setField(DESC_VARIABLE_EXPANSION, a.variableExpansion());
        d.setField(DESC_DATA_TYPE, info.inferDataType().getName());

        return d;
View Full Code Here

Examples of org.kohsuke.args4j.NamedOptionDef.required()

        if (handler instanceof BooleanOptionHandler) {
          booleans.add(n);
          continue;
        }

        if (!n.required()) {
          out.write('[');
        }
        out.write(next);
        next = '&';
        if (n.name().startsWith("--")) {
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.