You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ra...@apache.org on 2002/02/07 15:23:18 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/dom DocumentTypeImpl.java EntityImpl.java EntityReferenceImpl.java NotationImpl.java
rahuls 02/02/07 06:23:18
Modified: java/src/org/apache/xerces/dom DocumentTypeImpl.java
EntityImpl.java EntityReferenceImpl.java
NotationImpl.java
Log:
setNodeValue() should throw DOMException for read only nodes.
Revision Changes Path
1.22 +11 -1 xml-xerces/java/src/org/apache/xerces/dom/DocumentTypeImpl.java
Index: DocumentTypeImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DocumentTypeImpl.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- DocumentTypeImpl.java 29 Jan 2002 01:15:07 -0000 1.21
+++ DocumentTypeImpl.java 7 Feb 2002 14:23:18 -0000 1.22
@@ -82,7 +82,7 @@
* @author Arnaud Le Hors, IBM
* @author Joe Kesselman, IBM
* @author Andy Clark, IBM
- * @version $Id: DocumentTypeImpl.java,v 1.21 2002/01/29 01:15:07 lehors Exp $
+ * @version $Id: DocumentTypeImpl.java,v 1.22 2002/02/07 14:23:18 rahuls Exp $
* @since PR-DOM-Level-1-19980818.
*/
public class DocumentTypeImpl
@@ -358,6 +358,16 @@
synchronizeChildren();
}
return elements;
+ }
+
+ /**
+ * Sets the node value.
+ * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR)
+ */
+ public void setNodeValue(String x)
+ throws DOMException {
+ throw new DOMException( DOMException.NO_MODIFICATION_ALLOWED_ERR,
+ "DocumentType nodes are read only" );
}
} // class DocumentTypeImpl
1.17 +14 -1 xml-xerces/java/src/org/apache/xerces/dom/EntityImpl.java
Index: EntityImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/EntityImpl.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- EntityImpl.java 29 Jan 2002 01:15:07 -0000 1.16
+++ EntityImpl.java 7 Feb 2002 14:23:18 -0000 1.17
@@ -60,6 +60,8 @@
import org.w3c.dom.Entity;
import org.w3c.dom.Node;
+import org.w3c.dom.DOMException;
+
/**
* Entity nodes hold the reference data for an XML Entity -- either
* parsed or unparsed. The nodeName (inherited from Node) will contain
@@ -91,7 +93,7 @@
* simplest solution.
*
*
- * @version $Id: EntityImpl.java,v 1.16 2002/01/29 01:15:07 lehors Exp $
+ * @version $Id: EntityImpl.java,v 1.17 2002/02/07 14:23:18 rahuls Exp $
* @since PR-DOM-Level-1-19980818.
*/
public class EntityImpl
@@ -319,5 +321,16 @@
notationName = name;
} // setNotationName(String)
+
+ /**
+ * Sets the node value.
+ * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR)
+ */
+ public void setNodeValue(String x)
+ throws DOMException {
+ throw new DOMException( DOMException.NO_MODIFICATION_ALLOWED_ERR,
+ "Entity nodes are read only" );
+ }
+
} // class EntityImpl
1.18 +13 -1 xml-xerces/java/src/org/apache/xerces/dom/EntityReferenceImpl.java
Index: EntityReferenceImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/EntityReferenceImpl.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- EntityReferenceImpl.java 29 Jan 2002 01:15:07 -0000 1.17
+++ EntityReferenceImpl.java 7 Feb 2002 14:23:18 -0000 1.18
@@ -63,6 +63,8 @@
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
+import org.w3c.dom.DOMException;
+
/**
* EntityReference models the XML &entityname; syntax, when used for
* entities defined by the DOM. Entities hardcoded into XML, such as
@@ -115,7 +117,7 @@
* @author Joe Kesselman, IBM
* @author Andy Clark, IBM
* @author Ralf Pfeiffer, IBM
- * @version $Id: EntityReferenceImpl.java,v 1.17 2002/01/29 01:15:07 lehors Exp $
+ * @version $Id: EntityReferenceImpl.java,v 1.18 2002/02/07 14:23:18 rahuls Exp $
* @since PR-DOM-Level-1-19980818.
*/
public class EntityReferenceImpl
@@ -304,5 +306,15 @@
}
}
/***/
+
+ /**
+ * Sets the node value.
+ * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR)
+ */
+ public void setNodeValue(String x)
+ throws DOMException {
+ throw new DOMException( DOMException.NO_MODIFICATION_ALLOWED_ERR,
+ "Entity Reference nodes are read only" );
+ }
} // class EntityReferenceImpl
1.13 +11 -1 xml-xerces/java/src/org/apache/xerces/dom/NotationImpl.java
Index: NotationImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/NotationImpl.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- NotationImpl.java 29 Jan 2002 01:15:07 -0000 1.12
+++ NotationImpl.java 7 Feb 2002 14:23:18 -0000 1.13
@@ -79,7 +79,7 @@
* <P>
* Level 1 of the DOM does not support editing Notation contents.
*
- * @version $Id: NotationImpl.java,v 1.12 2002/01/29 01:15:07 lehors Exp $
+ * @version $Id: NotationImpl.java,v 1.13 2002/02/07 14:23:18 rahuls Exp $
* @since PR-DOM-Level-1-19980818.
*/
public class NotationImpl
@@ -207,5 +207,15 @@
systemId = id;
} // setSystemId(String)
+
+ /**
+ * Sets the node value.
+ * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR)
+ */
+ public void setNodeValue(String x)
+ throws DOMException {
+ throw new DOMException( DOMException.NO_MODIFICATION_ALLOWED_ERR,
+ "Notation nodes are read only" );
+ }
} // class NotationImpl
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org