protected void writeProcessingInstruction(ProcessingInstruction processingInstruction) throws IOException { //indent(); writer.write( "<?" ); writer.write( processingInstruction.getName() ); writer.write( " " ); writer.write( processingInstruction.getText() ); writer.write( "?>" ); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
public ProcessingInstruction processingInstruction(String target) { final Object shadow = content; if (shadow instanceof List) { List<Node> list = (List<Node>) shadow; for (Node node : list) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { return pi; } } } } else { if (shadow instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) shadow; if (target.equals(pi.getName())) { return pi; } } } return null; }
public ProcessingInstruction processingInstruction(String target) { for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { return pi; } } } return null; }
public ProcessingInstruction processingInstruction(String target) { for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { return pi; } } } return null; }
public boolean removeProcessingInstruction(String target) { for (Iterator<Node> iter = contentList().iterator(); iter.hasNext();) { Node node = iter.next(); if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { iter.remove(); return true; } } } return false; }
public boolean removeProcessingInstruction(String target) { for (Iterator<Node> iter = contentList().iterator(); iter.hasNext(); ) { Node node = iter.next(); if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { iter.remove(); return true; } } } return false; }
public boolean removeProcessingInstruction(String target) { final Object shadow = content; if (shadow instanceof List) { List<Node> list = (List<Node>) shadow; for (Iterator<Node> iter = list.iterator(); iter.hasNext();) { Node node = iter.next(); if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { iter.remove(); return true; } } } } else { if (shadow instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) shadow; if (target.equals(pi.getName())) { this.content = null; return true; } } } return false; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
public List<ProcessingInstruction> processingInstructions(String target) { List<ProcessingInstruction> answer = createResultList(); for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.add(pi); } } } return answer; }
public List<ProcessingInstruction> processingInstructions(String target) { BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.addLocal(pi); } } } return answer; }
public List<ProcessingInstruction> processingInstructions(String target) { final Object shadow = content; if (shadow instanceof List) { List<Node> list = (List<Node>) shadow; BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : list) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.addLocal(pi); } } } return answer; } else { if (shadow instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) shadow; if (target.equals(pi.getName())) { return createSingleResultList(pi); } } return createEmptyList(); } }
public ProcessingInstruction processingInstruction(String target) { for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { return pi; } } } return null; }
public ProcessingInstruction processingInstruction(String target) { for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { return pi; } } } return null; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
public List<ProcessingInstruction> processingInstructions(String target) { List<ProcessingInstruction> answer = createResultList(); for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.add(pi); } } } return answer; }
public List<ProcessingInstruction> processingInstructions(String target) { BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.addLocal(pi); } } } return answer; }