@Override public String alias() { return param.alias(); }
@Override public String alias() { return param.alias(); }
@Override public String alias() { return param.alias(); }
public boolean isParamId(String key) { if (getParam().primary()) { return "DEFAULT".equals(key) || getName().equalsIgnoreCase(key); } return getName().equalsIgnoreCase(key) || getParam().shortName().equals(key) || getParam().alias().equalsIgnoreCase(key); }
public boolean isParamId(String key) { if (getParam().primary()) { return "DEFAULT".equals(key) || getName().equalsIgnoreCase(key); } return getName().equalsIgnoreCase(key) || getParam().shortName().equals(key) || getParam().alias().equalsIgnoreCase(key); }
/** * Get ParamModel for long option name. */ private ParamModel lookupLongOption(String s) { if (s == null || s.length() == 0) return null; // XXX - for now, fake it if no options if (options == null) { // no valid options specified so everything is valid return new ParamModelData(s, String.class, true, null); } for (ParamModel od : options) { if (od.getParam().primary()) continue; if (s.equalsIgnoreCase(od.getName())) return od; if (s.equalsIgnoreCase(od.getParam().alias())) return od; } return null; }
/** * Get ParamModel for long option name. */ private ParamModel lookupLongOption(String s) { if (s == null || s.length() == 0) return null; // XXX - for now, fake it if no options if (options == null) { // no valid options specified so everything is valid return new ParamModelData(s, String.class, true, null); } for (ParamModel od : options) { if (od.getParam().primary()) continue; if (s.equalsIgnoreCase(od.getName())) return od; if (s.equalsIgnoreCase(od.getParam().alias())) return od; } return null; }
str = param.alias(); if (str != null && !str.isEmpty()) { bw.write(ALIAS_ELEMENT);
paramValue = options.getOne(opt.getParam().alias().toLowerCase());