1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.kernel.xml;
16  
17  import java.util.Iterator;
18  import java.util.List;
19  
20  /**
21   * <a href="Branch.java.html"><b><i>View Source</i></b></a>
22   *
23   * @author Brian Wing Shun Chan
24   */
25  public interface Branch extends Node {
26  
27      public void add(Comment comment);
28  
29      public void add(Element element);
30  
31      public void add(Node node);
32  
33      public void add(ProcessingInstruction processingInstruction);
34  
35      public Element addElement(QName qName);
36  
37      public Element addElement(String name);
38  
39      public Element addElement(String qualifiedName, String namespaceURI);
40  
41      public void appendContent(Branch branch);
42  
43      public void clearContent();
44  
45      public List<Node> content();
46  
47      public Element elementByID(String elementID);
48  
49      public int indexOf(Node node);
50  
51      public Node node(int index);
52  
53      public int nodeCount();
54  
55      public Iterator<Node> nodeIterator();
56  
57      public void normalize();
58  
59      public ProcessingInstruction processingInstruction(String target);
60  
61      public List<ProcessingInstruction> processingInstructions();
62  
63      public List<ProcessingInstruction> processingInstructions(String target);
64  
65      public boolean remove(Comment comment);
66  
67      public boolean remove(Element element);
68  
69      public boolean remove(Node node);
70  
71      public boolean remove(ProcessingInstruction processingInstruction);
72  
73      public boolean removeProcessingInstruction(String target);
74  
75      public void setContent(List<Node> content);
76  
77      public void setProcessingInstructions(
78          List<ProcessingInstruction> processingInstructions);
79  
80  }