public void remove(String prop) { PropertyIterator iter = iterator(); while (iter.hasNext()) { if (iter.next().getName().equals(prop)) { iter.remove(); } } }
/** * Remove the argument with the specified name and value. * * @param argName * the name of the argument to remove * @param argValue the value to compare - must not be null */ public void removeArgument(String argName, String argValue) { PropertyIterator iter = getArguments().iterator(); while (iter.hasNext()) { Argument arg = (Argument) iter.next().getObjectValue(); if (arg.getName().equals(argName) && argValue.equals(arg.getValue())) { iter.remove(); } } }
/** * Remove the argument with the specified name. * * @param argName * the name of the argument to remove */ public void removeJmsProperty(String argName) { PropertyIterator iter = getProperties().iterator(); while (iter.hasNext()) { JMSProperty arg = (JMSProperty) iter.next().getObjectValue(); if (arg.getName().equals(argName)) { iter.remove(); } } }
/** * Remove the argument with the specified name. * * @param argName * the name of the argument to remove */ public void removeArgument(String argName) { PropertyIterator iter = getArguments().iterator(); while (iter.hasNext()) { Argument arg = (Argument) iter.next().getObjectValue(); if (arg.getName().equals(argName)) { iter.remove(); } } }
/** * Remove the file with the specified path. * * @param filePath * the path of the file to remove */ public void removeHTTPFileArg(String filePath) { PropertyIterator iter = getHTTPFileArgsCollection().iterator(); while (iter.hasNext()) { HTTPFileArg file = (HTTPFileArg) iter.next().getObjectValue(); if (file.getPath().equals(filePath)) { iter.remove(); } } }
/** * Remove the argument with the specified name. * * @param argName * the name of the argument to remove */ public void removeArgument(String argName) { PropertyIterator iter = getArguments().iterator(); while (iter.hasNext()) { LDAPArgument arg = (LDAPArgument) iter.next().getObjectValue(); if (arg.getName().equals(argName)) { iter.remove(); } } }
protected void recoverRunningVersionOfSubElements(TestElement owner) { PropertyIterator iter = iterator(); while (iter.hasNext()) { JMeterProperty prop = iter.next(); if (owner.isTemporary(prop)) { iter.remove(); } else { prop.recoverRunningVersion(owner); } } }
void removeMatchingCookies(Cookie newCookie){ // Scan for any matching cookies PropertyIterator iter = getCookies().iterator(); while (iter.hasNext()) { Cookie cookie = (Cookie) iter.next().getObjectValue(); if (cookie == null) {// TODO is this possible? continue; } if (match(cookie,newCookie)) { if (log.isDebugEnabled()) { log.debug("New Cookie = {} removing matching Cookie {}", newCookie.toString(), cookie.toString()); } iter.remove(); } } }
/** * Remove the specified file from the list. * * @param file * the file to remove */ public void removeHTTPFileArg(HTTPFileArg file) { PropertyIterator iter = getHTTPFileArgsCollection().iterator(); while (iter.hasNext()) { HTTPFileArg item = (HTTPFileArg) iter.next().getObjectValue(); if (file.equals(item)) { iter.remove(); } } }
/** * Remove the specified argument from the list. * * @param arg * the argument to remove */ public void removeJmsProperty(JMSProperty arg) { PropertyIterator iter = getProperties().iterator(); while (iter.hasNext()) { JMSProperty item = (JMSProperty) iter.next().getObjectValue(); if (arg.equals(item)) { iter.remove(); } } }
/** * Remove the specified argument from the list. * * @param arg * the argument to remove */ public void removeArgument(Argument arg) { PropertyIterator iter = getArguments().iterator(); while (iter.hasNext()) { Argument item = (Argument) iter.next().getObjectValue(); if (arg.equals(item)) { iter.remove(); } } }
/** * Remove the specified argument from the list. * * @param arg * the argument to remove */ public void removeArgument(LDAPArgument arg) { PropertyIterator iter = getArguments().iterator(); while (iter.hasNext()) { LDAPArgument item = (LDAPArgument) iter.next().getObjectValue(); if (arg.equals(item)) { iter.remove(); } } }