Exemplo n.º 1
0
 public static void addCommonXsltParameters(ArgumentParser cmdLine) {
   cmdLine.addArgument(ARG_STYLESHEET, ArgumentType.Filename);
   cmdLine.addArgument(ARG_PARAMETER, ArgumentType.Repeatable);
   cmdLine.addDeprecatedArgument(
       "xsltParameters", ArgumentType.Repeatable); // for backward compatibility
   cmdLine.addArgument(ARG_OUTPUT, ArgumentType.Filename);
 }
 public ModifierArguments(ArgumentParser cmdLine) throws NumberFormatException {
   String value = cmdLine.getValue(ARG_MAXLENGTH);
   parseSubstring(value);
   value = cmdLine.getValue(ARG_SUBSTRING);
   parseSubstring(value);
   value = cmdLine.getValue(ARG_REGEX);
   parseRegex(value);
 }
Exemplo n.º 3
0
 public static Map<String, String> getParameters(ArgumentParser cmdLine) {
   Map<String, String> params = cmdLine.getMapValue(ARG_PARAMETER);
   Map<String, String> old = cmdLine.getMapValue("xsltParameters");
   params.putAll(old);
   return params;
 }
 public static void addArguments(ArgumentParser cmdLine) {
   cmdLine.addArgument(ARG_REGEX);
   cmdLine.addArgument(ARG_SUBSTRING, ArgumentType.Repeatable);
   cmdLine.addArgument(ARG_MAXLENGTH);
 }