Package org.kohsuke.args4j

Examples of org.kohsuke.args4j.MapSetter


    return null;
  }

  @Override
  public int parseArguments(Parameters params) throws CmdLineException {
    MapSetter mapSetter = (MapSetter)setter;
    try {
      mapSetter.addValue(params.getParameter(0));
    } catch (RuntimeException e) {
      throw new CmdLineException(owner, e.getMessage());
    }
        return 1;
  }
View Full Code Here


    public static Setter create(Field f, Object bean) {
        if(List.class.isAssignableFrom(f.getType()))
            return new MultiValueFieldSetter(bean,f);
        else if(Map.class.isAssignableFrom(f.getType()))
            return new MapSetter(bean,f);
        else
            return new FieldSetter(bean,f);
    }
View Full Code Here

    return null;
  }

  @Override
  public int parseArguments(Parameters params) throws CmdLineException {
    MapSetter mapSetter = (MapSetter)setter;
    try {
      mapSetter.addValue(params.getParameter(0));
    } catch (RuntimeException e) {
      throw new CmdLineException(e.getMessage());
    }
        return 1;
  }
View Full Code Here

TOP

Related Classes of org.kohsuke.args4j.MapSetter

Copyright © 2018 www.massapicom. 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.