Examples of primary()


Examples of org.glassfish.api.Param.primary()

            final String usage = getUsageText(command, model);
            if (paramModel != null) {
                String paramName = paramModel.getName();
                String paramDesc = paramModel.getLocalizedDescription();

                if (param.primary()) {
                    errorMsg = adminStrings.getLocalString("commandrunner.operand.required",
                            "Operand required.");
                } else if (param.password()) {
                    errorMsg = adminStrings.getLocalString("adapter.param.missing.passwordfile",
                            "{0} command requires the passwordfile "
View Full Code Here

Examples of org.glassfish.api.Param.primary()

                }
            } catch (Exception e) {
                // just leave it as null...
            }
            // this is a param.
            if (param.primary()) {
                if (optional) {
                    operand.append("[").append(paramName).append("] ");
                } else {
                    operand.append(paramName).append(" ");
                }
View Full Code Here

Examples of org.glassfish.api.Param.primary()

                Param param = paramModel.getParam();
                if (param == null || paramModel.getName().startsWith("_") ||
                        param.password() || param.obsolete()) {
                    continue;
                }
                if (param.primary()) {
                    operand = paramModel;
                    continue;
                }
                hlp.append("     --").append(paramModel.getName().toLowerCase(Locale.ENGLISH));
                hlp.append(ManifestUtils.EOL);
View Full Code Here

Examples of org.glassfish.api.Param.primary()

        // for each parameter add
        // <option name="name" type="type" short="s" default="default"
        //   acceptable-values="list"/>
        for (CommandModel.ParamModel p : model.getParameters()) {
            Param param = p.getParam();
            if (param.primary()) {
                primary = p;
                continue;
            }
            ActionReport.MessagePart ppart = cmd.addChild();
            ppart.setChildrenType("option");
View Full Code Here

Examples of org.glassfish.api.Param.primary()

            }
            // do not want to display obsolete options
            if (param.obsolete()) {
                return;
            }
            if (param.primary()) {
                // if primary then it's an operand
                report.getTopMessagePart().addProperty(paramName + "_operand",
                        model.getLocalizedDescription());
            } else {
                report.getTopMessagePart().addProperty(paramName,
View Full Code Here

Examples of org.glassfish.api.Param.primary()

                    tag.append('M');
                }
                if (param.optional()) {
                    tag.append('P');
                }
                if (param.primary()) {
                    tag.append('1');
                }
                if (param.obsolete()) {
                    tag.append('O');
                }
View Full Code Here

Examples of org.glassfish.api.Param.primary()

            final String usage = getUsageText(command, model);
            if (paramModel != null) {
                String paramName = paramModel.getName();
                String paramDesc = paramModel.getLocalizedDescription();

                if (param.primary()) {
                    errorMsg = adminStrings.getLocalString("commandrunner.operand.required",
                                                           "Operand required.");
                } else if (param.password()) {
                    errorMsg = adminStrings.getLocalString("adapter.param.missing.passwordfile",
                                "{0} command requires the passwordfile " +
View Full Code Here

Examples of org.glassfish.api.Param.primary()

                    fvalueString = fvalue.toString();
            } catch (Exception e) {
                // just leave it as null...
            }
            // this is a param.
            if (param.primary()) {
                if (optional) {
                    operand.append("[").append(paramName).append("] ");
                } else {
                    operand.append(paramName).append(" ");
                }
View Full Code Here

Examples of org.glassfish.api.Param.primary()

  // for each parameter add
  // <option name="name" type="type" short="s" default="default"
  //   acceptable-values="list"/>
  for (CommandModel.ParamModel p : model.getParameters()) {
      Param param = p.getParam();
      if (param.primary()) {
    primary = p;
    continue;
      }
      ActionReport.MessagePart ppart = cmd.addChild();
      ppart.setChildrenType("option");
View Full Code Here

Examples of org.glassfish.api.Param.primary()

            if (param.password())
                return;
            // do not want to display obsolete options
            if (param.obsolete())
                return;
            if (param.primary()) {
                // if primary then it's an operand
                report.getTopMessagePart().addProperty(paramName+"_operand",
                            model.getLocalizedDescription());
            } else {
                report.getTopMessagePart().addProperty(paramName,
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.