elena 2002/12/30 17:35:21
Modified: java/src/dom3/org/w3c/dom Attr.java Element.java
Log:
Update interfaces to include new ID methods
Revision Changes Path
1.3 +9 -0 xml-xerces/java/src/dom3/org/w3c/dom/Attr.java
Index: Attr.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/dom3/org/w3c/dom/Attr.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Attr.java 19 Jun 2002 22:27:10 -0000 1.2
+++ Attr.java 31 Dec 2002 01:35:21 -0000 1.3
@@ -147,4 +147,13 @@
*/
public Element getOwnerElement();
+ /**
+ * Returns whether this attribute is known to be of type ID or not.
+ * When it is and its value is unique, the ownerElement of this attribute
+ * can be retrieved using getElementById on Document.
+ *
+ * @since DOM Level 3
+ */
+ public boolean getIsId();
+
}
1.3 +43 -0 xml-xerces/java/src/dom3/org/w3c/dom/Element.java
Index: Element.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/dom3/org/w3c/dom/Element.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Element.java 19 Jun 2002 22:27:10 -0000 1.2
+++ Element.java 31 Dec 2002 01:35:21 -0000 1.3
@@ -341,4 +341,47 @@
public boolean hasAttributeNS(String namespaceURI,
String localName);
+ /**
+ * Declares the attribute specified by node to be of type ID.
+ * If the value of the specified attribute is unique then this
+ * element node can later be retrieved using getElementById on Document.
+ * Note, however, that this simply affects this node and does not change
+ * any grammar that may be in use.
+ *
+ * @param at
+ * @since DOM Level 3
+ */
+ public void setIdAttributeNode(Attr at) throws DOMException;
+
+ /**
+ * Declares the attribute specified by name to be of type ID.
+ * If the value of the specified attribute is unique then this
+ * element node can later be retrieved using getElementById on Document.
+ * Note, however, that this simply affects this node and does not change
+ * any grammar that may be in use.
+ * To specify an attribute by local name and namespace URI, use the
setIdAttributeNS method.
+ *
+ * @param name
+ * @param makeId
+ * @exception DOMException
+ * @since DOM Level 3
+ */
+ public void setIdAttribute(String name, boolean makeId) throws DOMException;
+
+ /**
+ * Declares the attribute specified by local name and namespace URI
+ * to be of type ID. If the value of the specified attribute is unique
+ * then this element node can later be retrieved using getElementById on
+ * Document. Note, however, that this simply affects this node and does
+ * not change any grammar that may be in use.
+ *
+ * @param namespaceURI
+ * @param localName
+ * @param makeId
+ * @exception DOMException
+ * @since DOM Level 3
+ */
+ public void setIdAttributeNS(String namespaceURI, String localName,
+ boolean makeId) throws DOMException;
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]