public void writeChildrenXML(XMLOutput xmlOutput) throws IOException { for (Matcher m : children) { m.writeXML(xmlOutput, false); } }
public void writeBodyAsXML(XMLOutput xmlOutput) throws IOException { Iterator<Matcher> i = childIterator(); while (i.hasNext()) { Matcher child = i.next(); child.writeXML(xmlOutput, disabled.containsKey(child)); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { if(childIterator().hasNext()) { xmlOutput.startTag("Not"); if (disabled) { xmlOutput.addAttribute("disabled","true"); } Matcher invertedMatcher = childIterator().next(); xmlOutput.stopTag(false); invertedMatcher.writeXML(xmlOutput, disabled); xmlOutput.closeTag("Not"); } }
public void writeEnabledMatchersAsXML(@WillClose OutputStream out) throws IOException { XMLOutput xmlOutput = new OutputStreamXMLOutput(out); try { xmlOutput.beginDocument(); xmlOutput.openTag("FindBugsFilter"); Iterator<Matcher> i = childIterator(); while (i.hasNext()) { Matcher child = i.next(); if (!disabled.containsKey(child)) { child.writeXML(xmlOutput, false); } } xmlOutput.closeTag("FindBugsFilter"); } finally { xmlOutput.finish(); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { if (numberChildren() == 1) { childIterator().next().writeXML(xmlOutput, false); return; } xmlOutput.startTag("Or"); if (disabled) { xmlOutput.addAttribute("disabled", "true"); } xmlOutput.stopTag(false); writeChildrenXML(xmlOutput); xmlOutput.closeTag("Or"); }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { if (numberChildren() == 1) { // System.out.println("One child: " + this); childIterator().next().writeXML(xmlOutput, disabled); return; } xmlOutput.startTag("And"); if (disabled) { xmlOutput.addAttribute("disabled", "true"); } xmlOutput.stopTag(false); super.writeChildrenXML(xmlOutput); xmlOutput.closeTag("And"); }
public void writeChildrenXML(XMLOutput xmlOutput) throws IOException { for (Matcher m : children) { m.writeXML(xmlOutput, false); } }
public void writeBodyAsXML(XMLOutput xmlOutput) throws IOException { Iterator<Matcher> i = childIterator(); while (i.hasNext()) { Matcher child = i.next(); child.writeXML(xmlOutput, disabled.containsKey(child)); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { if(childIterator().hasNext()) { xmlOutput.startTag("Not"); if (disabled) { xmlOutput.addAttribute("disabled","true"); } Matcher invertedMatcher = childIterator().next(); xmlOutput.stopTag(false); invertedMatcher.writeXML(xmlOutput, disabled); xmlOutput.closeTag("Not"); } }
public void writeEnabledMatchersAsXML(@WillClose OutputStream out) throws IOException { XMLOutput xmlOutput = new OutputStreamXMLOutput(out); try { xmlOutput.beginDocument(); xmlOutput.openTag("FindBugsFilter"); Iterator<Matcher> i = childIterator(); while (i.hasNext()) { Matcher child = i.next(); if (!disabled.containsKey(child)) { child.writeXML(xmlOutput, false); } } xmlOutput.closeTag("FindBugsFilter"); } finally { xmlOutput.finish(); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { if (numberChildren() == 1) { childIterator().next().writeXML(xmlOutput, false); return; } xmlOutput.startTag("Or"); if (disabled) { xmlOutput.addAttribute("disabled", "true"); } xmlOutput.stopTag(false); writeChildrenXML(xmlOutput); xmlOutput.closeTag("Or"); }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { if (numberChildren() == 1) { // System.out.println("One child: " + this); childIterator().next().writeXML(xmlOutput, disabled); return; } xmlOutput.startTag("And"); if (disabled) { xmlOutput.addAttribute("disabled", "true"); } xmlOutput.stopTag(false); super.writeChildrenXML(xmlOutput); xmlOutput.closeTag("And"); }