1 16 package org.apache.axis2.om; 17 18 import javax.xml.namespace.QName ; 19 import javax.xml.stream.XMLStreamReader; 20 import java.util.Iterator ; 21 22 25 public interface OMElement extends OMNode, OMContainer { 26 32 public void addChild(OMNode omNode); 33 34 46 public Iterator getChildrenWithName(QName elementQName) throws OMException; 47 48 55 public OMElement getFirstChildWithName(QName elementQName) throws OMException; 56 57 58 64 public Iterator getChildren(); 65 66 73 public OMNamespace declareNamespace(String uri, String prefix); 74 75 79 public OMNamespace declareNamespace(OMNamespace namespace); 80 81 91 public OMNamespace findNamespace(String uri, String prefix) 92 throws OMException; 93 94 99 public Iterator getAllDeclaredNamespaces() throws OMException; 100 101 102 109 public OMAttribute getFirstAttribute(QName qname) throws OMException; 110 111 116 public Iterator getAttributes(); 117 118 123 public Iterator getAttributes(QName qname); 124 125 132 public OMAttribute addAttribute(OMAttribute attr); 133 134 141 public OMAttribute addAttribute(String attributeName, String value, 142 OMNamespace ns); 143 144 149 public void removeAttribute(OMAttribute attr); 150 151 156 public void setBuilder(OMXMLParserWrapper wrapper); 157 158 163 public OMXMLParserWrapper getBuilder(); 164 165 170 public void setFirstChild(OMNode node); 171 172 177 public OMNode getFirstChild(); 178 179 183 184 public OMElement getFirstElement(); 185 186 187 188 194 public XMLStreamReader getXMLStreamReader(); 195 196 203 public XMLStreamReader getXMLStreamReaderWithoutCaching(); 204 205 209 public void setText(String text); 210 214 public String getText(); 215 216 221 public String getLocalName(); 222 223 228 public void setLocalName(String localName); 229 230 234 public OMNamespace getNamespace() throws OMException; 235 236 240 public void setNamespace(OMNamespace namespace); 241 242 246 public QName getQName(); 247 248 249 } 250 | Popular Tags |