Lines 301-307
Link Here
|
301 |
return super.getDocumentFactory(); |
301 |
return super.getDocumentFactory(); |
302 |
} |
302 |
} |
303 |
} |
303 |
} |
304 |
} |
304 |
|
305 |
|
305 |
|
306 |
/* |
306 |
/* |
307 |
* Redistribution and use of this software and associated documentation |
307 |
* Redistribution and use of this software and associated documentation |
Lines 339-341
Link Here
|
339 |
* |
339 |
* |
340 |
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved. |
340 |
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved. |
341 |
*/ |
341 |
*/ |
|
|
342 |
|
343 |
/** |
344 |
* @todo DOM level 3 adoptNode() Not implemented. |
345 |
* @see org.w3c.dom.Document#adoptNode(org.w3c.dom.Node) |
346 |
*/ |
347 |
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws DOMException |
348 |
{ |
349 |
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported"); |
350 |
} |
351 |
|
352 |
/** |
353 |
* @todo DOM level 3 getDocumentURI() Not implemented. Returns null. |
354 |
* @see org.w3c.dom.Document#getDocumentURI() |
355 |
*/ |
356 |
public String getDocumentURI() |
357 |
{ |
358 |
return null; |
359 |
} |
360 |
|
361 |
/** |
362 |
* @todo DOM level 3 getDomConfig() Not implemented. Returns null. |
363 |
* @see org.w3c.dom.Document#getDomConfig() |
364 |
*/ |
365 |
public org.w3c.dom.DOMConfiguration getDomConfig() |
366 |
{ |
367 |
return null; |
368 |
} |
369 |
|
370 |
/** |
371 |
* @todo DOM level 3 getInputEncoding() Not implemented. Returns null. |
372 |
* @see org.w3c.dom.Document#getInputEncoding() |
373 |
*/ |
374 |
public String getInputEncoding() |
375 |
{ |
376 |
return null; |
377 |
} |
378 |
|
379 |
/** |
380 |
* @todo DOM level 3 getStrictErrorChecking() Not implemented. Returns true. |
381 |
* @see org.w3c.dom.Document#getStrictErrorChecking() |
382 |
*/ |
383 |
public boolean getStrictErrorChecking() |
384 |
{ |
385 |
return true; |
386 |
} |
387 |
|
388 |
/** |
389 |
* @todo DOM level 3 getXmlEncoding() Not implemented. Returns null. |
390 |
* @see org.w3c.dom.Document#getXmlEncoding() |
391 |
*/ |
392 |
public String getXmlEncoding() |
393 |
{ |
394 |
return null; |
395 |
} |
396 |
|
397 |
/** |
398 |
* @todo DOM level 3 getXmlStandalone() Not implemented. Returns false. |
399 |
* @see org.w3c.dom.Document#getXmlStandalone() |
400 |
*/ |
401 |
public boolean getXmlStandalone() |
402 |
{ |
403 |
return false; |
404 |
} |
405 |
|
406 |
/** |
407 |
* @todo DOM level 3 getXmlVersion() Not implemented. Always returns "1.0". |
408 |
* @see org.w3c.dom.Document#getXmlVersion() |
409 |
*/ |
410 |
public String getXmlVersion() |
411 |
{ |
412 |
// An attribute specifying, as part of the XML declaration, the version number of this document. If there is no |
413 |
// declaration and if this document supports the "XML" feature, the value is "1.0" |
414 |
return "1.0"; |
415 |
} |
416 |
|
417 |
/** |
418 |
* @todo DOM level 3 normalizeDocument() Not implemented. Do nothing. |
419 |
* @see org.w3c.dom.Document#normalizeDocument() |
420 |
*/ |
421 |
public void normalizeDocument() |
422 |
{ |
423 |
// do nothing |
424 |
} |
425 |
|
426 |
/** |
427 |
* @todo DOM level 3 renameNode() Not implemented. Throws NOT_SUPPORTED_ERR. |
428 |
* @see org.w3c.dom.Document#renameNode(org.w3c.dom.Node, java.lang.String, java.lang.String) |
429 |
*/ |
430 |
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, String namespaceURI, String qualifiedName) |
431 |
throws DOMException |
432 |
{ |
433 |
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported"); |
434 |
} |
435 |
|
436 |
/** |
437 |
* @todo DOM level 3 setDocumentURI() Not implemented. Do nothing. |
438 |
* @see org.w3c.dom.Document#setDocumentURI(java.lang.String) |
439 |
*/ |
440 |
public void setDocumentURI(String documentURI) |
441 |
{ |
442 |
// do nothing |
443 |
} |
444 |
|
445 |
/** |
446 |
* @todo DOM level 3 setStrictErrorChecking() Not implemented. Do nothing. |
447 |
* @see org.w3c.dom.Document#setStrictErrorChecking(boolean) |
448 |
*/ |
449 |
public void setStrictErrorChecking(boolean strictErrorChecking) |
450 |
{ |
451 |
// do nothing |
452 |
} |
453 |
|
454 |
/** |
455 |
* @todo DOM level 3 setXmlStandalone() Not implemented. Do nothing. |
456 |
* @see org.w3c.dom.Document#setXmlStandalone(boolean) |
457 |
*/ |
458 |
public void setXmlStandalone(boolean xmlStandalone) throws DOMException |
459 |
{ |
460 |
// do nothing |
461 |
} |
462 |
|
463 |
/** |
464 |
* @todo DOM level 3 setXmlVersion() Not implemented. Do nothing. |
465 |
* @see org.w3c.dom.Document#setXmlVersion(java.lang.String) |
466 |
*/ |
467 |
public void setXmlVersion(String xmlVersion) throws DOMException |
468 |
{ |
469 |
// do nothing |
470 |
} |
471 |
|
472 |
/** |
473 |
* @todo DOM level 3 compareDocumentPosition() Not implemented. |
474 |
* @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node) |
475 |
*/ |
476 |
public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException |
477 |
{ |
478 |
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported"); |
479 |
} |
480 |
|
481 |
/** |
482 |
* @todo DOM level 3 getBaseURI() Not implemented. Returns null. |
483 |
* @see org.w3c.dom.Node#getBaseURI() |
484 |
*/ |
485 |
public String getBaseURI() |
486 |
{ |
487 |
return null; |
488 |
} |
489 |
|
490 |
/** |
491 |
* @todo DOM level 3 getFeature() Not implemented. Returns null. |
492 |
* @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String) |
493 |
*/ |
494 |
public Object getFeature(String feature, String version) |
495 |
{ |
496 |
return null; |
497 |
} |
498 |
|
499 |
/** |
500 |
* @todo DOM level 3 getTextContent() Not implemented. Returns null. |
501 |
* @see org.w3c.dom.Node#getTextContent() |
502 |
*/ |
503 |
public String getTextContent() throws DOMException |
504 |
{ |
505 |
return null; |
506 |
} |
507 |
|
508 |
/** |
509 |
* @todo DOM level 3 getUserData() Not implemented. Returns null. |
510 |
* @see org.w3c.dom.Node#getUserData(java.lang.String) |
511 |
*/ |
512 |
public Object getUserData(String key) |
513 |
{ |
514 |
return null; |
515 |
} |
516 |
|
517 |
/** |
518 |
* @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String) |
519 |
*/ |
520 |
public boolean isDefaultNamespace(String namespaceURI) |
521 |
{ |
522 |
return false; |
523 |
} |
524 |
|
525 |
/** |
526 |
* @todo DOM level 3 isEqualNode() Not implemented. Returns false. |
527 |
* @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node) |
528 |
*/ |
529 |
public boolean isEqualNode(org.w3c.dom.Node arg) |
530 |
{ |
531 |
return false; |
532 |
} |
533 |
|
534 |
/** |
535 |
* @todo DOM level 3 isSameNode() Not implemented. Returns false. |
536 |
* @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node) |
537 |
*/ |
538 |
public boolean isSameNode(org.w3c.dom.Node other) |
539 |
{ |
540 |
return false; |
541 |
} |
542 |
|
543 |
/** |
544 |
* @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String) |
545 |
*/ |
546 |
public String lookupNamespaceURI(String prefix) |
547 |
{ |
548 |
return null; |
549 |
} |
550 |
|
551 |
/** |
552 |
* @see org.w3c.dom.Node#lookupPrefix(java.lang.String) |
553 |
*/ |
554 |
public String lookupPrefix(String namespaceURI) |
555 |
{ |
556 |
return null; |
557 |
} |
558 |
|
559 |
/** |
560 |
* @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR |
561 |
* @see org.w3c.dom.Node#setTextContent(java.lang.String) |
562 |
*/ |
563 |
public void setTextContent(String textContent) throws DOMException |
564 |
{ |
565 |
throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only"); |
566 |
} |
567 |
|
568 |
/** |
569 |
* @todo DOM level 3 setUserData() Not implemented. Returns null. |
570 |
* @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) |
571 |
*/ |
572 |
public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler) |
573 |
{ |
574 |
return null; |
575 |
} |
576 |
} |