You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@locus.apache.org on 2000/01/20 22:43:13 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/dom ElementImpl.java AttrImpl.java
lehors 00/01/20 13:43:13
Modified: java/src/org/apache/xerces/dom ElementImpl.java
AttrImpl.java
Log:
got rid of namespace related methods that are actually
inherited from NodeImpl
Revision Changes Path
1.7 +1 -82 xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java
Index: ElementImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ElementImpl.java 2000/01/14 02:47:04 1.6
+++ ElementImpl.java 2000/01/20 21:43:13 1.7
@@ -239,88 +239,7 @@
public NodeList getElementsByTagName(String tagname) {
return new DeepNodeListImpl(this,tagname);
}
-
- //
- //DOM2: Namespace methods.
- //
-
- /**
- * Introduced in DOM Level 2. <p>
- *
- * The namespace URI of this node, or null if it is unspecified.<p>
- *
- * This is not a computed value that is the result of a namespace lookup based on
- * an examination of the namespace declarations in scope. It is merely the
- * namespace URI given at creation time.<p>
- *
- * For nodes created with a DOM Level 1 method, such as createElement
- * from the Document interface, this is null.
- * <P>
- * ElementImpl does not support Namespaces, so this always returns null.
- * ElementNSImpl overrides this.
- * @see ElementNSImpl
- *
- * @since WD-DOM-Level-2-19990923
- */
- public String getNamespaceURI() {
- return null;
- }
-
- /**
- * Introduced in DOM Level 2. <p>
- *
- * The namespace prefix of this node, or null if it is unspecified. <p>
- *
- * For nodes created with a DOM Level 1 method, such as createElement
- * from the Document interface, this is null. <p>
- * <P>
- * ElementImpl does not support Namespaces, so this always returns null.
- * ElementNSImpl overrides this.
- * @see ElementNSImpl
- *
- * @since WD-DOM-Level-2-19990923
- */
- public String getPrefix() {
- return null;
- }
-
- /**
- * Introduced in DOM Level 2. <p>
- *
- * Note that setting this attribute changes the nodeName attribute, which holds the
- * qualified name, as well as the tagName and name attributes of the Element
- * and Attr interfaces, when applicable.<p>
- * <P>
- * ElementImpl does not support Namespaces, so this always throws an
- * exception. ElementNSImpl overrides this.
- * @see ElementNSImpl
- *
- * @throws INVALID_CHARACTER_ERR Raised if the specified
- * prefix contains an invalid character.
- *
- * @since WD-DOM-Level-2-19990923
- */
- public void setPrefix(String prefix)
- throws DOMException {
- throw new DOMExceptionImpl(DOMException.NAMESPACE_ERR,
- "NAMESPACE_ERR");
- }
-
- /**
- * Introduced in DOM Level 2. <p>
- *
- * Returns the local part of the qualified name of this node.
- * <P>
- * ElementImpl does not support Namespaces, so this always returns null.
- * ElementNSImpl overrides this.
- * @see ElementNSImpl
- *
- * @since WD-DOM-Level-2-19990923
- */
- public String getLocalName() {
- return null;
- }
-
+
/**
* Returns the name of the Element. Note that Element.nodeName() is
* defined to also return the tag name.
1.7 +0 -81 xml-xerces/java/src/org/apache/xerces/dom/AttrImpl.java
Index: AttrImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/AttrImpl.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- AttrImpl.java 2000/01/14 02:47:04 1.6
+++ AttrImpl.java 2000/01/20 21:43:13 1.7
@@ -338,87 +338,6 @@
}
} // normalize()
-
- //
- // DOM2: Namespace methods
- //
-
- /**
- * Introduced in DOM Level 2. <p>
- *
- * The namespace URI of this node, or null if it is unspecified.<p>
- *
- * This is not a computed value that is the result of a namespace lookup based on
- * an examination of the namespace declarations in scope. It is merely the
- * namespace URI given at creation time.<p>
- *
- * For nodes created with a DOM Level 1 method, such as createElement
- * from the Document interface, this is null.
- * <P>
- * AttrImpl does not support Namespaces, so this always returns null.
- * AttrNSImpl overrides this.
- * @see AttrNSImpl
- *
- * @since WD-DOM-Level-2-19990923
- */
- public String getNamespaceURI() {
- return null;
- }
-
- /**
- * Introduced in DOM Level 2. <p>
- *
- * The namespace prefix of this node, or null if it is unspecified. <p>
- *
- * For nodes created with a DOM Level 1 method, such as createElement
- * from the Document interface, this is null. <p>
- * <P>
- * AttrImpl does not support Namespaces, so this always returns null.
- * AttrNSImpl overrides this.
- * @see AttrNSImpl
- *
- * @since WD-DOM-Level-2-19990923
- */
- public String getPrefix() {
- return null;
- }
-
- /**
- * Introduced in DOM Level 2. <p>
- *
- * Note that setting this attribute changes the nodeName attribute, which holds the
- * qualified name, as well as the tagName and name attributes of the Element
- * and Attr interfaces, when applicable.<p>
- * <P>
- * AttrImpl does not support Namespaces, so this always throws an
- * exception. AttrNSImpl overrides this.
- * @see AttrNSImpl
- *
- * @throws INVALID_CHARACTER_ERR Raised if the specified
- * prefix contains an invalid character.
- *
- * @since WD-DOM-Level-2-19990923
- */
- public void setPrefix(String prefix)
- throws DOMException {
- throw new DOMExceptionImpl(DOMException.NAMESPACE_ERR,
- "NAMESPACE_ERR");
- }
-
- /**
- * Introduced in DOM Level 2. <p>
- *
- * Returns the local part of the qualified name of this node.
- * <P>
- * AttrImpl does not support Namespaces, so this always returns null.
- * AttrNSImpl overrides this.
- * @see AttrNSImpl
- *
- * @since WD-DOM-Level-2-19990923
- */
- public String getLocalName() {
- return null;
- }
//
// Public methods