Examples of shortName()


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

                    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,
                            ol.converter(), ol.completer(), ol.validator(), ol.activator(), ol.renderer());
                }
            }
            else if((og = field.getAnnotation(OptionGroup.class)) != null) {
View Full Code Here

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

                if(field.getGenericType() != null) {
                    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(), "",
View Full Code Here

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

                    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,
                            ol.converter(), ol.completer(), ol.validator(), ol.activator(), ol.renderer());
                }
            }
            else if((og = field.getAnnotation(OptionGroup.class)) != null) {
View Full Code Here

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

               }
            }).valueSeparator(' ');

            if (input.getShortName() != InputComponents.DEFAULT_SHORT_NAME)
            {
               optionBuilder.shortName(input.getShortName());
            }
            ProcessedOption option = optionBuilder.create();
            if (ARGUMENTS_INPUT_NAME.equals(input.getName()))
            {
               parameter.setArgument(option);
View Full Code Here

Examples of org.jboss.forge.addon.ui.annotation.Option.shortName()

               }
            }

            if (option != null)
            {
               char shortName = option.shortName();
               String paramName = (option.value().isEmpty()) ? "param" + position : option.value();
               InputComponent<?, ?> input;
               if (Iterable.class.isAssignableFrom(parameterType))
               {
                  // TODO: UIInputMany or UISelectMany ?
View Full Code Here

Examples of org.jboss.forge.addon.ui.metadata.WithAttributes.shortName()

         valueType = (Class<T>) String.class;
      }
      WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
      String paramName = (withAttributes == null || withAttributes.name().trim().isEmpty()) ? name
               : withAttributes.name();
      char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
      UISelectOne<T> input = createSelectOne(paramName, shortName, valueType);
      setupSelectComponent(input);
      preconfigureInput(input, withAttributes);
      for (InputComponentInjectionEnricher enricher : enrichers)
      {
View Full Code Here

Examples of org.jboss.forge.addon.ui.metadata.WithAttributes.shortName()

      }

      WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
      String paramName = (withAttributes == null || withAttributes.name().trim().isEmpty()) ? name
               : withAttributes.name();
      char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
      UISelectMany<T> input = createSelectMany(paramName, shortName, valueType);
      setupSelectComponent(input);
      preconfigureInput(input, withAttributes);
      for (InputComponentInjectionEnricher enricher : enrichers)
      {
View Full Code Here

Examples of org.jboss.forge.addon.ui.metadata.WithAttributes.shortName()

         valueType = (Class<T>) String.class;
      }
      WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
      String paramName = (withAttributes == null || withAttributes.name().trim().isEmpty()) ? name
               : withAttributes.name();
      char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
      UIInput<T> input = createInput(paramName, shortName, valueType);
      preconfigureInput(input, withAttributes);
      for (InputComponentInjectionEnricher enricher : enrichers)
      {
         enricher.enrich(injectionPoint, input);
View Full Code Here

Examples of org.jboss.forge.addon.ui.metadata.WithAttributes.shortName()

      }

      WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
      String paramName = (withAttributes == null || withAttributes.name().trim().isEmpty()) ? name
               : withAttributes.name();
      char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
      UIInputMany<T> input = createInputMany(paramName, shortName, valueType);
      preconfigureInput(input, withAttributes);
      for (InputComponentInjectionEnricher enricher : enrichers)
      {
         enricher.enrich(injectionPoint, input);
View Full Code Here

Examples of org.jboss.forge.addon.ui.metadata.WithAttributes.shortName()

         ParameterizedType parameterizedType = (ParameterizedType) type;

         Type[] typeArguments = parameterizedType.getActualTypeArguments();
         Class<T> valueType = (Class<T>) resolveRealType(typeArguments[0]);
         WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
         char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
         UISelectOne<T> input = createSelectOne(name, shortName, valueType);
         setupSelectComponent(input);
         preconfigureInput(input, withAttributes);
         for (InputComponentInjectionEnricher enricher : enrichers)
         {
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.