1 16 package org.apache.axis2.om; 17 18 import javax.xml.stream.XMLStreamException; 19 20 21 24 public interface OMNode { 25 28 public static final short ELEMENT_NODE = 1; 29 30 33 public static final short TEXT_NODE = 3; 34 35 38 public static final short CDATA_SECTION_NODE = 4; 39 40 43 public static final short COMMENT_NODE = 8; 44 45 public static final short BLOB_NODE = 8; 46 47 54 public OMContainer getParent() throws OMException; 55 56 61 public void setParent(OMContainer element); 62 63 69 public OMNode getNextSibling() throws OMException; 70 71 76 public void setNextSibling(OMNode node); 77 78 85 public boolean isComplete(); 86 87 92 public void setComplete(boolean state); 93 94 100 public OMNode detach() throws OMException; 101 102 107 public void discard() throws OMException; 108 109 114 public void insertSiblingAfter(OMNode sibling) throws OMException; 115 116 122 public void insertSiblingBefore(OMNode sibling) throws OMException; 123 124 129 public int getType() throws OMException; 130 131 136 public void setType(int nodeType) throws OMException; 137 138 142 public OMNode getPreviousSibling(); 143 144 148 public void setPreviousSibling(OMNode previousSibling); 149 150 156 public void serializeWithCache(OMOutput omOutput) 157 throws XMLStreamException; 158 159 165 public void serialize(OMOutput omOutput) throws XMLStreamException; 166 167 170 public void build(); 171 172 } 173 | Popular Tags |