@Test public void testHasParameter1() { EldaURL eu = new EldaURL( "http: assertTrue( eu.hasParameter( "a", "c" )); assertFalse( eu.hasParameter( "a", "cc" )); assertFalse( eu.hasParameter( "aa", "c" )); }
public boolean hasParameter( String paramName, String paramValue ) { URLParameterValue v = getParameter( paramName ); boolean contains = false; if (v != null) { if (paramValue.contains( "," )) { contains = true; for (String pValue : StringUtils.split( paramValue, "," )) { contains = contains && v.contains( pValue ); } } else { contains = v.contains( paramValue ); } } return contains; }
EldaURL { public boolean hasParameter( String paramName, String paramValue ) { URLParameterValue v = getParameter( paramName ); boolean contains = false; if (v != null) { if (paramValue.contains( "," )) { contains = true; for (String pValue : StringUtils.split( paramValue, "," )) { contains = contains && v.contains( pValue ); } } else { contains = v.contains( paramValue ); } } return contains; } }
EldaURL { public boolean hasParameter( String paramName, String paramValue ) { URLParameterValue v = getParameter( paramName ); boolean contains = false; if (v != null) { if (paramValue.contains( "," )) { contains = true; for (String pValue : StringUtils.split( paramValue, "," )) { contains = contains && v.contains( pValue ); } } else { contains = v.contains( paramValue ); } } return contains; } EldaURL( String url );  EldaURL( URI url ); }
EldaURL { public boolean hasParameter( String paramName, String paramValue ) { URLParameterValue v = getParameter( paramName ); boolean contains = false; if (v != null) { if (paramValue.contains( "," )) { contains = true; for (String pValue : StringUtils.split( paramValue, "," )) { contains = contains && v.contains( pValue ); } } else { contains = v.contains( paramValue ); } } return contains; } EldaURL( String url );  EldaURL( URI url ); EldaURL withParameter( String op, String paramName, String paramValue ); EldaURL withParameter( OPERATION op, String paramName, String paramValue ); boolean hasParameter( String paramName, String paramValue ); URLParameterValue getParameter( String paramName ); List<NamedParameterValue> getParameters( boolean external ); @Override String toString(); URI getUri(); EldaURL parentURL(); }
EldaURL { public boolean hasParameter( String paramName, String paramValue ) { URLParameterValue v = getParameter( paramName ); boolean contains = false; if (v != null) { if (paramValue.contains( "," )) { contains = true; for (String pValue : StringUtils.split( paramValue, "," )) { contains = contains && v.contains( pValue ); } } else { contains = v.contains( paramValue ); } } return contains; } EldaURL( String url );  EldaURL( URI url ); EldaURL withParameter( String op, String paramName, String paramValue ); EldaURL withParameter( OPERATION op, String paramName, String paramValue ); boolean hasParameter( String paramName, String paramValue ); URLParameterValue getParameter( String paramName ); List<NamedParameterValue> getParameters( boolean external ); @Override String toString(); URI getUri(); EldaURL parentURL();  }