1 16 19 package com.sun.org.apache.xml.internal.dtm.ref; 20 21 import com.sun.org.apache.xml.internal.dtm.DTM; 22 import com.sun.org.apache.xml.internal.dtm.DTMDOMException; 23 24 import org.w3c.dom.Attr ; 25 import org.w3c.dom.CDATASection ; 26 import org.w3c.dom.Comment ; 27 import org.w3c.dom.DOMException ; 28 import org.w3c.dom.DOMImplementation ; 29 import org.w3c.dom.Document ; 30 import org.w3c.dom.DocumentFragment ; 31 import org.w3c.dom.DocumentType ; 32 import org.w3c.dom.Element ; 33 import org.w3c.dom.EntityReference ; 34 import org.w3c.dom.NamedNodeMap ; 35 import org.w3c.dom.Node ; 36 import org.w3c.dom.NodeList ; 37 import org.w3c.dom.ProcessingInstruction ; 38 import org.w3c.dom.Text ; 39 40 import org.w3c.dom.UserDataHandler ; 41 import org.w3c.dom.DOMConfiguration ; 42 43 import org.w3c.dom.TypeInfo ; 44 45 59 public class DTMNodeProxy 60 implements Node , Document , Text , Element , Attr , 61 ProcessingInstruction , Comment , DocumentFragment 62 { 63 64 65 public DTM dtm; 66 67 68 int node; 69 70 71 static final DOMImplementation implementation=new DTMNodeProxyImplementation(); 72 73 79 public DTMNodeProxy(DTM dtm, int node) 80 { 81 this.dtm = dtm; 82 this.node = node; 83 } 84 85 90 public final DTM getDTM() 91 { 92 return dtm; 93 } 94 95 100 public final int getDTMNodeNumber() 101 { 102 return node; 103 } 104 105 112 public final boolean equals(Node node) 113 { 114 115 try 116 { 117 DTMNodeProxy dtmp = (DTMNodeProxy) node; 118 119 return (dtmp.node == this.node) && (dtmp.dtm == this.dtm); 122 } 123 catch (ClassCastException cce) 124 { 125 return false; 126 } 127 } 128 129 136 public final boolean equals(Object node) 137 { 138 139 try 140 { 141 142 return equals((Node ) node); 146 } 147 catch (ClassCastException cce) 148 { 149 return false; 150 } 151 } 152 153 160 public final boolean sameNodeAs(Node other) 161 { 162 163 if (!(other instanceof DTMNodeProxy)) 164 return false; 165 166 DTMNodeProxy that = (DTMNodeProxy) other; 167 168 return this.dtm == that.dtm && this.node == that.node; 169 } 170 171 176 public final String getNodeName() 177 { 178 return dtm.getNodeName(node); 179 } 180 181 194 public final String getTarget() 195 { 196 return dtm.getNodeName(node); 197 } 199 204 public final String getLocalName() 205 { 206 return dtm.getLocalName(node); 207 } 208 209 213 public final String getPrefix() 214 { 215 return dtm.getPrefix(node); 216 } 217 218 225 public final void setPrefix(String prefix) throws DOMException 226 { 227 throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); 228 } 229 230 235 public final String getNamespaceURI() 236 { 237 return dtm.getNamespaceURI(node); 238 } 239 240 256 public final boolean supports(String feature, String version) 257 { 258 return implementation.hasFeature(feature,version); 259 } 261 262 272 public final boolean isSupported(String feature, String version) 273 { 274 return implementation.hasFeature(feature,version); 275 } 277 278 285 public final String getNodeValue() throws DOMException 286 { 287 return dtm.getNodeValue(node); 288 } 289 290 295 public final String getStringValue() throws DOMException 296 { 297 return dtm.getStringValue(node).toString(); 298 } 299 300 307 public final void setNodeValue(String nodeValue) throws DOMException 308 { 309 throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); 310 } 311 312 317 public final short getNodeType() 318 { 319 return (short) dtm.getNodeType(node); 320 } 321 322 327 public final Node getParentNode() 328 { 329 330 if (getNodeType() == Node.ATTRIBUTE_NODE) 331 return null; 332 333 int newnode = dtm.getParent(node); 334 335 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); 336 } 337 338 343 public final Node getOwnerNode() 344 { 345 346 int newnode = dtm.getParent(node); 347 348 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); 349 } 350 351 356 public final NodeList getChildNodes() 357 { 358 359 return new DTMChildIterNodeList(dtm,node); 363 364 } 366 367 372 public final Node getFirstChild() 373 { 374 375 int newnode = dtm.getFirstChild(node); 376 377 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); 378 } 379 380 385 public final Node getLastChild() 386 { 387 388 int newnode = dtm.getLastChild(node); 389 390 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); 391 } 392 393 398 public final Node getPreviousSibling() 399 { 400 401 int newnode = dtm.getPreviousSibling(node); 402 403 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); 404 } 405 406 411 public final Node getNextSibling() 412 { 413 414 if (dtm.getNodeType(node) == Node.ATTRIBUTE_NODE) 416 return null; 417 418 int newnode = dtm.getNextSibling(node); 419 420 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); 421 } 422 423 425 430 public final NamedNodeMap getAttributes() 431 { 432 433 return new DTMNamedNodeMap(dtm, node); 434 } 435 436 444 public boolean hasAttribute(String name) 445 { 446 return DTM.NULL != dtm.getAttributeNode(node,null,name); 447 } 448 449 458 public boolean hasAttributeNS(String name, String x) 459 { 460 return DTM.NULL != dtm.getAttributeNode(node,x,name); 461 } 462 463 468 public final Document getOwnerDocument() 469 { 470 return (Document )(dtm.getNode(dtm.getOwnerDocument(node))); 472 } 473 474 484 public final Node insertBefore(Node newChild, Node refChild) 485 throws DOMException 486 { 487 throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); 488 } 489 490 500 public final Node replaceChild(Node newChild, Node oldChild) 501 throws DOMException 502 { 503 throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); 504 } 505 506 515 public final Node removeChild(Node oldChild) throws DOMException 516 { 517 throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); 518 } 519 520 529 public final Node appendChild(Node newChild) throws DOMException 530 { 531 throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); 532 } 533 534 539 public final boolean hasChildNodes() 540 { 541 return (DTM.NULL != dtm.getFirstChild(node)); 542 } 543 544 551 public final Node cloneNode(boolean deep) 552 { 553 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 554 } 555 556 561 public final DocumentType getDoctype() 562 { 563 return null; 564 } 565 566 571 public final DOMImplementation getImplementation() 572 { 573 return implementation; 574 } 575 576 583 public final Element getDocumentElement() 584 { 585 int dochandle=dtm.getDocument(); 586 int elementhandle=DTM.NULL; 587 for(int kidhandle=dtm.getFirstChild(dochandle); 588 kidhandle!=DTM.NULL; 589 kidhandle=dtm.getNextSibling(kidhandle)) 590 { 591 switch(dtm.getNodeType(kidhandle)) 592 { 593 case Node.ELEMENT_NODE: 594 if(elementhandle!=DTM.NULL) 595 { 596 elementhandle=DTM.NULL; kidhandle=dtm.getLastChild(dochandle); } 599 else 600 elementhandle=kidhandle; 601 break; 602 603 case Node.COMMENT_NODE: 605 case Node.PROCESSING_INSTRUCTION_NODE: 606 case Node.DOCUMENT_TYPE_NODE: 607 break; 608 609 default: 610 elementhandle=DTM.NULL; kidhandle=dtm.getLastChild(dochandle); break; 613 } 614 } 615 if(elementhandle==DTM.NULL) 616 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 617 else 618 return (Element )(dtm.getNode(elementhandle)); 619 } 620 621 630 public final Element createElement(String tagName) throws DOMException 631 { 632 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 633 } 634 635 640 public final DocumentFragment createDocumentFragment() 641 { 642 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 643 } 644 645 652 public final Text createTextNode(String data) 653 { 654 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 655 } 656 657 664 public final Comment createComment(String data) 665 { 666 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 667 } 668 669 678 public final CDATASection createCDATASection(String data) 679 throws DOMException 680 { 681 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 682 } 683 684 694 public final ProcessingInstruction createProcessingInstruction( 695 String target, String data) throws DOMException 696 { 697 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 698 } 699 700 709 public final Attr createAttribute(String name) throws DOMException 710 { 711 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 712 } 713 714 723 public final EntityReference createEntityReference(String name) 724 throws DOMException 725 { 726 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 727 } 728 729 736 public final NodeList getElementsByTagName(String tagname) 737 { 738 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 739 } 740 741 751 public final Node importNode(Node importedNode, boolean deep) 752 throws DOMException 753 { 754 throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); 755 } 756 757 767 public final Element createElementNS( 768 String namespaceURI, String qualifiedName) throws DOMException 769 { 770 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 771 } 772 773 783 public final Attr createAttributeNS( 784 String namespaceURI, String qualifiedName) throws DOMException 785 { 786 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 787 } 788 789 797 public final NodeList getElementsByTagNameNS(String namespaceURI, 798 String localName) 799 { 800 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 801 } 802 803 810 public final Element getElementById(String elementId) 811 { 812 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 813 } 814 815 824 public final Text splitText(int offset) throws DOMException 825 { 826 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 827 } 828 829 836 public final String getData() throws DOMException 837 { 838 return dtm.getNodeValue(node); 839 } 840 841 848 public final void setData(String data) throws DOMException 849 { 850 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 851 } 852 853 858 public final int getLength() 859 { 860 return dtm.getNodeValue(node).length(); 862 } 863 864 874 public final String substringData(int offset, int count) throws DOMException 875 { 876 return getData().substring(offset,offset+count); 877 } 878 879 886 public final void appendData(String arg) throws DOMException 887 { 888 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 889 } 890 891 899 public final void insertData(int offset, String arg) throws DOMException 900 { 901 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 902 } 903 904 912 public final void deleteData(int offset, int count) throws DOMException 913 { 914 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 915 } 916 917 926 public final void replaceData(int offset, int count, String arg) 927 throws DOMException 928 { 929 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 930 } 931 932 937 public final String getTagName() 938 { 939 return dtm.getNodeName(node); 940 } 941 942 949 public final String getAttribute(String name) 950 { 951 952 DTMNamedNodeMap map = new DTMNamedNodeMap(dtm, node); 953 Node node = map.getNamedItem(name); 954 return (null == node) ? null : node.getNodeValue(); 955 } 956 957 965 public final void setAttribute(String name, String value) 966 throws DOMException 967 { 968 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 969 } 970 971 978 public final void removeAttribute(String name) throws DOMException 979 { 980 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 981 } 982 983 990 public final Attr getAttributeNode(String name) 991 { 992 993 DTMNamedNodeMap map = new DTMNamedNodeMap(dtm, node); 994 return (Attr )map.getNamedItem(name); 995 } 996 997 1006 public final Attr setAttributeNode(Attr newAttr) throws DOMException 1007 { 1008 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1009 } 1010 1011 1020 public final Attr removeAttributeNode(Attr oldAttr) throws DOMException 1021 { 1022 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1023 } 1024 1025 1030 public boolean hasAttributes() 1031 { 1032 return DTM.NULL != dtm.getFirstAttribute(node); 1033 } 1034 1035 1036 public final void normalize() 1037 { 1038 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1039 } 1040 1041 1049 public final String getAttributeNS(String namespaceURI, String localName) 1050 { 1051 DTMNamedNodeMap map = new DTMNamedNodeMap(dtm, node); 1052 Node node = map.getNamedItemNS(namespaceURI,localName); 1053 return (null == node) ? null : node.getNodeValue(); 1054 } 1055 1056 1065 public final void setAttributeNS( 1066 String namespaceURI, String qualifiedName, String value) 1067 throws DOMException 1068 { 1069 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1070 } 1071 1072 1080 public final void removeAttributeNS(String namespaceURI, String localName) 1081 throws DOMException 1082 { 1083 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1084 } 1085 1086 1094 public final Attr getAttributeNodeNS(String namespaceURI, String localName) 1095 { 1096 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1097 } 1098 1099 1108 public final Attr setAttributeNodeNS(Attr newAttr) throws DOMException 1109 { 1110 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1111 } 1112 1113 1118 public final String getName() 1119 { 1120 return dtm.getNodeName(node); 1121 } 1122 1123 1128 public final boolean getSpecified() 1129 { 1130 return true; 1135 } 1136 1137 1142 public final String getValue() 1143 { 1144 return dtm.getNodeValue(node); 1145 } 1146 1147 1152 public final void setValue(String value) 1153 { 1154 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1155 } 1156 1157 1163 public final Element getOwnerElement() 1164 { 1165 if (getNodeType() != Node.ATTRIBUTE_NODE) 1166 return null; 1167 int newnode = dtm.getParent(node); 1170 return (newnode == DTM.NULL) ? null : (Element )(dtm.getNode(newnode)); 1171 } 1172 1173 1183 public Node adoptNode(Node source) throws DOMException 1184 { 1185 1186 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1187 } 1188 1189 1200 public String getInputEncoding() 1201 { 1202 1203 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1204 } 1205 1206 1217 public void setEncoding(String encoding) 1218 { 1219 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1220 } 1221 1222 1233 public boolean getStandalone() 1234 { 1235 1236 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1237 } 1238 1239 1250 public void setStandalone(boolean standalone) 1251 { 1252 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1253 } 1254 1255 1270 public boolean getStrictErrorChecking() 1271 { 1272 1273 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1274 } 1275 1276 1291 public void setStrictErrorChecking(boolean strictErrorChecking) 1292 { 1293 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1294 } 1295 1296 1307 public String getVersion() 1308 { 1309 1310 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1311 } 1312 1313 1324 public void setVersion(String version) 1325 { 1326 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1327 } 1328 1329 1330 1332 static class DTMNodeProxyImplementation implements DOMImplementation 1333 { 1334 public DocumentType createDocumentType(String qualifiedName,String publicId, String systemId) 1335 { 1336 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1337 } 1338 public Document createDocument(String namespaceURI,String qualfiedName,DocumentType doctype) 1339 { 1340 throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); 1342 } 1343 1352 public boolean hasFeature(String feature,String version) 1353 { 1354 if( ("CORE".equals(feature.toUpperCase()) || "XML".equals(feature.toUpperCase())) 1355 && 1356 ("1.0".equals(version) || "2.0".equals(version))) 1357 return true; 1358 return false; 1359 } 1360 1361 1382 public Object getFeature(String feature, String version) { 1383 return null; } 1388 1389 } 1390 1391 1392 1394 public Object setUserData(String key, 1395 Object data, 1396 UserDataHandler handler) { 1397 return getOwnerDocument().setUserData( key, data, handler); 1398 } 1399 1400 1409 public Object getUserData(String key) { 1410 return getOwnerDocument().getUserData( key); 1411 } 1412 1413 1433 public Object getFeature(String feature, String version) { 1434 return isSupported(feature, version) ? this : null; 1437 } 1438 1439 1481 public boolean isEqualNode(Node arg) { 1482 if (arg == this) { 1483 return true; 1484 } 1485 if (arg.getNodeType() != getNodeType()) { 1486 return false; 1487 } 1488 if (getNodeName() == null) { 1491 if (arg.getNodeName() != null) { 1492 return false; 1493 } 1494 } 1495 else if (!getNodeName().equals(arg.getNodeName())) { 1496 return false; 1497 } 1498 1499 if (getLocalName() == null) { 1500 if (arg.getLocalName() != null) { 1501 return false; 1502 } 1503 } 1504 else if (!getLocalName().equals(arg.getLocalName())) { 1505 return false; 1506 } 1507 1508 if (getNamespaceURI() == null) { 1509 if (arg.getNamespaceURI() != null) { 1510 return false; 1511 } 1512 } 1513 else if (!getNamespaceURI().equals(arg.getNamespaceURI())) { 1514 return false; 1515 } 1516 1517 if (getPrefix() == null) { 1518 if (arg.getPrefix() != null) { 1519 return false; 1520 } 1521 } 1522 else if (!getPrefix().equals(arg.getPrefix())) { 1523 return false; 1524 } 1525 1526 if (getNodeValue() == null) { 1527 if (arg.getNodeValue() != null) { 1528 return false; 1529 } 1530 } 1531 else if (!getNodeValue().equals(arg.getNodeValue())) { 1532 return false; 1533 } 1534 1544 1545 return true; 1546 } 1547 1548 1557 public String lookupNamespaceURI(String specifiedPrefix) { 1558 short type = this.getNodeType(); 1559 switch (type) { 1560 case Node.ELEMENT_NODE : { 1561 1562 String namespace = this.getNamespaceURI(); 1563 String prefix = this.getPrefix(); 1564 if (namespace !=null) { 1565 if (specifiedPrefix== null && prefix==specifiedPrefix) { 1567 return namespace; 1569 } else if (prefix != null && prefix.equals(specifiedPrefix)) { 1570 return namespace; 1572 } 1573 } 1574 if (this.hasAttributes()) { 1575 NamedNodeMap map = this.getAttributes(); 1576 int length = map.getLength(); 1577 for (int i=0;i<length;i++) { 1578 Node attr = map.item(i); 1579 String attrPrefix = attr.getPrefix(); 1580 String value = attr.getNodeValue(); 1581 namespace = attr.getNamespaceURI(); 1582 if (namespace !=null && namespace.equals("http://www.w3.org/2000/xmlns/")) { 1583 if (specifiedPrefix == null && 1585 attr.getNodeName().equals("xmlns")) { 1586 return value; 1588 } else if (attrPrefix !=null && 1589 attrPrefix.equals("xmlns") && 1590 attr.getLocalName().equals(specifiedPrefix)) { 1591 return value; 1593 } 1594 } 1595 } 1596 } 1597 1603 1604 return null; 1605 1606 1607 } 1608 1613 case Node.ENTITY_NODE : 1614 case Node.NOTATION_NODE: 1615 case Node.DOCUMENT_FRAGMENT_NODE: 1616 case Node.DOCUMENT_TYPE_NODE: 1617 return null; 1619 case Node.ATTRIBUTE_NODE:{ 1620 if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) { 1621 return getOwnerElement().lookupNamespaceURI(specifiedPrefix); 1622 1623 } 1624 return null; 1625 } 1626 default:{ 1627 1633 return null; 1634 } 1635 1636 } 1637 } 1638 1639 1640 1649 public boolean isDefaultNamespace(String namespaceURI){ 1650 1710 return false; 1711 1712 1713 } 1714 1715 1723 public String lookupPrefix(String namespaceURI){ 1724 1725 if (namespaceURI == null) { 1728 return null; 1729 } 1730 1731 short type = this.getNodeType(); 1732 1733 switch (type) { 1734 1745 case Node.ENTITY_NODE : 1746 case Node.NOTATION_NODE: 1747 case Node.DOCUMENT_FRAGMENT_NODE: 1748 case Node.DOCUMENT_TYPE_NODE: 1749 return null; 1751 case Node.ATTRIBUTE_NODE:{ 1752 if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) { 1753 return getOwnerElement().lookupPrefix(namespaceURI); 1754 1755 } 1756 return null; 1757 } 1758 default:{ 1759 1765 return null; 1766 } 1767 } 1768 } 1769 1770 1784 public boolean isSameNode(Node other) { 1785 return this == other; 1787 } 1788 1789 1834 public void setTextContent(String textContent) 1835 throws DOMException { 1836 setNodeValue(textContent); 1837 } 1838 1883 public String getTextContent() throws DOMException { 1884 return getNodeValue(); } 1886 1887 1895 public short compareDocumentPosition(Node other) throws DOMException { 1896 return 0; 1897 } 1898 1899 1923 public String getBaseURI() { 1924 return null; 1925 } 1926 1927 1931 public Node renameNode(Node n, 1932 String namespaceURI, 1933 String name) 1934 throws DOMException{ 1935 return n; 1936 } 1937 1938 1939 1943 public void normalizeDocument(){ 1944 1945 } 1946 1951 public DOMConfiguration getDomConfig(){ 1952 return null; 1953 } 1954 1955 1956 1957 protected String fDocumentURI; 1958 1959 1962 public void setDocumentURI(String documentURI){ 1963 1964 fDocumentURI= documentURI; 1965 } 1966 1967 1975 public String getDocumentURI(){ 1976 return fDocumentURI; 1977 } 1978 1979 1980 protected String actualEncoding; 1981 1982 1990 public String getActualEncoding() { 1991 return actualEncoding; 1992 } 1993 1994 2002 public void setActualEncoding(String value) { 2003 actualEncoding = value; 2004 } 2005 2006 2009 public Text replaceWholeText(String content) 2010 throws DOMException{ 2011 2053 return null; } 2055 2056 2062 public String getWholeText(){ 2063 2064 2078 return null; 2080 } 2081 2082 2087 public boolean isElementContentWhitespace(){ 2088 return false; 2089 } 2090 2091 2092 2093 2094 2099 public void setIdAttribute(boolean id){ 2100 } 2102 2103 2106 public void setIdAttribute(String name, boolean makeId) { 2107 } 2109 2110 2111 2114 public void setIdAttributeNode(Attr at, boolean makeId) { 2115 } 2117 2118 2121 public void setIdAttributeNS(String namespaceURI, String localName, 2122 boolean makeId) { 2123 } 2125 2129 public TypeInfo getSchemaTypeInfo(){ 2130 return null; } 2132 2133 public boolean isId() { 2134 return false; } 2136 2137 2138 private String xmlEncoding; 2139 public String getXmlEncoding( ) { 2140 return xmlEncoding; 2141 } 2142 public void setXmlEncoding( String xmlEncoding ) { 2143 this.xmlEncoding = xmlEncoding; 2144 } 2145 2146 private boolean xmlStandalone; 2147 public boolean getXmlStandalone() { 2148 return xmlStandalone; 2149 } 2150 2151 public void setXmlStandalone(boolean xmlStandalone) throws DOMException { 2152 this.xmlStandalone = xmlStandalone; 2153 } 2154 2155 private String xmlVersion; 2156 public String getXmlVersion() { 2157 return xmlVersion; 2158 } 2159 2160 public void setXmlVersion(String xmlVersion) throws DOMException { 2161 this.xmlVersion = xmlVersion; 2162 } 2163 2164 2165 2166} 2167 | Popular Tags |