@Test public void testAddXmlInputWithExplicitAttribute() throws Exception { final XmlToWme converter = SoarTechXmlToWme.forInput(agent.getInputOutput()); XmlToWmeTools.addXmlInput(agent.getInputOutput(), XmlTools.parse("<xml-input><name value='hi'/></xml-input>"), converter, "another-attr"); agent.runFor(1, RunType.DECISIONS); final Wme root = Wmes.matcher(agent).attr("another-attr").find(agent.getInputOutput().getInputLink()); assertNotNull(root); assertNotNull(Wmes.matcher(agent).attr("name").value("hi").find(root)); }
public static void addXmlInput(final InputOutput io, final Node root) { addXmlInput(io, root, DefaultXmlToWme.forInput(io), null); }
XmlToWmeTools { public static void addXmlInput(final InputOutput io, final Node root) { addXmlInput(io, root, DefaultXmlToWme.forInput(io), null); } }
XmlToWmeTools { public static void addXmlInput(final InputOutput io, final Node root) { addXmlInput(io, root, DefaultXmlToWme.forInput(io), null); }  }
XmlToWmeTools { public static void addXmlInput(final InputOutput io, final Node root) { addXmlInput(io, root, DefaultXmlToWme.forInput(io), null); }  static void addXmlInput(final InputOutput io, final Node root); static void addXmlInput(final InputWme parent, final Node root); static void addXmlInput(final InputOutput io, final Node root, final XmlToWme converter); static void addXmlInput(final InputWme parent, final Node root, final XmlToWme converter); static void addXmlInput(final InputOutput io, Node root, final XmlToWme converter, final String attr); static void addXmlInput(final InputWme parent, Node root, final XmlToWme converter, final String attr); }
XmlToWmeTools { public static void addXmlInput(final InputOutput io, final Node root) { addXmlInput(io, root, DefaultXmlToWme.forInput(io), null); }  static void addXmlInput(final InputOutput io, final Node root); static void addXmlInput(final InputWme parent, final Node root); static void addXmlInput(final InputOutput io, final Node root, final XmlToWme converter); static void addXmlInput(final InputWme parent, final Node root, final XmlToWme converter); static void addXmlInput(final InputOutput io, Node root, final XmlToWme converter, final String attr); static void addXmlInput(final InputWme parent, Node root, final XmlToWme converter, final String attr);  }