private boolean isParameterNameEqual(final String parameterName, final ParameterShell shell) { return shell.getParameter().getCommonName().equalsIgnoreCase(parameterName) || shell.getParameter().getServiceSidedName().equalsIgnoreCase(parameterName); }
/** * @param serviceSidedName * @return the ParameterShell whose parameter has the specified serviceSidedName (ignoring case). If there * isn't such a ParameterShell <code>null</code> will be returned. */ public ParameterShell getParameterShellWithServiceSidedName(final String serviceSidedName) { for (final ParameterShell ps : parameterShells) { if (ps.getParameter().getServiceSidedName() != null && ps.getParameter().getServiceSidedName().equalsIgnoreCase(serviceSidedName)) { return ps; } } return null; }
/** * @param commonName * @return <code>true</code> if this ParameterContainer contains a ParameterShell with a Parameter whose * commonName is as specified. Otherwise <code>false</code> will be returned. */ public boolean containsParameterShellWithCommonName(final String commonName) { for (final ParameterShell ps : parameterShells) { if (ps.getParameter().getCommonName() != null && ps.getParameter().getCommonName().equalsIgnoreCase(commonName)) { return true; } } return false; }
/** * @param serviceSidedName * @return <code>true</code> if this ParameterContainer contains a ParameterShell with a Parameter whose * serviceSidedName is as specified (ignoring case). Otherwise <code>false</code> will be * returned. */ public boolean containsParameterShellWithServiceSidedName(final String serviceSidedName) { for (final ParameterShell ps : parameterShells) { if (ps.getParameter().getServiceSidedName() != null && ps.getParameter().getServiceSidedName().equalsIgnoreCase(serviceSidedName)) { return true; } } return false; }
/** * */ @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("ParameterContainer:\n["); for (final ParameterShell ps : parameterShells) { sb.append("ServiceSidedName: "); sb.append(ps.getParameter().getServiceSidedName()); sb.append(" CommonName: "); sb.append(ps.getParameter().getCommonName()); sb.append(" Value: "); sb.append(ps.getSpecifiedValue()); sb.append("\n"); } sb.append("]"); return sb.toString(); }
/** * @param commonName * @return the ParameterShell whose parameter has the specified commonName (ignoring case). If there isn't * such a ParameterShell <code>null</code> will be returned. */ public ParameterShell getParameterShellWithCommonName(final String commonName) { for (final ParameterShell ps : parameterShells) { final Parameter parameter = ps.getParameter(); if (parameter.getCommonName() != null && parameter.getCommonName().equalsIgnoreCase(commonName)) { return ps; } } return null; }
if (ps.getParameter().getCommonName() == null) { if (ps.getSpecifiedValue() instanceof IGenericParameterValue) { if (firstGenericParam) {