Checking in Sources/Docs of DOM Level 2 from :
http://www.w3.org/DOM/DOMTM git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7d5c881d20
commit
82b88df622
111
java/external/src/org/w3c/dom/Attr.java
vendored
Normal file
111
java/external/src/org/w3c/dom/Attr.java
vendored
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Attr</code> interface represents an attribute in an
|
||||||
|
* <code>Element</code> object. Typically the allowable values for the
|
||||||
|
* attribute are defined in a document type definition.
|
||||||
|
* <p><code>Attr</code> objects inherit the <code>Node</code> interface, but
|
||||||
|
* since they are not actually child nodes of the element they describe, the
|
||||||
|
* DOM does not consider them part of the document tree. Thus, the
|
||||||
|
* <code>Node</code> attributes <code>parentNode</code>,
|
||||||
|
* <code>previousSibling</code>, and <code>nextSibling</code> have a
|
||||||
|
* <code>null</code> value for <code>Attr</code> objects. The DOM takes the
|
||||||
|
* view that attributes are properties of elements rather than having a
|
||||||
|
* separate identity from the elements they are associated with; this should
|
||||||
|
* make it more efficient to implement such features as default attributes
|
||||||
|
* associated with all elements of a given type. Furthermore,
|
||||||
|
* <code>Attr</code> nodes may not be immediate children of a
|
||||||
|
* <code>DocumentFragment</code>. However, they can be associated with
|
||||||
|
* <code>Element</code> nodes contained within a
|
||||||
|
* <code>DocumentFragment</code>. In short, users and implementors of the
|
||||||
|
* DOM need to be aware that <code>Attr</code> nodes have some things in
|
||||||
|
* common with other objects inheriting the <code>Node</code> interface, but
|
||||||
|
* they also are quite distinct.
|
||||||
|
* <p> The attribute's effective value is determined as follows: if this
|
||||||
|
* attribute has been explicitly assigned any value, that value is the
|
||||||
|
* attribute's effective value; otherwise, if there is a declaration for
|
||||||
|
* this attribute, and that declaration includes a default value, then that
|
||||||
|
* default value is the attribute's effective value; otherwise, the
|
||||||
|
* attribute does not exist on this element in the structure model until it
|
||||||
|
* has been explicitly added. Note that the <code>nodeValue</code> attribute
|
||||||
|
* on the <code>Attr</code> instance can also be used to retrieve the string
|
||||||
|
* version of the attribute's value(s).
|
||||||
|
* <p>In XML, where the value of an attribute can contain entity references,
|
||||||
|
* the child nodes of the <code>Attr</code> node may be either
|
||||||
|
* <code>Text</code> or <code>EntityReference</code> nodes (when these are
|
||||||
|
* in use; see the description of <code>EntityReference</code> for
|
||||||
|
* discussion). Because the DOM Core is not aware of attribute types, it
|
||||||
|
* treats all attribute values as simple strings, even if the DTD or schema
|
||||||
|
* declares them as having tokenized types.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface Attr extends Node {
|
||||||
|
/**
|
||||||
|
* Returns the name of this attribute.
|
||||||
|
*/
|
||||||
|
public String getName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If this attribute was explicitly given a value in the original
|
||||||
|
* document, this is <code>true</code>; otherwise, it is
|
||||||
|
* <code>false</code>. Note that the implementation is in charge of this
|
||||||
|
* attribute, not the user. If the user changes the value of the
|
||||||
|
* attribute (even if it ends up having the same value as the default
|
||||||
|
* value) then the <code>specified</code> flag is automatically flipped
|
||||||
|
* to <code>true</code>. To re-specify the attribute as the default
|
||||||
|
* value from the DTD, the user must delete the attribute. The
|
||||||
|
* implementation will then make a new attribute available with
|
||||||
|
* <code>specified</code> set to <code>false</code> and the default
|
||||||
|
* value (if one exists).
|
||||||
|
* <br>In summary: If the attribute has an assigned value in the document
|
||||||
|
* then <code>specified</code> is <code>true</code>, and the value is
|
||||||
|
* the assigned value. If the attribute has no assigned value in the
|
||||||
|
* document and has a default value in the DTD, then
|
||||||
|
* <code>specified</code> is <code>false</code>, and the value is the
|
||||||
|
* default value in the DTD. If the attribute has no assigned value in
|
||||||
|
* the document and has a value of #IMPLIED in the DTD, then the
|
||||||
|
* attribute does not appear in the structure model of the document. If
|
||||||
|
* the <code>ownerElement</code> attribute is <code>null</code> (i.e.
|
||||||
|
* because it was just created or was set to <code>null</code> by the
|
||||||
|
* various removal and cloning operations) <code>specified</code> is
|
||||||
|
* <code>true</code>.
|
||||||
|
*/
|
||||||
|
public boolean getSpecified();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On retrieval, the value of the attribute is returned as a string.
|
||||||
|
* Character and general entity references are replaced with their
|
||||||
|
* values. See also the method <code>getAttribute</code> on the
|
||||||
|
* <code>Element</code> interface.
|
||||||
|
* <br>On setting, this creates a <code>Text</code> node with the unparsed
|
||||||
|
* contents of the string. I.e. any characters that an XML processor
|
||||||
|
* would recognize as markup are instead treated as literal text. See
|
||||||
|
* also the method <code>setAttribute</code> on the <code>Element</code>
|
||||||
|
* interface.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||||
|
*/
|
||||||
|
public String getValue();
|
||||||
|
public void setValue(String value)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Element</code> node this attribute is attached to or
|
||||||
|
* <code>null</code> if this attribute is not in use.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Element getOwnerElement();
|
||||||
|
|
||||||
|
}
|
||||||
48
java/external/src/org/w3c/dom/CDATASection.java
vendored
Normal file
48
java/external/src/org/w3c/dom/CDATASection.java
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CDATA sections are used to escape blocks of text containing characters that
|
||||||
|
* would otherwise be regarded as markup. The only delimiter that is
|
||||||
|
* recognized in a CDATA section is the "]]>" string that ends the CDATA
|
||||||
|
* section. CDATA sections cannot be nested. Their primary purpose is for
|
||||||
|
* including material such as XML fragments, without needing to escape all
|
||||||
|
* the delimiters.
|
||||||
|
* <p>The <code>DOMString</code> attribute of the <code>Text</code> node holds
|
||||||
|
* the text that is contained by the CDATA section. Note that this may
|
||||||
|
* contain characters that need to be escaped outside of CDATA sections and
|
||||||
|
* that, depending on the character encoding ("charset") chosen for
|
||||||
|
* serialization, it may be impossible to write out some characters as part
|
||||||
|
* of a CDATA section.
|
||||||
|
* <p> The <code>CDATASection</code> interface inherits from the
|
||||||
|
* <code>CharacterData</code> interface through the <code>Text</code>
|
||||||
|
* interface. Adjacent <code>CDATASection</code> nodes are not merged by use
|
||||||
|
* of the <code>normalize</code> method of the <code>Node</code> interface.
|
||||||
|
* Because no markup is recognized within a <code>CDATASection</code>,
|
||||||
|
* character numeric references cannot be used as an escape mechanism when
|
||||||
|
* serializing. Therefore, action needs to be taken when serializing a
|
||||||
|
* <code>CDATASection</code> with a character encoding where some of the
|
||||||
|
* contained characters cannot be represented. Failure to do so would not
|
||||||
|
* produce well-formed XML.One potential solution in the serialization
|
||||||
|
* process is to end the CDATA section before the character, output the
|
||||||
|
* character using a character reference or entity reference, and open a new
|
||||||
|
* CDATA section for any further characters in the text node. Note, however,
|
||||||
|
* that some code conversion libraries at the time of writing do not return
|
||||||
|
* an error or exception when a character is missing from the encoding,
|
||||||
|
* making the task of ensuring that data is not corrupted on serialization
|
||||||
|
* more difficult.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface CDATASection extends Text {
|
||||||
|
}
|
||||||
144
java/external/src/org/w3c/dom/CharacterData.java
vendored
Normal file
144
java/external/src/org/w3c/dom/CharacterData.java
vendored
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CharacterData</code> interface extends Node with a set of
|
||||||
|
* attributes and methods for accessing character data in the DOM. For
|
||||||
|
* clarity this set is defined here rather than on each object that uses
|
||||||
|
* these attributes and methods. No DOM objects correspond directly to
|
||||||
|
* <code>CharacterData</code>, though <code>Text</code> and others do
|
||||||
|
* inherit the interface from it. All <code>offsets</code> in this interface
|
||||||
|
* start from <code>0</code>.
|
||||||
|
* <p>As explained in the <code>DOMString</code> interface, text strings in
|
||||||
|
* the DOM are represented in UTF-16, i.e. as a sequence of 16-bit units. In
|
||||||
|
* the following, the term 16-bit units is used whenever necessary to
|
||||||
|
* indicate that indexing on CharacterData is done in 16-bit units.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface CharacterData extends Node {
|
||||||
|
/**
|
||||||
|
* The character data of the node that implements this interface. The DOM
|
||||||
|
* implementation may not put arbitrary limits on the amount of data
|
||||||
|
* that may be stored in a <code>CharacterData</code> node. However,
|
||||||
|
* implementation limits may mean that the entirety of a node's data may
|
||||||
|
* not fit into a single <code>DOMString</code>. In such cases, the user
|
||||||
|
* may call <code>substringData</code> to retrieve the data in
|
||||||
|
* appropriately sized pieces.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||||
|
* @exception DOMException
|
||||||
|
* DOMSTRING_SIZE_ERR: Raised when it would return more characters than
|
||||||
|
* fit in a <code>DOMString</code> variable on the implementation
|
||||||
|
* platform.
|
||||||
|
*/
|
||||||
|
public String getData()
|
||||||
|
throws DOMException;
|
||||||
|
public void setData(String data)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The number of 16-bit units that are available through <code>data</code>
|
||||||
|
* and the <code>substringData</code> method below. This may have the
|
||||||
|
* value zero, i.e., <code>CharacterData</code> nodes may be empty.
|
||||||
|
*/
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts a range of data from the node.
|
||||||
|
* @param offsetStart offset of substring to extract.
|
||||||
|
* @param countThe number of 16-bit units to extract.
|
||||||
|
* @return The specified substring. If the sum of <code>offset</code> and
|
||||||
|
* <code>count</code> exceeds the <code>length</code>, then all 16-bit
|
||||||
|
* units to the end of the data are returned.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||||
|
* negative or greater than the number of 16-bit units in
|
||||||
|
* <code>data</code>, or if the specified <code>count</code> is
|
||||||
|
* negative.
|
||||||
|
* <br>DOMSTRING_SIZE_ERR: Raised if the specified range of text does
|
||||||
|
* not fit into a <code>DOMString</code>.
|
||||||
|
*/
|
||||||
|
public String substringData(int offset,
|
||||||
|
int count)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Append the string to the end of the character data of the node. Upon
|
||||||
|
* success, <code>data</code> provides access to the concatenation of
|
||||||
|
* <code>data</code> and the <code>DOMString</code> specified.
|
||||||
|
* @param argThe <code>DOMString</code> to append.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
*/
|
||||||
|
public void appendData(String arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Insert a string at the specified 16-bit unit offset.
|
||||||
|
* @param offsetThe character offset at which to insert.
|
||||||
|
* @param argThe <code>DOMString</code> to insert.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||||
|
* negative or greater than the number of 16-bit units in
|
||||||
|
* <code>data</code>.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
*/
|
||||||
|
public void insertData(int offset,
|
||||||
|
String arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a range of 16-bit units from the node. Upon success,
|
||||||
|
* <code>data</code> and <code>length</code> reflect the change.
|
||||||
|
* @param offsetThe offset from which to start removing.
|
||||||
|
* @param countThe number of 16-bit units to delete. If the sum of
|
||||||
|
* <code>offset</code> and <code>count</code> exceeds
|
||||||
|
* <code>length</code> then all 16-bit units from <code>offset</code>
|
||||||
|
* to the end of the data are deleted.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||||
|
* negative or greater than the number of 16-bit units in
|
||||||
|
* <code>data</code>, or if the specified <code>count</code> is
|
||||||
|
* negative.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
*/
|
||||||
|
public void deleteData(int offset,
|
||||||
|
int count)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replace the characters starting at the specified 16-bit unit offset
|
||||||
|
* with the specified string.
|
||||||
|
* @param offsetThe offset from which to start replacing.
|
||||||
|
* @param countThe number of 16-bit units to replace. If the sum of
|
||||||
|
* <code>offset</code> and <code>count</code> exceeds
|
||||||
|
* <code>length</code>, then all 16-bit units to the end of the data
|
||||||
|
* are replaced; (i.e., the effect is the same as a <code>remove</code>
|
||||||
|
* method call with the same range, followed by an <code>append</code>
|
||||||
|
* method invocation).
|
||||||
|
* @param argThe <code>DOMString</code> with which the range must be
|
||||||
|
* replaced.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
|
||||||
|
* negative or greater than the number of 16-bit units in
|
||||||
|
* <code>data</code>, or if the specified <code>count</code> is
|
||||||
|
* negative.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
*/
|
||||||
|
public void replaceData(int offset,
|
||||||
|
int count,
|
||||||
|
String arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
24
java/external/src/org/w3c/dom/Comment.java
vendored
Normal file
24
java/external/src/org/w3c/dom/Comment.java
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface inherits from <code>CharacterData</code> and represents the
|
||||||
|
* content of a comment, i.e., all the characters between the starting '
|
||||||
|
* <code><!--</code>' and ending '<code>--></code>'. Note that this is
|
||||||
|
* the definition of a comment in XML, and, in practice, HTML, although some
|
||||||
|
* HTML tools may implement the full SGML comment structure.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface Comment extends CharacterData {
|
||||||
|
}
|
||||||
116
java/external/src/org/w3c/dom/DOMException.java
vendored
Normal file
116
java/external/src/org/w3c/dom/DOMException.java
vendored
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DOM operations only raise exceptions in "exceptional" circumstances, i.e.,
|
||||||
|
* when an operation is impossible to perform (either for logical reasons,
|
||||||
|
* because data is lost, or because the implementation has become unstable).
|
||||||
|
* In general, DOM methods return specific error values in ordinary
|
||||||
|
* processing situations, such as out-of-bound errors when using
|
||||||
|
* <code>NodeList</code>.
|
||||||
|
* <p>Implementations should raise other exceptions under other circumstances.
|
||||||
|
* For example, implementations should raise an implementation-dependent
|
||||||
|
* exception if a <code>null</code> argument is passed.
|
||||||
|
* <p>Some languages and object systems do not support the concept of
|
||||||
|
* exceptions. For such systems, error conditions may be indicated using
|
||||||
|
* native error reporting mechanisms. For some bindings, for example,
|
||||||
|
* methods may return error codes similar to those listed in the
|
||||||
|
* corresponding method descriptions.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public class DOMException extends RuntimeException {
|
||||||
|
public DOMException(short code, String message) {
|
||||||
|
super(message);
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
public short code;
|
||||||
|
// ExceptionCode
|
||||||
|
/**
|
||||||
|
* If index or size is negative, or greater than the allowed value
|
||||||
|
*/
|
||||||
|
public static final short INDEX_SIZE_ERR = 1;
|
||||||
|
/**
|
||||||
|
* If the specified range of text does not fit into a DOMString
|
||||||
|
*/
|
||||||
|
public static final short DOMSTRING_SIZE_ERR = 2;
|
||||||
|
/**
|
||||||
|
* If any node is inserted somewhere it doesn't belong
|
||||||
|
*/
|
||||||
|
public static final short HIERARCHY_REQUEST_ERR = 3;
|
||||||
|
/**
|
||||||
|
* If a node is used in a different document than the one that created it
|
||||||
|
* (that doesn't support it)
|
||||||
|
*/
|
||||||
|
public static final short WRONG_DOCUMENT_ERR = 4;
|
||||||
|
/**
|
||||||
|
* If an invalid or illegal character is specified, such as in a name. See
|
||||||
|
* production 2 in the XML specification for the definition of a legal
|
||||||
|
* character, and production 5 for the definition of a legal name
|
||||||
|
* character.
|
||||||
|
*/
|
||||||
|
public static final short INVALID_CHARACTER_ERR = 5;
|
||||||
|
/**
|
||||||
|
* If data is specified for a node which does not support data
|
||||||
|
*/
|
||||||
|
public static final short NO_DATA_ALLOWED_ERR = 6;
|
||||||
|
/**
|
||||||
|
* If an attempt is made to modify an object where modifications are not
|
||||||
|
* allowed
|
||||||
|
*/
|
||||||
|
public static final short NO_MODIFICATION_ALLOWED_ERR = 7;
|
||||||
|
/**
|
||||||
|
* If an attempt is made to reference a node in a context where it does
|
||||||
|
* not exist
|
||||||
|
*/
|
||||||
|
public static final short NOT_FOUND_ERR = 8;
|
||||||
|
/**
|
||||||
|
* If the implementation does not support the requested type of object or
|
||||||
|
* operation.
|
||||||
|
*/
|
||||||
|
public static final short NOT_SUPPORTED_ERR = 9;
|
||||||
|
/**
|
||||||
|
* If an attempt is made to add an attribute that is already in use
|
||||||
|
* elsewhere
|
||||||
|
*/
|
||||||
|
public static final short INUSE_ATTRIBUTE_ERR = 10;
|
||||||
|
/**
|
||||||
|
* If an attempt is made to use an object that is not, or is no longer,
|
||||||
|
* usable.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public static final short INVALID_STATE_ERR = 11;
|
||||||
|
/**
|
||||||
|
* If an invalid or illegal string is specified.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public static final short SYNTAX_ERR = 12;
|
||||||
|
/**
|
||||||
|
* If an attempt is made to modify the type of the underlying object.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public static final short INVALID_MODIFICATION_ERR = 13;
|
||||||
|
/**
|
||||||
|
* If an attempt is made to create or change an object in a way which is
|
||||||
|
* incorrect with regard to namespaces.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public static final short NAMESPACE_ERR = 14;
|
||||||
|
/**
|
||||||
|
* If a parameter or an operation is not supported by the underlying
|
||||||
|
* object.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public static final short INVALID_ACCESS_ERR = 15;
|
||||||
|
|
||||||
|
}
|
||||||
100
java/external/src/org/w3c/dom/DOMImplementation.java
vendored
Normal file
100
java/external/src/org/w3c/dom/DOMImplementation.java
vendored
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>DOMImplementation</code> interface provides a number of methods
|
||||||
|
* for performing operations that are independent of any particular instance
|
||||||
|
* of the document object model.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface DOMImplementation {
|
||||||
|
/**
|
||||||
|
* Test if the DOM implementation implements a specific feature.
|
||||||
|
* @param featureThe name of the feature to test (case-insensitive). The
|
||||||
|
* values used by DOM features are defined throughout the DOM Level 2
|
||||||
|
* specifications and listed in the section. The name must be an XML
|
||||||
|
* name. To avoid possible conflicts, as a convention, names referring
|
||||||
|
* to features defined outside the DOM specification should be made
|
||||||
|
* unique by reversing the name of the Internet domain name of the
|
||||||
|
* person (or the organization that the person belongs to) who defines
|
||||||
|
* the feature, component by component, and using this as a prefix.
|
||||||
|
* For instance, the W3C SVG Working Group defines the feature
|
||||||
|
* "org.w3c.dom.svg".
|
||||||
|
* @param versionThis is the version number of the feature to test. In
|
||||||
|
* Level 2, the string can be either "2.0" or "1.0". If the version is
|
||||||
|
* not specified, supporting any version of the feature causes the
|
||||||
|
* method to return <code>true</code>.
|
||||||
|
* @return <code>true</code> if the feature is implemented in the
|
||||||
|
* specified version, <code>false</code> otherwise.
|
||||||
|
*/
|
||||||
|
public boolean hasFeature(String feature,
|
||||||
|
String version);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an empty <code>DocumentType</code> node. Entity declarations
|
||||||
|
* and notations are not made available. Entity reference expansions and
|
||||||
|
* default attribute additions do not occur. It is expected that a
|
||||||
|
* future version of the DOM will provide a way for populating a
|
||||||
|
* <code>DocumentType</code>.
|
||||||
|
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param qualifiedNameThe qualified name of the document type to be
|
||||||
|
* created.
|
||||||
|
* @param publicIdThe external subset public identifier.
|
||||||
|
* @param systemIdThe external subset system identifier.
|
||||||
|
* @return A new <code>DocumentType</code> node with
|
||||||
|
* <code>Node.ownerDocument</code> set to <code>null</code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified qualified name
|
||||||
|
* contains an illegal character.
|
||||||
|
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||||
|
* malformed.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public DocumentType createDocumentType(String qualifiedName,
|
||||||
|
String publicId,
|
||||||
|
String systemId)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an XML <code>Document</code> object of the specified type with
|
||||||
|
* its document element. HTML-only DOM implementations do not need to
|
||||||
|
* implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the document element to create.
|
||||||
|
* @param qualifiedNameThe qualified name of the document element to be
|
||||||
|
* created.
|
||||||
|
* @param doctypeThe type of document to be created or <code>null</code>.
|
||||||
|
* When <code>doctype</code> is not <code>null</code>, its
|
||||||
|
* <code>Node.ownerDocument</code> attribute is set to the document
|
||||||
|
* being created.
|
||||||
|
* @return A new <code>Document</code> object.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified qualified name
|
||||||
|
* contains an illegal character.
|
||||||
|
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||||
|
* malformed, if the <code>qualifiedName</code> has a prefix and the
|
||||||
|
* <code>namespaceURI</code> is <code>null</code>, or if the
|
||||||
|
* <code>qualifiedName</code> has a prefix that is "xml" and the
|
||||||
|
* <code>namespaceURI</code> is different from "
|
||||||
|
* http://www.w3.org/XML/1998/namespace" .
|
||||||
|
* <br>WRONG_DOCUMENT_ERR: Raised if <code>doctype</code> has already
|
||||||
|
* been used with a different document or was created from a different
|
||||||
|
* implementation.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Document createDocument(String namespaceURI,
|
||||||
|
String qualifiedName,
|
||||||
|
DocumentType doctype)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
365
java/external/src/org/w3c/dom/Document.java
vendored
Normal file
365
java/external/src/org/w3c/dom/Document.java
vendored
Normal file
@ -0,0 +1,365 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Document</code> interface represents the entire HTML or XML
|
||||||
|
* document. Conceptually, it is the root of the document tree, and provides
|
||||||
|
* the primary access to the document's data.
|
||||||
|
* <p>Since elements, text nodes, comments, processing instructions, etc.
|
||||||
|
* cannot exist outside the context of a <code>Document</code>, the
|
||||||
|
* <code>Document</code> interface also contains the factory methods needed
|
||||||
|
* to create these objects. The <code>Node</code> objects created have a
|
||||||
|
* <code>ownerDocument</code> attribute which associates them with the
|
||||||
|
* <code>Document</code> within whose context they were created.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface Document extends Node {
|
||||||
|
/**
|
||||||
|
* The Document Type Declaration (see <code>DocumentType</code>)
|
||||||
|
* associated with this document. For HTML documents as well as XML
|
||||||
|
* documents without a document type declaration this returns
|
||||||
|
* <code>null</code>. The DOM Level 2 does not support editing the
|
||||||
|
* Document Type Declaration. <code>docType</code> cannot be altered in
|
||||||
|
* any way, including through the use of methods inherited from the
|
||||||
|
* <code>Node</code> interface, such as <code>insertNode</code> or
|
||||||
|
* <code>removeNode</code>.
|
||||||
|
*/
|
||||||
|
public DocumentType getDoctype();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>DOMImplementation</code> object that handles this document. A
|
||||||
|
* DOM application may use objects from multiple implementations.
|
||||||
|
*/
|
||||||
|
public DOMImplementation getImplementation();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is a convenience attribute that allows direct access to the child
|
||||||
|
* node that is the root element of the document. For HTML documents,
|
||||||
|
* this is the element with the tagName "HTML".
|
||||||
|
*/
|
||||||
|
public Element getDocumentElement();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an element of the type specified. Note that the instance
|
||||||
|
* returned implements the <code>Element</code> interface, so attributes
|
||||||
|
* can be specified directly on the returned object.
|
||||||
|
* <br>In addition, if there are known attributes with default values,
|
||||||
|
* <code>Attr</code> nodes representing them are automatically created
|
||||||
|
* and attached to the element.
|
||||||
|
* <br>To create an element with a qualified name and namespace URI, use
|
||||||
|
* the <code>createElementNS</code> method.
|
||||||
|
* @param tagNameThe name of the element type to instantiate. For XML,
|
||||||
|
* this is case-sensitive. For HTML, the <code>tagName</code>
|
||||||
|
* parameter may be provided in any case, but it must be mapped to the
|
||||||
|
* canonical uppercase form by the DOM implementation.
|
||||||
|
* @return A new <code>Element</code> object with the
|
||||||
|
* <code>nodeName</code> attribute set to <code>tagName</code>, and
|
||||||
|
* <code>localName</code>, <code>prefix</code>, and
|
||||||
|
* <code>namespaceURI</code> set to <code>null</code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified name contains an
|
||||||
|
* illegal character.
|
||||||
|
*/
|
||||||
|
public Element createElement(String tagName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an empty <code>DocumentFragment</code> object.
|
||||||
|
* @return A new <code>DocumentFragment</code>.
|
||||||
|
*/
|
||||||
|
public DocumentFragment createDocumentFragment();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>Text</code> node given the specified string.
|
||||||
|
* @param dataThe data for the node.
|
||||||
|
* @return The new <code>Text</code> object.
|
||||||
|
*/
|
||||||
|
public Text createTextNode(String data);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>Comment</code> node given the specified string.
|
||||||
|
* @param dataThe data for the node.
|
||||||
|
* @return The new <code>Comment</code> object.
|
||||||
|
*/
|
||||||
|
public Comment createComment(String data);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>CDATASection</code> node whose value is the specified
|
||||||
|
* string.
|
||||||
|
* @param dataThe data for the <code>CDATASection</code> contents.
|
||||||
|
* @return The new <code>CDATASection</code> object.
|
||||||
|
* @exception DOMException
|
||||||
|
* NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
|
||||||
|
*/
|
||||||
|
public CDATASection createCDATASection(String data)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>ProcessingInstruction</code> node given the specified
|
||||||
|
* name and data strings.
|
||||||
|
* @param targetThe target part of the processing instruction.
|
||||||
|
* @param dataThe data for the node.
|
||||||
|
* @return The new <code>ProcessingInstruction</code> object.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified target contains an
|
||||||
|
* illegal character.
|
||||||
|
* <br>NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
|
||||||
|
*/
|
||||||
|
public ProcessingInstruction createProcessingInstruction(String target,
|
||||||
|
String data)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an <code>Attr</code> of the given name. Note that the
|
||||||
|
* <code>Attr</code> instance can then be set on an <code>Element</code>
|
||||||
|
* using the <code>setAttributeNode</code> method.
|
||||||
|
* <br>To create an attribute with a qualified name and namespace URI, use
|
||||||
|
* the <code>createAttributeNS</code> method.
|
||||||
|
* @param nameThe name of the attribute.
|
||||||
|
* @return A new <code>Attr</code> object with the <code>nodeName</code>
|
||||||
|
* attribute set to <code>name</code>, and <code>localName</code>,
|
||||||
|
* <code>prefix</code>, and <code>namespaceURI</code> set to
|
||||||
|
* <code>null</code>. The value of the attribute is the empty string.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified name contains an
|
||||||
|
* illegal character.
|
||||||
|
*/
|
||||||
|
public Attr createAttribute(String name)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an <code>EntityReference</code> object. In addition, if the
|
||||||
|
* referenced entity is known, the child list of the
|
||||||
|
* <code>EntityReference</code> node is made the same as that of the
|
||||||
|
* corresponding <code>Entity</code> node.If any descendant of the
|
||||||
|
* <code>Entity</code> node has an unbound namespace prefix, the
|
||||||
|
* corresponding descendant of the created <code>EntityReference</code>
|
||||||
|
* node is also unbound; (its <code>namespaceURI</code> is
|
||||||
|
* <code>null</code>). The DOM Level 2 does not support any mechanism to
|
||||||
|
* resolve namespace prefixes.
|
||||||
|
* @param nameThe name of the entity to reference.
|
||||||
|
* @return The new <code>EntityReference</code> object.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified name contains an
|
||||||
|
* illegal character.
|
||||||
|
* <br>NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
|
||||||
|
*/
|
||||||
|
public EntityReference createEntityReference(String name)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a <code>NodeList</code> of all the <code>Elements</code> with a
|
||||||
|
* given tag name in the order in which they are encountered in a
|
||||||
|
* preorder traversal of the <code>Document</code> tree.
|
||||||
|
* @param tagnameThe name of the tag to match on. The special value "*"
|
||||||
|
* matches all tags.
|
||||||
|
* @return A new <code>NodeList</code> object containing all the matched
|
||||||
|
* <code>Elements</code>.
|
||||||
|
*/
|
||||||
|
public NodeList getElementsByTagName(String tagname);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Imports a node from another document to this document. The returned
|
||||||
|
* node has no parent; (<code>parentNode</code> is <code>null</code>).
|
||||||
|
* The source node is not altered or removed from the original document;
|
||||||
|
* this method creates a new copy of the source node.
|
||||||
|
* <br>For all nodes, importing a node creates a node object owned by the
|
||||||
|
* importing document, with attribute values identical to the source
|
||||||
|
* node's <code>nodeName</code> and <code>nodeType</code>, plus the
|
||||||
|
* attributes related to namespaces (<code>prefix</code>,
|
||||||
|
* <code>localName</code>, and <code>namespaceURI</code>). As in the
|
||||||
|
* <code>cloneNode</code> operation on a <code>Node</code>, the source
|
||||||
|
* node is not altered.
|
||||||
|
* <br>Additional information is copied as appropriate to the
|
||||||
|
* <code>nodeType</code>, attempting to mirror the behavior expected if
|
||||||
|
* a fragment of XML or HTML source was copied from one document to
|
||||||
|
* another, recognizing that the two documents may have different DTDs
|
||||||
|
* in the XML case. The following list describes the specifics for each
|
||||||
|
* type of node.
|
||||||
|
* <dl>
|
||||||
|
* <dt>ATTRIBUTE_NODE</dt>
|
||||||
|
* <dd>The <code>ownerElement</code> attribute
|
||||||
|
* is set to <code>null</code> and the <code>specified</code> flag is
|
||||||
|
* set to <code>true</code> on the generated <code>Attr</code>. The
|
||||||
|
* descendants of the source <code>Attr</code> are recursively imported
|
||||||
|
* and the resulting nodes reassembled to form the corresponding subtree.
|
||||||
|
* Note that the <code>deep</code> parameter has no effect on
|
||||||
|
* <code>Attr</code> nodes; they always carry their children with them
|
||||||
|
* when imported.</dd>
|
||||||
|
* <dt>DOCUMENT_FRAGMENT_NODE</dt>
|
||||||
|
* <dd>If the <code>deep</code> option
|
||||||
|
* was set to <code>true</code>, the descendants of the source element
|
||||||
|
* are recursively imported and the resulting nodes reassembled to form
|
||||||
|
* the corresponding subtree. Otherwise, this simply generates an empty
|
||||||
|
* <code>DocumentFragment</code>.</dd>
|
||||||
|
* <dt>DOCUMENT_NODE</dt>
|
||||||
|
* <dd><code>Document</code>
|
||||||
|
* nodes cannot be imported.</dd>
|
||||||
|
* <dt>DOCUMENT_TYPE_NODE</dt>
|
||||||
|
* <dd><code>DocumentType</code>
|
||||||
|
* nodes cannot be imported.</dd>
|
||||||
|
* <dt>ELEMENT_NODE</dt>
|
||||||
|
* <dd>Specified attribute nodes of the
|
||||||
|
* source element are imported, and the generated <code>Attr</code>
|
||||||
|
* nodes are attached to the generated <code>Element</code>. Default
|
||||||
|
* attributes are not copied, though if the document being imported into
|
||||||
|
* defines default attributes for this element name, those are assigned.
|
||||||
|
* If the <code>importNode</code> <code>deep</code> parameter was set to
|
||||||
|
* <code>true</code>, the descendants of the source element are
|
||||||
|
* recursively imported and the resulting nodes reassembled to form the
|
||||||
|
* corresponding subtree.</dd>
|
||||||
|
* <dt>ENTITY_NODE</dt>
|
||||||
|
* <dd><code>Entity</code> nodes can be
|
||||||
|
* imported, however in the current release of the DOM the
|
||||||
|
* <code>DocumentType</code> is readonly. Ability to add these imported
|
||||||
|
* nodes to a <code>DocumentType</code> will be considered for addition
|
||||||
|
* to a future release of the DOM.On import, the <code>publicId</code>,
|
||||||
|
* <code>systemId</code>, and <code>notationName</code> attributes are
|
||||||
|
* copied. If a <code>deep</code> import is requested, the descendants
|
||||||
|
* of the the source <code>Entity</code> are recursively imported and
|
||||||
|
* the resulting nodes reassembled to form the corresponding subtree.</dd>
|
||||||
|
* <dt>
|
||||||
|
* ENTITY_REFERENCE_NODE</dt>
|
||||||
|
* <dd>Only the <code>EntityReference</code> itself is
|
||||||
|
* copied, even if a <code>deep</code> import is requested, since the
|
||||||
|
* source and destination documents might have defined the entity
|
||||||
|
* differently. If the document being imported into provides a
|
||||||
|
* definition for this entity name, its value is assigned.</dd>
|
||||||
|
* <dt>NOTATION_NODE</dt>
|
||||||
|
* <dd>
|
||||||
|
* <code>Notation</code> nodes can be imported, however in the current
|
||||||
|
* release of the DOM the <code>DocumentType</code> is readonly. Ability
|
||||||
|
* to add these imported nodes to a <code>DocumentType</code> will be
|
||||||
|
* considered for addition to a future release of the DOM.On import, the
|
||||||
|
* <code>publicId</code> and <code>systemId</code> attributes are copied.
|
||||||
|
* Note that the <code>deep</code> parameter has no effect on
|
||||||
|
* <code>Notation</code> nodes since they never have any children.</dd>
|
||||||
|
* <dt>
|
||||||
|
* PROCESSING_INSTRUCTION_NODE</dt>
|
||||||
|
* <dd>The imported node copies its
|
||||||
|
* <code>target</code> and <code>data</code> values from those of the
|
||||||
|
* source node.</dd>
|
||||||
|
* <dt>TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE</dt>
|
||||||
|
* <dd>These three
|
||||||
|
* types of nodes inheriting from <code>CharacterData</code> copy their
|
||||||
|
* <code>data</code> and <code>length</code> attributes from those of
|
||||||
|
* the source node.</dd>
|
||||||
|
*
|
||||||
|
* @param importedNodeThe node to import.
|
||||||
|
* @param deepIf <code>true</code>, recursively import the subtree under
|
||||||
|
* the specified node; if <code>false</code>, import only the node
|
||||||
|
* itself, as explained above. This has no effect on <code>Attr</code>
|
||||||
|
* , <code>EntityReference</code>, and <code>Notation</code> nodes.
|
||||||
|
* @return The imported node that belongs to this <code>Document</code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* NOT_SUPPORTED_ERR: Raised if the type of node being imported is not
|
||||||
|
* supported.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Node importNode(Node importedNode,
|
||||||
|
boolean deep)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an element of the given qualified name and namespace URI.
|
||||||
|
* HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the element to create.
|
||||||
|
* @param qualifiedNameThe qualified name of the element type to
|
||||||
|
* instantiate.
|
||||||
|
* @return A new <code>Element</code> object with the following
|
||||||
|
* attributes:AttributeValue<code>Node.nodeName</code>
|
||||||
|
* <code>qualifiedName</code><code>Node.namespaceURI</code>
|
||||||
|
* <code>namespaceURI</code><code>Node.prefix</code>prefix, extracted
|
||||||
|
* from <code>qualifiedName</code>, or <code>null</code> if there is
|
||||||
|
* no prefix<code>Node.localName</code>local name, extracted from
|
||||||
|
* <code>qualifiedName</code><code>Element.tagName</code>
|
||||||
|
* <code>qualifiedName</code>
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified qualified name
|
||||||
|
* contains an illegal character.
|
||||||
|
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||||
|
* malformed, if the <code>qualifiedName</code> has a prefix and the
|
||||||
|
* <code>namespaceURI</code> is <code>null</code>, or if the
|
||||||
|
* <code>qualifiedName</code> has a prefix that is "xml" and the
|
||||||
|
* <code>namespaceURI</code> is different from "
|
||||||
|
* http://www.w3.org/XML/1998/namespace" .
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Element createElementNS(String namespaceURI,
|
||||||
|
String qualifiedName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an attribute of the given qualified name and namespace URI.
|
||||||
|
* HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the attribute to create.
|
||||||
|
* @param qualifiedNameThe qualified name of the attribute to instantiate.
|
||||||
|
* @return A new <code>Attr</code> object with the following attributes:
|
||||||
|
* AttributeValue<code>Node.nodeName</code>qualifiedName
|
||||||
|
* <code>Node.namespaceURI</code><code>namespaceURI</code>
|
||||||
|
* <code>Node.prefix</code>prefix, extracted from
|
||||||
|
* <code>qualifiedName</code>, or <code>null</code> if there is no
|
||||||
|
* prefix<code>Node.localName</code>local name, extracted from
|
||||||
|
* <code>qualifiedName</code><code>Attr.name</code>
|
||||||
|
* <code>qualifiedName</code><code>Node.nodeValue</code>the empty
|
||||||
|
* string
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified qualified name
|
||||||
|
* contains an illegal character.
|
||||||
|
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||||
|
* malformed, if the <code>qualifiedName</code> has a prefix and the
|
||||||
|
* <code>namespaceURI</code> is <code>null</code>, if the
|
||||||
|
* <code>qualifiedName</code> has a prefix that is "xml" and the
|
||||||
|
* <code>namespaceURI</code> is different from "
|
||||||
|
* http://www.w3.org/XML/1998/namespace", or if the
|
||||||
|
* <code>qualifiedName</code> is "xmlns" and the
|
||||||
|
* <code>namespaceURI</code> is different from "
|
||||||
|
* http://www.w3.org/2000/xmlns/".
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Attr createAttributeNS(String namespaceURI,
|
||||||
|
String qualifiedName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a <code>NodeList</code> of all the <code>Elements</code> with a
|
||||||
|
* given local name and namespace URI in the order in which they are
|
||||||
|
* encountered in a preorder traversal of the <code>Document</code> tree.
|
||||||
|
* @param namespaceURIThe namespace URI of the elements to match on. The
|
||||||
|
* special value "*" matches all namespaces.
|
||||||
|
* @param localNameThe local name of the elements to match on. The
|
||||||
|
* special value "*" matches all local names.
|
||||||
|
* @return A new <code>NodeList</code> object containing all the matched
|
||||||
|
* <code>Elements</code>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public NodeList getElementsByTagNameNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the <code>Element</code> whose <code>ID</code> is given by
|
||||||
|
* <code>elementId</code>. If no such element exists, returns
|
||||||
|
* <code>null</code>. Behavior is not defined if more than one element
|
||||||
|
* has this <code>ID</code>. The DOM implementation must have
|
||||||
|
* information that says which attributes are of type ID. Attributes
|
||||||
|
* with the name "ID" are not of type ID unless so defined.
|
||||||
|
* Implementations that do not know whether attributes are of type ID or
|
||||||
|
* not are expected to return <code>null</code>.
|
||||||
|
* @param elementIdThe unique <code>id</code> value for an element.
|
||||||
|
* @return The matching element.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Element getElementById(String elementId);
|
||||||
|
|
||||||
|
}
|
||||||
52
java/external/src/org/w3c/dom/DocumentFragment.java
vendored
Normal file
52
java/external/src/org/w3c/dom/DocumentFragment.java
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>DocumentFragment</code> is a "lightweight" or "minimal"
|
||||||
|
* <code>Document</code> object. It is very common to want to be able to
|
||||||
|
* extract a portion of a document's tree or to create a new fragment of a
|
||||||
|
* document. Imagine implementing a user command like cut or rearranging a
|
||||||
|
* document by moving fragments around. It is desirable to have an object
|
||||||
|
* which can hold such fragments and it is quite natural to use a Node for
|
||||||
|
* this purpose. While it is true that a <code>Document</code> object could
|
||||||
|
* fulfill this role, a <code>Document</code> object can potentially be a
|
||||||
|
* heavyweight object, depending on the underlying implementation. What is
|
||||||
|
* really needed for this is a very lightweight object.
|
||||||
|
* <code>DocumentFragment</code> is such an object.
|
||||||
|
* <p>Furthermore, various operations -- such as inserting nodes as children
|
||||||
|
* of another <code>Node</code> -- may take <code>DocumentFragment</code>
|
||||||
|
* objects as arguments; this results in all the child nodes of the
|
||||||
|
* <code>DocumentFragment</code> being moved to the child list of this node.
|
||||||
|
* <p>The children of a <code>DocumentFragment</code> node are zero or more
|
||||||
|
* nodes representing the tops of any sub-trees defining the structure of
|
||||||
|
* the document. <code>DocumentFragment</code> nodes do not need to be
|
||||||
|
* well-formed XML documents (although they do need to follow the rules
|
||||||
|
* imposed upon well-formed XML parsed entities, which can have multiple top
|
||||||
|
* nodes). For example, a <code>DocumentFragment</code> might have only one
|
||||||
|
* child and that child node could be a <code>Text</code> node. Such a
|
||||||
|
* structure model represents neither an HTML document nor a well-formed XML
|
||||||
|
* document.
|
||||||
|
* <p>When a <code>DocumentFragment</code> is inserted into a
|
||||||
|
* <code>Document</code> (or indeed any other <code>Node</code> that may
|
||||||
|
* take children) the children of the <code>DocumentFragment</code> and not
|
||||||
|
* the <code>DocumentFragment</code> itself are inserted into the
|
||||||
|
* <code>Node</code>. This makes the <code>DocumentFragment</code> very
|
||||||
|
* useful when the user wishes to create nodes that are siblings; the
|
||||||
|
* <code>DocumentFragment</code> acts as the parent of these nodes so that
|
||||||
|
* the user can use the standard methods from the <code>Node</code>
|
||||||
|
* interface, such as <code>insertBefore</code> and <code>appendChild</code>.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface DocumentFragment extends Node {
|
||||||
|
}
|
||||||
79
java/external/src/org/w3c/dom/DocumentType.java
vendored
Normal file
79
java/external/src/org/w3c/dom/DocumentType.java
vendored
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Each <code>Document</code> has a <code>doctype</code> attribute whose value
|
||||||
|
* is either <code>null</code> or a <code>DocumentType</code> object. The
|
||||||
|
* <code>DocumentType</code> interface in the DOM Core provides an interface
|
||||||
|
* to the list of entities that are defined for the document, and little
|
||||||
|
* else because the effect of namespaces and the various XML schema efforts
|
||||||
|
* on DTD representation are not clearly understood as of this writing.
|
||||||
|
* <p>The DOM Level 2 doesn't support editing <code>DocumentType</code> nodes.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface DocumentType extends Node {
|
||||||
|
/**
|
||||||
|
* The name of DTD; i.e., the name immediately following the
|
||||||
|
* <code>DOCTYPE</code> keyword.
|
||||||
|
*/
|
||||||
|
public String getName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A <code>NamedNodeMap</code> containing the general entities, both
|
||||||
|
* external and internal, declared in the DTD. Parameter entities are
|
||||||
|
* not contained. Duplicates are discarded. For example in:
|
||||||
|
* <pre><!DOCTYPE
|
||||||
|
* ex SYSTEM "ex.dtd" [ <!ENTITY foo "foo"> <!ENTITY bar
|
||||||
|
* "bar"> <!ENTITY bar "bar2"> <!ENTITY % baz "baz">
|
||||||
|
* ]> <ex/></pre>
|
||||||
|
* the interface provides access to <code>foo</code>
|
||||||
|
* and the first declaration of <code>bar</code> but not the second
|
||||||
|
* declaration of <code>bar</code> or <code>baz</code>. Every node in
|
||||||
|
* this map also implements the <code>Entity</code> interface.
|
||||||
|
* <br>The DOM Level 2 does not support editing entities, therefore
|
||||||
|
* <code>entities</code> cannot be altered in any way.
|
||||||
|
*/
|
||||||
|
public NamedNodeMap getEntities();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A <code>NamedNodeMap</code> containing the notations declared in the
|
||||||
|
* DTD. Duplicates are discarded. Every node in this map also implements
|
||||||
|
* the <code>Notation</code> interface.
|
||||||
|
* <br>The DOM Level 2 does not support editing notations, therefore
|
||||||
|
* <code>notations</code> cannot be altered in any way.
|
||||||
|
*/
|
||||||
|
public NamedNodeMap getNotations();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The public identifier of the external subset.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public String getPublicId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The system identifier of the external subset.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public String getSystemId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The internal subset as a string.The actual content returned depends on
|
||||||
|
* how much information is available to the implementation. This may
|
||||||
|
* vary depending on various parameters, including the XML processor
|
||||||
|
* used to build the document.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public String getInternalSubset();
|
||||||
|
|
||||||
|
}
|
||||||
302
java/external/src/org/w3c/dom/Element.java
vendored
Normal file
302
java/external/src/org/w3c/dom/Element.java
vendored
Normal file
@ -0,0 +1,302 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Element</code> interface represents an element in an HTML or XML
|
||||||
|
* document. Elements may have attributes associated with them; since the
|
||||||
|
* <code>Element</code> interface inherits from <code>Node</code>, the
|
||||||
|
* generic <code>Node</code> interface attribute <code>attributes</code> may
|
||||||
|
* be used to retrieve the set of all attributes for an element. There are
|
||||||
|
* methods on the <code>Element</code> interface to retrieve either an
|
||||||
|
* <code>Attr</code> object by name or an attribute value by name. In XML,
|
||||||
|
* where an attribute value may contain entity references, an
|
||||||
|
* <code>Attr</code> object should be retrieved to examine the possibly
|
||||||
|
* fairly complex sub-tree representing the attribute value. On the other
|
||||||
|
* hand, in HTML, where all attributes have simple string values, methods to
|
||||||
|
* directly access an attribute value can safely be used as a convenience.In
|
||||||
|
* DOM Level 2, the method <code>normalize</code> is inherited from the
|
||||||
|
* <code>Node</code> interface where it was moved.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface Element extends Node {
|
||||||
|
/**
|
||||||
|
* The name of the element. For example, in:
|
||||||
|
* <pre> <elementExample
|
||||||
|
* id="demo"> ... </elementExample> , </pre>
|
||||||
|
* <code>tagName</code> has
|
||||||
|
* the value <code>"elementExample"</code>. Note that this is
|
||||||
|
* case-preserving in XML, as are all of the operations of the DOM. The
|
||||||
|
* HTML DOM returns the <code>tagName</code> of an HTML element in the
|
||||||
|
* canonical uppercase form, regardless of the case in the source HTML
|
||||||
|
* document.
|
||||||
|
*/
|
||||||
|
public String getTagName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves an attribute value by name.
|
||||||
|
* @param nameThe name of the attribute to retrieve.
|
||||||
|
* @return The <code>Attr</code> value as a string, or the empty string
|
||||||
|
* if that attribute does not have a specified or default value.
|
||||||
|
*/
|
||||||
|
public String getAttribute(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a new attribute. If an attribute with that name is already present
|
||||||
|
* in the element, its value is changed to be that of the value
|
||||||
|
* parameter. This value is a simple string; it is not parsed as it is
|
||||||
|
* being set. So any markup (such as syntax to be recognized as an
|
||||||
|
* entity reference) is treated as literal text, and needs to be
|
||||||
|
* appropriately escaped by the implementation when it is written out.
|
||||||
|
* In order to assign an attribute value that contains entity
|
||||||
|
* references, the user must create an <code>Attr</code> node plus any
|
||||||
|
* <code>Text</code> and <code>EntityReference</code> nodes, build the
|
||||||
|
* appropriate subtree, and use <code>setAttributeNode</code> to assign
|
||||||
|
* it as the value of an attribute.
|
||||||
|
* <br>To set an attribute with a qualified name and namespace URI, use
|
||||||
|
* the <code>setAttributeNS</code> method.
|
||||||
|
* @param nameThe name of the attribute to create or alter.
|
||||||
|
* @param valueValue to set in string form.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified name contains an
|
||||||
|
* illegal character.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
*/
|
||||||
|
public void setAttribute(String name,
|
||||||
|
String value)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes an attribute by name. If the removed attribute is known to have
|
||||||
|
* a default value, an attribute immediately appears containing the
|
||||||
|
* default value as well as the corresponding namespace URI, local name,
|
||||||
|
* and prefix when applicable.
|
||||||
|
* <br>To remove an attribute by local name and namespace URI, use the
|
||||||
|
* <code>removeAttributeNS</code> method.
|
||||||
|
* @param nameThe name of the attribute to remove.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
*/
|
||||||
|
public void removeAttribute(String name)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves an attribute node by name.
|
||||||
|
* <br>To retrieve an attribute node by qualified name and namespace URI,
|
||||||
|
* use the <code>getAttributeNodeNS</code> method.
|
||||||
|
* @param nameThe name (<code>nodeName</code>) of the attribute to
|
||||||
|
* retrieve.
|
||||||
|
* @return The <code>Attr</code> node with the specified name (
|
||||||
|
* <code>nodeName</code>) or <code>null</code> if there is no such
|
||||||
|
* attribute.
|
||||||
|
*/
|
||||||
|
public Attr getAttributeNode(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a new attribute node. If an attribute with that name (
|
||||||
|
* <code>nodeName</code>) is already present in the element, it is
|
||||||
|
* replaced by the new one.
|
||||||
|
* <br>To add a new attribute node with a qualified name and namespace
|
||||||
|
* URI, use the <code>setAttributeNodeNS</code> method.
|
||||||
|
* @param newAttrThe <code>Attr</code> node to add to the attribute list.
|
||||||
|
* @return If the <code>newAttr</code> attribute replaces an existing
|
||||||
|
* attribute, the replaced <code>Attr</code> node is returned,
|
||||||
|
* otherwise <code>null</code> is returned.
|
||||||
|
* @exception DOMException
|
||||||
|
* WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a
|
||||||
|
* different document than the one that created the element.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an
|
||||||
|
* attribute of another <code>Element</code> object. The DOM user must
|
||||||
|
* explicitly clone <code>Attr</code> nodes to re-use them in other
|
||||||
|
* elements.
|
||||||
|
*/
|
||||||
|
public Attr setAttributeNode(Attr newAttr)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the specified attribute node. If the removed <code>Attr</code>
|
||||||
|
* has a default value it is immediately replaced. The replacing
|
||||||
|
* attribute has the same namespace URI and local name, as well as the
|
||||||
|
* original prefix, when applicable.
|
||||||
|
* @param oldAttrThe <code>Attr</code> node to remove from the attribute
|
||||||
|
* list.
|
||||||
|
* @return The <code>Attr</code> node that was removed.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
* <br>NOT_FOUND_ERR: Raised if <code>oldAttr</code> is not an attribute
|
||||||
|
* of the element.
|
||||||
|
*/
|
||||||
|
public Attr removeAttributeNode(Attr oldAttr)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a <code>NodeList</code> of all descendant <code>Elements</code>
|
||||||
|
* with a given tag name, in the order in which they are encountered in
|
||||||
|
* a preorder traversal of this <code>Element</code> tree.
|
||||||
|
* @param nameThe name of the tag to match on. The special value "*"
|
||||||
|
* matches all tags.
|
||||||
|
* @return A list of matching <code>Element</code> nodes.
|
||||||
|
*/
|
||||||
|
public NodeList getElementsByTagName(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves an attribute value by local name and namespace URI. HTML-only
|
||||||
|
* DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the attribute to retrieve.
|
||||||
|
* @param localNameThe local name of the attribute to retrieve.
|
||||||
|
* @return The <code>Attr</code> value as a string, or the empty string
|
||||||
|
* if that attribute does not have a specified or default value.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public String getAttributeNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a new attribute. If an attribute with the same local name and
|
||||||
|
* namespace URI is already present on the element, its prefix is
|
||||||
|
* changed to be the prefix part of the <code>qualifiedName</code>, and
|
||||||
|
* its value is changed to be the <code>value</code> parameter. This
|
||||||
|
* value is a simple string; it is not parsed as it is being set. So any
|
||||||
|
* markup (such as syntax to be recognized as an entity reference) is
|
||||||
|
* treated as literal text, and needs to be appropriately escaped by the
|
||||||
|
* implementation when it is written out. In order to assign an
|
||||||
|
* attribute value that contains entity references, the user must create
|
||||||
|
* an <code>Attr</code> node plus any <code>Text</code> and
|
||||||
|
* <code>EntityReference</code> nodes, build the appropriate subtree,
|
||||||
|
* and use <code>setAttributeNodeNS</code> or
|
||||||
|
* <code>setAttributeNode</code> to assign it as the value of an
|
||||||
|
* attribute.
|
||||||
|
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the attribute to create or
|
||||||
|
* alter.
|
||||||
|
* @param qualifiedNameThe qualified name of the attribute to create or
|
||||||
|
* alter.
|
||||||
|
* @param valueThe value to set in string form.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified qualified name
|
||||||
|
* contains an illegal character.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||||
|
* malformed, if the <code>qualifiedName</code> has a prefix and the
|
||||||
|
* <code>namespaceURI</code> is <code>null</code>, if the
|
||||||
|
* <code>qualifiedName</code> has a prefix that is "xml" and the
|
||||||
|
* <code>namespaceURI</code> is different from "
|
||||||
|
* http://www.w3.org/XML/1998/namespace", or if the
|
||||||
|
* <code>qualifiedName</code> is "xmlns" and the
|
||||||
|
* <code>namespaceURI</code> is different from "
|
||||||
|
* http://www.w3.org/2000/xmlns/".
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public void setAttributeNS(String namespaceURI,
|
||||||
|
String qualifiedName,
|
||||||
|
String value)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes an attribute by local name and namespace URI. If the removed
|
||||||
|
* attribute has a default value it is immediately replaced. The
|
||||||
|
* replacing attribute has the same namespace URI and local name, as
|
||||||
|
* well as the original prefix.
|
||||||
|
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the attribute to remove.
|
||||||
|
* @param localNameThe local name of the attribute to remove.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public void removeAttributeNS(String namespaceURI,
|
||||||
|
String localName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves an <code>Attr</code> node by local name and namespace URI.
|
||||||
|
* HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the attribute to retrieve.
|
||||||
|
* @param localNameThe local name of the attribute to retrieve.
|
||||||
|
* @return The <code>Attr</code> node with the specified attribute local
|
||||||
|
* name and namespace URI or <code>null</code> if there is no such
|
||||||
|
* attribute.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Attr getAttributeNodeNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a new attribute. If an attribute with that local name and that
|
||||||
|
* namespace URI is already present in the element, it is replaced by
|
||||||
|
* the new one.
|
||||||
|
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param newAttrThe <code>Attr</code> node to add to the attribute list.
|
||||||
|
* @return If the <code>newAttr</code> attribute replaces an existing
|
||||||
|
* attribute with the same local name and namespace URI, the replaced
|
||||||
|
* <code>Attr</code> node is returned, otherwise <code>null</code> is
|
||||||
|
* returned.
|
||||||
|
* @exception DOMException
|
||||||
|
* WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a
|
||||||
|
* different document than the one that created the element.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an
|
||||||
|
* attribute of another <code>Element</code> object. The DOM user must
|
||||||
|
* explicitly clone <code>Attr</code> nodes to re-use them in other
|
||||||
|
* elements.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Attr setAttributeNodeNS(Attr newAttr)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a <code>NodeList</code> of all the descendant
|
||||||
|
* <code>Elements</code> with a given local name and namespace URI in
|
||||||
|
* the order in which they are encountered in a preorder traversal of
|
||||||
|
* this <code>Element</code> tree.
|
||||||
|
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the elements to match on. The
|
||||||
|
* special value "*" matches all namespaces.
|
||||||
|
* @param localNameThe local name of the elements to match on. The
|
||||||
|
* special value "*" matches all local names.
|
||||||
|
* @return A new <code>NodeList</code> object containing all the matched
|
||||||
|
* <code>Elements</code>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public NodeList getElementsByTagNameNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns <code>true</code> when an attribute with a given name is
|
||||||
|
* specified on this element or has a default value, <code>false</code>
|
||||||
|
* otherwise.
|
||||||
|
* @param nameThe name of the attribute to look for.
|
||||||
|
* @return <code>true</code> if an attribute with the given name is
|
||||||
|
* specified on this element or has a default value, <code>false</code>
|
||||||
|
* otherwise.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public boolean hasAttribute(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns <code>true</code> when an attribute with a given local name and
|
||||||
|
* namespace URI is specified on this element or has a default value,
|
||||||
|
* <code>false</code> otherwise. HTML-only DOM implementations do not
|
||||||
|
* need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the attribute to look for.
|
||||||
|
* @param localNameThe local name of the attribute to look for.
|
||||||
|
* @return <code>true</code> if an attribute with the given local name
|
||||||
|
* and namespace URI is specified or has a default value on this
|
||||||
|
* element, <code>false</code> otherwise.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public boolean hasAttributeNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
}
|
||||||
68
java/external/src/org/w3c/dom/Entity.java
vendored
Normal file
68
java/external/src/org/w3c/dom/Entity.java
vendored
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface represents an entity, either parsed or unparsed, in an XML
|
||||||
|
* document. Note that this models the entity itself not the entity
|
||||||
|
* declaration. <code>Entity</code> declaration modeling has been left for a
|
||||||
|
* later Level of the DOM specification.
|
||||||
|
* <p>The <code>nodeName</code> attribute that is inherited from
|
||||||
|
* <code>Node</code> contains the name of the entity.
|
||||||
|
* <p>An XML processor may choose to completely expand entities before the
|
||||||
|
* structure model is passed to the DOM; in this case there will be no
|
||||||
|
* <code>EntityReference</code> nodes in the document tree.
|
||||||
|
* <p>XML does not mandate that a non-validating XML processor read and
|
||||||
|
* process entity declarations made in the external subset or declared in
|
||||||
|
* external parameter entities. This means that parsed entities declared in
|
||||||
|
* the external subset need not be expanded by some classes of applications,
|
||||||
|
* and that the replacement value of the entity may not be available. When
|
||||||
|
* the replacement value is available, the corresponding <code>Entity</code>
|
||||||
|
* node's child list represents the structure of that replacement text.
|
||||||
|
* Otherwise, the child list is empty.
|
||||||
|
* <p>The DOM Level 2 does not support editing <code>Entity</code> nodes; if a
|
||||||
|
* user wants to make changes to the contents of an <code>Entity</code>,
|
||||||
|
* every related <code>EntityReference</code> node has to be replaced in the
|
||||||
|
* structure model by a clone of the <code>Entity</code>'s contents, and
|
||||||
|
* then the desired changes must be made to each of those clones instead.
|
||||||
|
* <code>Entity</code> nodes and all their descendants are readonly.
|
||||||
|
* <p>An <code>Entity</code> node does not have any parent.If the entity
|
||||||
|
* contains an unbound namespace prefix, the <code>namespaceURI</code> of
|
||||||
|
* the corresponding node in the <code>Entity</code> node subtree is
|
||||||
|
* <code>null</code>. The same is true for <code>EntityReference</code>
|
||||||
|
* nodes that refer to this entity, when they are created using the
|
||||||
|
* <code>createEntityReference</code> method of the <code>Document</code>
|
||||||
|
* interface. The DOM Level 2 does not support any mechanism to resolve
|
||||||
|
* namespace prefixes.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface Entity extends Node {
|
||||||
|
/**
|
||||||
|
* The public identifier associated with the entity, if specified. If the
|
||||||
|
* public identifier was not specified, this is <code>null</code>.
|
||||||
|
*/
|
||||||
|
public String getPublicId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The system identifier associated with the entity, if specified. If the
|
||||||
|
* system identifier was not specified, this is <code>null</code>.
|
||||||
|
*/
|
||||||
|
public String getSystemId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For unparsed entities, the name of the notation for the entity. For
|
||||||
|
* parsed entities, this is <code>null</code>.
|
||||||
|
*/
|
||||||
|
public String getNotationName();
|
||||||
|
|
||||||
|
}
|
||||||
39
java/external/src/org/w3c/dom/EntityReference.java
vendored
Normal file
39
java/external/src/org/w3c/dom/EntityReference.java
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>EntityReference</code> objects may be inserted into the structure
|
||||||
|
* model when an entity reference is in the source document, or when the
|
||||||
|
* user wishes to insert an entity reference. Note that character references
|
||||||
|
* and references to predefined entities are considered to be expanded by
|
||||||
|
* the HTML or XML processor so that characters are represented by their
|
||||||
|
* Unicode equivalent rather than by an entity reference. Moreover, the XML
|
||||||
|
* processor may completely expand references to entities while building the
|
||||||
|
* structure model, instead of providing <code>EntityReference</code>
|
||||||
|
* objects. If it does provide such objects, then for a given
|
||||||
|
* <code>EntityReference</code> node, it may be that there is no
|
||||||
|
* <code>Entity</code> node representing the referenced entity. If such an
|
||||||
|
* <code>Entity</code> exists, then the subtree of the
|
||||||
|
* <code>EntityReference</code> node is in general a copy of the
|
||||||
|
* <code>Entity</code> node subtree. However, this may not be true when an
|
||||||
|
* entity contains an unbound namespace prefix. In such a case, because the
|
||||||
|
* namespace prefix resolution depends on where the entity reference is, the
|
||||||
|
* descendants of the <code>EntityReference</code> node may be bound to
|
||||||
|
* different namespace URIs.
|
||||||
|
* <p>As for <code>Entity</code> nodes, <code>EntityReference</code> nodes and
|
||||||
|
* all their descendants are readonly.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface EntityReference extends Node {
|
||||||
|
}
|
||||||
156
java/external/src/org/w3c/dom/NamedNodeMap.java
vendored
Normal file
156
java/external/src/org/w3c/dom/NamedNodeMap.java
vendored
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Objects implementing the <code>NamedNodeMap</code> interface are used to
|
||||||
|
* represent collections of nodes that can be accessed by name. Note that
|
||||||
|
* <code>NamedNodeMap</code> does not inherit from <code>NodeList</code>;
|
||||||
|
* <code>NamedNodeMaps</code> are not maintained in any particular order.
|
||||||
|
* Objects contained in an object implementing <code>NamedNodeMap</code> may
|
||||||
|
* also be accessed by an ordinal index, but this is simply to allow
|
||||||
|
* convenient enumeration of the contents of a <code>NamedNodeMap</code>,
|
||||||
|
* and does not imply that the DOM specifies an order to these Nodes.
|
||||||
|
* <p><code>NamedNodeMap</code> objects in the DOM are live.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface NamedNodeMap {
|
||||||
|
/**
|
||||||
|
* Retrieves a node specified by name.
|
||||||
|
* @param nameThe <code>nodeName</code> of a node to retrieve.
|
||||||
|
* @return A <code>Node</code> (of any type) with the specified
|
||||||
|
* <code>nodeName</code>, or <code>null</code> if it does not identify
|
||||||
|
* any node in this map.
|
||||||
|
*/
|
||||||
|
public Node getNamedItem(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a node using its <code>nodeName</code> attribute. If a node with
|
||||||
|
* that name is already present in this map, it is replaced by the new
|
||||||
|
* one.
|
||||||
|
* <br>As the <code>nodeName</code> attribute is used to derive the name
|
||||||
|
* which the node must be stored under, multiple nodes of certain types
|
||||||
|
* (those that have a "special" string value) cannot be stored as the
|
||||||
|
* names would clash. This is seen as preferable to allowing nodes to be
|
||||||
|
* aliased.
|
||||||
|
* @param argA node to store in this map. The node will later be
|
||||||
|
* accessible using the value of its <code>nodeName</code> attribute.
|
||||||
|
* @return If the new <code>Node</code> replaces an existing node the
|
||||||
|
* replaced <code>Node</code> is returned, otherwise <code>null</code>
|
||||||
|
* is returned.
|
||||||
|
* @exception DOMException
|
||||||
|
* WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a
|
||||||
|
* different document than the one that created this map.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||||
|
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
|
||||||
|
* <code>Attr</code> that is already an attribute of another
|
||||||
|
* <code>Element</code> object. The DOM user must explicitly clone
|
||||||
|
* <code>Attr</code> nodes to re-use them in other elements.
|
||||||
|
*/
|
||||||
|
public Node setNamedItem(Node arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes a node specified by name. When this map contains the attributes
|
||||||
|
* attached to an element, if the removed attribute is known to have a
|
||||||
|
* default value, an attribute immediately appears containing the
|
||||||
|
* default value as well as the corresponding namespace URI, local name,
|
||||||
|
* and prefix when applicable.
|
||||||
|
* @param nameThe <code>nodeName</code> of the node to remove.
|
||||||
|
* @return The node removed from this map if a node with such a name
|
||||||
|
* exists.
|
||||||
|
* @exception DOMException
|
||||||
|
* NOT_FOUND_ERR: Raised if there is no node named <code>name</code> in
|
||||||
|
* this map.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||||
|
*/
|
||||||
|
public Node removeNamedItem(String name)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the <code>index</code>th item in the map. If <code>index</code>
|
||||||
|
* is greater than or equal to the number of nodes in this map, this
|
||||||
|
* returns <code>null</code>.
|
||||||
|
* @param indexIndex into this map.
|
||||||
|
* @return The node at the <code>index</code>th position in the map, or
|
||||||
|
* <code>null</code> if that is not a valid index.
|
||||||
|
*/
|
||||||
|
public Node item(int index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The number of nodes in this map. The range of valid child node indices
|
||||||
|
* is <code>0</code> to <code>length-1</code> inclusive.
|
||||||
|
*/
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves a node specified by local name and namespace URI. HTML-only
|
||||||
|
* DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the node to retrieve.
|
||||||
|
* @param localNameThe local name of the node to retrieve.
|
||||||
|
* @return A <code>Node</code> (of any type) with the specified local
|
||||||
|
* name and namespace URI, or <code>null</code> if they do not
|
||||||
|
* identify any node in this map.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Node getNamedItemNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a node using its <code>namespaceURI</code> and
|
||||||
|
* <code>localName</code>. If a node with that namespace URI and that
|
||||||
|
* local name is already present in this map, it is replaced by the new
|
||||||
|
* one.
|
||||||
|
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param argA node to store in this map. The node will later be
|
||||||
|
* accessible using the value of its <code>namespaceURI</code> and
|
||||||
|
* <code>localName</code> attributes.
|
||||||
|
* @return If the new <code>Node</code> replaces an existing node the
|
||||||
|
* replaced <code>Node</code> is returned, otherwise <code>null</code>
|
||||||
|
* is returned.
|
||||||
|
* @exception DOMException
|
||||||
|
* WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a
|
||||||
|
* different document than the one that created this map.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||||
|
* <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
|
||||||
|
* <code>Attr</code> that is already an attribute of another
|
||||||
|
* <code>Element</code> object. The DOM user must explicitly clone
|
||||||
|
* <code>Attr</code> nodes to re-use them in other elements.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Node setNamedItemNS(Node arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes a node specified by local name and namespace URI. A removed
|
||||||
|
* attribute may be known to have a default value when this map contains
|
||||||
|
* the attributes attached to an element, as returned by the attributes
|
||||||
|
* attribute of the <code>Node</code> interface. If so, an attribute
|
||||||
|
* immediately appears containing the default value as well as the
|
||||||
|
* corresponding namespace URI, local name, and prefix when applicable.
|
||||||
|
* <br>HTML-only DOM implementations do not need to implement this method.
|
||||||
|
* @param namespaceURIThe namespace URI of the node to remove.
|
||||||
|
* @param localNameThe local name of the node to remove.
|
||||||
|
* @return The node removed from this map if a node with such a local
|
||||||
|
* name and namespace URI exists.
|
||||||
|
* @exception DOMException
|
||||||
|
* NOT_FOUND_ERR: Raised if there is no node with the specified
|
||||||
|
* <code>namespaceURI</code> and <code>localName</code> in this map.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public Node removeNamedItemNS(String namespaceURI,
|
||||||
|
String localName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
390
java/external/src/org/w3c/dom/Node.java
vendored
Normal file
390
java/external/src/org/w3c/dom/Node.java
vendored
Normal file
@ -0,0 +1,390 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Node</code> interface is the primary datatype for the entire
|
||||||
|
* Document Object Model. It represents a single node in the document tree.
|
||||||
|
* While all objects implementing the <code>Node</code> interface expose
|
||||||
|
* methods for dealing with children, not all objects implementing the
|
||||||
|
* <code>Node</code> interface may have children. For example,
|
||||||
|
* <code>Text</code> nodes may not have children, and adding children to
|
||||||
|
* such nodes results in a <code>DOMException</code> being raised.
|
||||||
|
* <p>The attributes <code>nodeName</code>, <code>nodeValue</code> and
|
||||||
|
* <code>attributes</code> are included as a mechanism to get at node
|
||||||
|
* information without casting down to the specific derived interface. In
|
||||||
|
* cases where there is no obvious mapping of these attributes for a
|
||||||
|
* specific <code>nodeType</code> (e.g., <code>nodeValue</code> for an
|
||||||
|
* <code>Element</code> or <code>attributes</code> for a <code>Comment</code>
|
||||||
|
* ), this returns <code>null</code>. Note that the specialized interfaces
|
||||||
|
* may contain additional and more convenient mechanisms to get and set the
|
||||||
|
* relevant information.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface Node {
|
||||||
|
// NodeType
|
||||||
|
/**
|
||||||
|
* The node is an <code>Element</code>.
|
||||||
|
*/
|
||||||
|
public static final short ELEMENT_NODE = 1;
|
||||||
|
/**
|
||||||
|
* The node is an <code>Attr</code>.
|
||||||
|
*/
|
||||||
|
public static final short ATTRIBUTE_NODE = 2;
|
||||||
|
/**
|
||||||
|
* The node is a <code>Text</code> node.
|
||||||
|
*/
|
||||||
|
public static final short TEXT_NODE = 3;
|
||||||
|
/**
|
||||||
|
* The node is a <code>CDATASection</code>.
|
||||||
|
*/
|
||||||
|
public static final short CDATA_SECTION_NODE = 4;
|
||||||
|
/**
|
||||||
|
* The node is an <code>EntityReference</code>.
|
||||||
|
*/
|
||||||
|
public static final short ENTITY_REFERENCE_NODE = 5;
|
||||||
|
/**
|
||||||
|
* The node is an <code>Entity</code>.
|
||||||
|
*/
|
||||||
|
public static final short ENTITY_NODE = 6;
|
||||||
|
/**
|
||||||
|
* The node is a <code>ProcessingInstruction</code>.
|
||||||
|
*/
|
||||||
|
public static final short PROCESSING_INSTRUCTION_NODE = 7;
|
||||||
|
/**
|
||||||
|
* The node is a <code>Comment</code>.
|
||||||
|
*/
|
||||||
|
public static final short COMMENT_NODE = 8;
|
||||||
|
/**
|
||||||
|
* The node is a <code>Document</code>.
|
||||||
|
*/
|
||||||
|
public static final short DOCUMENT_NODE = 9;
|
||||||
|
/**
|
||||||
|
* The node is a <code>DocumentType</code>.
|
||||||
|
*/
|
||||||
|
public static final short DOCUMENT_TYPE_NODE = 10;
|
||||||
|
/**
|
||||||
|
* The node is a <code>DocumentFragment</code>.
|
||||||
|
*/
|
||||||
|
public static final short DOCUMENT_FRAGMENT_NODE = 11;
|
||||||
|
/**
|
||||||
|
* The node is a <code>Notation</code>.
|
||||||
|
*/
|
||||||
|
public static final short NOTATION_NODE = 12;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name of this node, depending on its type; see the table above.
|
||||||
|
*/
|
||||||
|
public String getNodeName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value of this node, depending on its type; see the table above.
|
||||||
|
* When it is defined to be <code>null</code>, setting it has no effect.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||||
|
* @exception DOMException
|
||||||
|
* DOMSTRING_SIZE_ERR: Raised when it would return more characters than
|
||||||
|
* fit in a <code>DOMString</code> variable on the implementation
|
||||||
|
* platform.
|
||||||
|
*/
|
||||||
|
public String getNodeValue()
|
||||||
|
throws DOMException;
|
||||||
|
public void setNodeValue(String nodeValue)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A code representing the type of the underlying object, as defined above.
|
||||||
|
*/
|
||||||
|
public short getNodeType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parent of this node. All nodes, except <code>Attr</code>,
|
||||||
|
* <code>Document</code>, <code>DocumentFragment</code>,
|
||||||
|
* <code>Entity</code>, and <code>Notation</code> may have a parent.
|
||||||
|
* However, if a node has just been created and not yet added to the
|
||||||
|
* tree, or if it has been removed from the tree, this is
|
||||||
|
* <code>null</code>.
|
||||||
|
*/
|
||||||
|
public Node getParentNode();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A <code>NodeList</code> that contains all children of this node. If
|
||||||
|
* there are no children, this is a <code>NodeList</code> containing no
|
||||||
|
* nodes.
|
||||||
|
*/
|
||||||
|
public NodeList getChildNodes();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The first child of this node. If there is no such node, this returns
|
||||||
|
* <code>null</code>.
|
||||||
|
*/
|
||||||
|
public Node getFirstChild();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The last child of this node. If there is no such node, this returns
|
||||||
|
* <code>null</code>.
|
||||||
|
*/
|
||||||
|
public Node getLastChild();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The node immediately preceding this node. If there is no such node,
|
||||||
|
* this returns <code>null</code>.
|
||||||
|
*/
|
||||||
|
public Node getPreviousSibling();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The node immediately following this node. If there is no such node,
|
||||||
|
* this returns <code>null</code>.
|
||||||
|
*/
|
||||||
|
public Node getNextSibling();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A <code>NamedNodeMap</code> containing the attributes of this node (if
|
||||||
|
* it is an <code>Element</code>) or <code>null</code> otherwise.
|
||||||
|
*/
|
||||||
|
public NamedNodeMap getAttributes();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Document</code> object associated with this node. This is
|
||||||
|
* also the <code>Document</code> object used to create new nodes. When
|
||||||
|
* this node is a <code>Document</code> or a <code>DocumentType</code>
|
||||||
|
* which is not used with any <code>Document</code> yet, this is
|
||||||
|
* <code>null</code>.
|
||||||
|
* @version DOM Level 2
|
||||||
|
*/
|
||||||
|
public Document getOwnerDocument();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inserts the node <code>newChild</code> before the existing child node
|
||||||
|
* <code>refChild</code>. If <code>refChild</code> is <code>null</code>,
|
||||||
|
* insert <code>newChild</code> at the end of the list of children.
|
||||||
|
* <br>If <code>newChild</code> is a <code>DocumentFragment</code> object,
|
||||||
|
* all of its children are inserted, in the same order, before
|
||||||
|
* <code>refChild</code>. If the <code>newChild</code> is already in the
|
||||||
|
* tree, it is first removed.
|
||||||
|
* @param newChildThe node to insert.
|
||||||
|
* @param refChildThe reference node, i.e., the node before which the new
|
||||||
|
* node must be inserted.
|
||||||
|
* @return The node being inserted.
|
||||||
|
* @exception DOMException
|
||||||
|
* HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
|
||||||
|
* allow children of the type of the <code>newChild</code> node, or if
|
||||||
|
* the node to insert is one of this node's ancestors.
|
||||||
|
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
|
||||||
|
* from a different document than the one that created this node.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or
|
||||||
|
* if the parent of the node being inserted is readonly.
|
||||||
|
* <br>NOT_FOUND_ERR: Raised if <code>refChild</code> is not a child of
|
||||||
|
* this node.
|
||||||
|
*/
|
||||||
|
public Node insertBefore(Node newChild,
|
||||||
|
Node refChild)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replaces the child node <code>oldChild</code> with <code>newChild</code>
|
||||||
|
* in the list of children, and returns the <code>oldChild</code> node.
|
||||||
|
* <br>If <code>newChild</code> is a <code>DocumentFragment</code> object,
|
||||||
|
* <code>oldChild</code> is replaced by all of the
|
||||||
|
* <code>DocumentFragment</code> children, which are inserted in the
|
||||||
|
* same order. If the <code>newChild</code> is already in the tree, it
|
||||||
|
* is first removed.
|
||||||
|
* @param newChildThe new node to put in the child list.
|
||||||
|
* @param oldChildThe node being replaced in the list.
|
||||||
|
* @return The node replaced.
|
||||||
|
* @exception DOMException
|
||||||
|
* HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
|
||||||
|
* allow children of the type of the <code>newChild</code> node, or if
|
||||||
|
* the node to put in is one of this node's ancestors.
|
||||||
|
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
|
||||||
|
* from a different document than the one that created this node.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the parent of
|
||||||
|
* the new node is readonly.
|
||||||
|
* <br>NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a child of
|
||||||
|
* this node.
|
||||||
|
*/
|
||||||
|
public Node replaceChild(Node newChild,
|
||||||
|
Node oldChild)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the child node indicated by <code>oldChild</code> from the list
|
||||||
|
* of children, and returns it.
|
||||||
|
* @param oldChildThe node being removed.
|
||||||
|
* @return The node removed.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
* <br>NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a child of
|
||||||
|
* this node.
|
||||||
|
*/
|
||||||
|
public Node removeChild(Node oldChild)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds the node <code>newChild</code> to the end of the list of children
|
||||||
|
* of this node. If the <code>newChild</code> is already in the tree, it
|
||||||
|
* is first removed.
|
||||||
|
* @param newChildThe node to add.If it is a <code>DocumentFragment</code>
|
||||||
|
* object, the entire contents of the document fragment are moved
|
||||||
|
* into the child list of this node
|
||||||
|
* @return The node added.
|
||||||
|
* @exception DOMException
|
||||||
|
* HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
|
||||||
|
* allow children of the type of the <code>newChild</code> node, or if
|
||||||
|
* the node to append is one of this node's ancestors.
|
||||||
|
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
|
||||||
|
* from a different document than the one that created this node.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
*/
|
||||||
|
public Node appendChild(Node newChild)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this node has any children.
|
||||||
|
* @return <code>true</code> if this node has any children,
|
||||||
|
* <code>false</code> otherwise.
|
||||||
|
*/
|
||||||
|
public boolean hasChildNodes();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a duplicate of this node, i.e., serves as a generic copy
|
||||||
|
* constructor for nodes. The duplicate node has no parent; (
|
||||||
|
* <code>parentNode</code> is <code>null</code>.).
|
||||||
|
* <br>Cloning an <code>Element</code> copies all attributes and their
|
||||||
|
* values, including those generated by the XML processor to represent
|
||||||
|
* defaulted attributes, but this method does not copy any text it
|
||||||
|
* contains unless it is a deep clone, since the text is contained in a
|
||||||
|
* child <code>Text</code> node. Cloning an <code>Attribute</code>
|
||||||
|
* directly, as opposed to be cloned as part of an <code>Element</code>
|
||||||
|
* cloning operation, returns a specified attribute (
|
||||||
|
* <code>specified</code> is <code>true</code>). Cloning any other type
|
||||||
|
* of node simply returns a copy of this node.
|
||||||
|
* <br>Note that cloning an immutable subtree results in a mutable copy,
|
||||||
|
* but the children of an <code>EntityReference</code> clone are readonly
|
||||||
|
* . In addition, clones of unspecified <code>Attr</code> nodes are
|
||||||
|
* specified. And, cloning <code>Document</code>,
|
||||||
|
* <code>DocumentType</code>, <code>Entity</code>, and
|
||||||
|
* <code>Notation</code> nodes is implementation dependent.
|
||||||
|
* @param deepIf <code>true</code>, recursively clone the subtree under
|
||||||
|
* the specified node; if <code>false</code>, clone only the node
|
||||||
|
* itself (and its attributes, if it is an <code>Element</code>).
|
||||||
|
* @return The duplicate node.
|
||||||
|
*/
|
||||||
|
public Node cloneNode(boolean deep);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Puts all <code>Text</code> nodes in the full depth of the sub-tree
|
||||||
|
* underneath this <code>Node</code>, including attribute nodes, into a
|
||||||
|
* "normal" form where only structure (e.g., elements, comments,
|
||||||
|
* processing instructions, CDATA sections, and entity references)
|
||||||
|
* separates <code>Text</code> nodes, i.e., there are neither adjacent
|
||||||
|
* <code>Text</code> nodes nor empty <code>Text</code> nodes. This can
|
||||||
|
* be used to ensure that the DOM view of a document is the same as if
|
||||||
|
* it were saved and re-loaded, and is useful when operations (such as
|
||||||
|
* XPointer lookups) that depend on a particular document tree
|
||||||
|
* structure are to be used.In cases where the document contains
|
||||||
|
* <code>CDATASections</code>, the normalize operation alone may not be
|
||||||
|
* sufficient, since XPointers do not differentiate between
|
||||||
|
* <code>Text</code> nodes and <code>CDATASection</code> nodes.
|
||||||
|
* @version DOM Level 2
|
||||||
|
*/
|
||||||
|
public void normalize();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests whether the DOM implementation implements a specific feature and
|
||||||
|
* that feature is supported by this node.
|
||||||
|
* @param featureThe name of the feature to test. This is the same name
|
||||||
|
* which can be passed to the method <code>hasFeature</code> on
|
||||||
|
* <code>DOMImplementation</code>.
|
||||||
|
* @param versionThis is the version number of the feature to test. In
|
||||||
|
* Level 2, version 1, this is the string "2.0". If the version is not
|
||||||
|
* specified, supporting any version of the feature will cause the
|
||||||
|
* method to return <code>true</code>.
|
||||||
|
* @return Returns <code>true</code> if the specified feature is
|
||||||
|
* supported on this node, <code>false</code> otherwise.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public boolean isSupported(String feature,
|
||||||
|
String version);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The namespace URI of this node, or <code>null</code> if it is
|
||||||
|
* unspecified.
|
||||||
|
* <br>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.
|
||||||
|
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
|
||||||
|
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
|
||||||
|
* method, such as <code>createElement</code> from the
|
||||||
|
* <code>Document</code> interface, this is always <code>null</code>.Per
|
||||||
|
* the Namespaces in XML Specification an attribute does not inherit
|
||||||
|
* its namespace from the element it is attached to. If an attribute is
|
||||||
|
* not explicitly given a namespace, it simply has no namespace.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public String getNamespaceURI();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The namespace prefix of this node, or <code>null</code> if it is
|
||||||
|
* unspecified.
|
||||||
|
* <br>Note that setting this attribute, when permitted, changes the
|
||||||
|
* <code>nodeName</code> attribute, which holds the qualified name, as
|
||||||
|
* well as the <code>tagName</code> and <code>name</code> attributes of
|
||||||
|
* the <code>Element</code> and <code>Attr</code> interfaces, when
|
||||||
|
* applicable.
|
||||||
|
* <br>Note also that changing the prefix of an attribute that is known to
|
||||||
|
* have a default value, does not make a new attribute with the default
|
||||||
|
* value and the original prefix appear, since the
|
||||||
|
* <code>namespaceURI</code> and <code>localName</code> do not change.
|
||||||
|
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
|
||||||
|
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
|
||||||
|
* method, such as <code>createElement</code> from the
|
||||||
|
* <code>Document</code> interface, this is always <code>null</code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: Raised if the specified prefix contains an
|
||||||
|
* illegal character.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
* <br>NAMESPACE_ERR: Raised if the specified <code>prefix</code> is
|
||||||
|
* malformed, if the <code>namespaceURI</code> of this node is
|
||||||
|
* <code>null</code>, if the specified prefix is "xml" and the
|
||||||
|
* <code>namespaceURI</code> of this node is different from "
|
||||||
|
* http://www.w3.org/XML/1998/namespace", if this node is an attribute
|
||||||
|
* and the specified prefix is "xmlns" and the
|
||||||
|
* <code>namespaceURI</code> of this node is different from "
|
||||||
|
* http://www.w3.org/2000/xmlns/", or if this node is an attribute and
|
||||||
|
* the <code>qualifiedName</code> of this node is "xmlns" .
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public String getPrefix();
|
||||||
|
public void setPrefix(String prefix)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the local part of the qualified name of this node.
|
||||||
|
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
|
||||||
|
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
|
||||||
|
* method, such as <code>createElement</code> from the
|
||||||
|
* <code>Document</code> interface, this is always <code>null</code>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public String getLocalName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this node (if it is an element) has any attributes.
|
||||||
|
* @return <code>true</code> if this node has any attributes,
|
||||||
|
* <code>false</code> otherwise.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public boolean hasAttributes();
|
||||||
|
|
||||||
|
}
|
||||||
41
java/external/src/org/w3c/dom/NodeList.java
vendored
Normal file
41
java/external/src/org/w3c/dom/NodeList.java
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>NodeList</code> interface provides the abstraction of an ordered
|
||||||
|
* collection of nodes, without defining or constraining how this collection
|
||||||
|
* is implemented. <code>NodeList</code> objects in the DOM are live.
|
||||||
|
* <p>The items in the <code>NodeList</code> are accessible via an integral
|
||||||
|
* index, starting from 0.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface NodeList {
|
||||||
|
/**
|
||||||
|
* Returns the <code>index</code>th item in the collection. If
|
||||||
|
* <code>index</code> is greater than or equal to the number of nodes in
|
||||||
|
* the list, this returns <code>null</code>.
|
||||||
|
* @param indexIndex into the collection.
|
||||||
|
* @return The node at the <code>index</code>th position in the
|
||||||
|
* <code>NodeList</code>, or <code>null</code> if that is not a valid
|
||||||
|
* index.
|
||||||
|
*/
|
||||||
|
public Node item(int index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The number of nodes in the list. The range of valid child node indices
|
||||||
|
* is 0 to <code>length-1</code> inclusive.
|
||||||
|
*/
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
}
|
||||||
40
java/external/src/org/w3c/dom/Notation.java
vendored
Normal file
40
java/external/src/org/w3c/dom/Notation.java
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface represents a notation declared in the DTD. A notation either
|
||||||
|
* declares, by name, the format of an unparsed entity (see section 4.7 of
|
||||||
|
* the XML 1.0 specification ), or is used for formal declaration of
|
||||||
|
* processing instruction targets (see section 2.6 of the XML 1.0
|
||||||
|
* specification ). The <code>nodeName</code> attribute inherited from
|
||||||
|
* <code>Node</code> is set to the declared name of the notation.
|
||||||
|
* <p>The DOM Level 1 does not support editing <code>Notation</code> nodes;
|
||||||
|
* they are therefore readonly.
|
||||||
|
* <p>A <code>Notation</code> node does not have any parent.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface Notation extends Node {
|
||||||
|
/**
|
||||||
|
* The public identifier of this notation. If the public identifier was
|
||||||
|
* not specified, this is <code>null</code>.
|
||||||
|
*/
|
||||||
|
public String getPublicId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The system identifier of this notation. If the system identifier was
|
||||||
|
* not specified, this is <code>null</code>.
|
||||||
|
*/
|
||||||
|
public String getSystemId();
|
||||||
|
|
||||||
|
}
|
||||||
40
java/external/src/org/w3c/dom/ProcessingInstruction.java
vendored
Normal file
40
java/external/src/org/w3c/dom/ProcessingInstruction.java
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>ProcessingInstruction</code> interface represents a "processing
|
||||||
|
* instruction", used in XML as a way to keep processor-specific information
|
||||||
|
* in the text of the document.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface ProcessingInstruction extends Node {
|
||||||
|
/**
|
||||||
|
* The target of this processing instruction. XML defines this as being
|
||||||
|
* the first token following the markup that begins the processing
|
||||||
|
* instruction.
|
||||||
|
*/
|
||||||
|
public String getTarget();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The content of this processing instruction. This is from the first non
|
||||||
|
* white space character after the target to the character immediately
|
||||||
|
* preceding the <code>?></code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
||||||
|
*/
|
||||||
|
public String getData();
|
||||||
|
public void setData(String data)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
56
java/external/src/org/w3c/dom/Text.java
vendored
Normal file
56
java/external/src/org/w3c/dom/Text.java
vendored
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Text</code> interface inherits from <code>CharacterData</code>
|
||||||
|
* and represents the textual content (termed character data in XML) of an
|
||||||
|
* <code>Element</code> or <code>Attr</code>. If there is no markup inside
|
||||||
|
* an element's content, the text is contained in a single object
|
||||||
|
* implementing the <code>Text</code> interface that is the only child of
|
||||||
|
* the element. If there is markup, it is parsed into the information items
|
||||||
|
* (elements, comments, etc.) and <code>Text</code> nodes that form the list
|
||||||
|
* of children of the element.
|
||||||
|
* <p>When a document is first made available via the DOM, there is only one
|
||||||
|
* <code>Text</code> node for each block of text. Users may create adjacent
|
||||||
|
* <code>Text</code> nodes that represent the contents of a given element
|
||||||
|
* without any intervening markup, but should be aware that there is no way
|
||||||
|
* to represent the separations between these nodes in XML or HTML, so they
|
||||||
|
* will not (in general) persist between DOM editing sessions. The
|
||||||
|
* <code>normalize()</code> method on <code>Node</code> merges any such
|
||||||
|
* adjacent <code>Text</code> objects into a single node for each block of
|
||||||
|
* text.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
|
||||||
|
*/
|
||||||
|
public interface Text extends CharacterData {
|
||||||
|
/**
|
||||||
|
* Breaks this node into two nodes at the specified <code>offset</code>,
|
||||||
|
* keeping both in the tree as siblings. After being split, this node
|
||||||
|
* will contain all the content up to the <code>offset</code> point. A
|
||||||
|
* new node of the same type, which contains all the content at and
|
||||||
|
* after the <code>offset</code> point, is returned. If the original
|
||||||
|
* node had a parent node, the new node is inserted as the next sibling
|
||||||
|
* of the original node. When the <code>offset</code> is equal to the
|
||||||
|
* length of this node, the new node has no data.
|
||||||
|
* @param offsetThe 16-bit unit offset at which to split, starting from
|
||||||
|
* <code>0</code>.
|
||||||
|
* @return The new node, of the same type as this node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
|
||||||
|
* than the number of 16-bit units in <code>data</code>.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
||||||
|
*/
|
||||||
|
public Text splitText(int offset)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
1411
java/external/src/org/w3c/dom/css/CSS2Properties.java
vendored
Normal file
1411
java/external/src/org/w3c/dom/css/CSS2Properties.java
vendored
Normal file
File diff suppressed because it is too large
Load Diff
48
java/external/src/org/w3c/dom/css/CSSCharsetRule.java
vendored
Normal file
48
java/external/src/org/w3c/dom/css/CSSCharsetRule.java
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSCharsetRule</code> interface represents a @charset rule in a
|
||||||
|
* CSS style sheet. The value of the <code>encoding</code> attribute does
|
||||||
|
* not affect the encoding of text data in the DOM objects; this encoding is
|
||||||
|
* always UTF-16. After a stylesheet is loaded, the value of the
|
||||||
|
* <code>encoding</code> attribute is the value found in the
|
||||||
|
* <code>@charset</code> rule. If there was no <code>@charset</code> in the
|
||||||
|
* original document, then no <code>CSSCharsetRule</code> is created. The
|
||||||
|
* value of the <code>encoding</code> attribute may also be used as a hint
|
||||||
|
* for the encoding used on serialization of the style sheet.
|
||||||
|
* <p> The value of the @charset rule (and therefore of the
|
||||||
|
* <code>CSSCharsetRule</code>) may not correspond to the encoding the
|
||||||
|
* document actually came in; character encoding information e.g. in an HTTP
|
||||||
|
* header, has priority (see CSS document representation) but this is not
|
||||||
|
* reflected in the <code>CSSCharsetRule</code>.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSCharsetRule extends CSSRule {
|
||||||
|
/**
|
||||||
|
* The encoding information used in this <code>@charset</code> rule.
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified encoding value has a syntax error
|
||||||
|
* and is unparsable.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this encoding rule is
|
||||||
|
* readonly.
|
||||||
|
*/
|
||||||
|
public String getEncoding();
|
||||||
|
public void setEncoding(String encoding)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
28
java/external/src/org/w3c/dom/css/CSSFontFaceRule.java
vendored
Normal file
28
java/external/src/org/w3c/dom/css/CSSFontFaceRule.java
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSFontFaceRule</code> interface represents a @font-face rule in
|
||||||
|
* a CSS style sheet. The <code>@font-face</code> rule is used to hold a set
|
||||||
|
* of font descriptions.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSFontFaceRule extends CSSRule {
|
||||||
|
/**
|
||||||
|
* The declaration-block of this rule.
|
||||||
|
*/
|
||||||
|
public CSSStyleDeclaration getStyle();
|
||||||
|
|
||||||
|
}
|
||||||
44
java/external/src/org/w3c/dom/css/CSSImportRule.java
vendored
Normal file
44
java/external/src/org/w3c/dom/css/CSSImportRule.java
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.stylesheets.MediaList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSImportRule</code> interface represents a @import rule within
|
||||||
|
* a CSS style sheet. The <code>@import</code> rule is used to import style
|
||||||
|
* rules from other style sheets.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSImportRule extends CSSRule {
|
||||||
|
/**
|
||||||
|
* The location of the style sheet to be imported. The attribute will not
|
||||||
|
* contain the <code>"url(...)"</code> specifier around the URI.
|
||||||
|
*/
|
||||||
|
public String getHref();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A list of media types for which this style sheet may be used.
|
||||||
|
*/
|
||||||
|
public MediaList getMedia();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The style sheet referred to by this rule, if it has been loaded. The
|
||||||
|
* value of this attribute is <code>null</code> if the style sheet has
|
||||||
|
* not yet been loaded or if it will not be loaded (e.g. if the style
|
||||||
|
* sheet is for a media type not supported by the user agent).
|
||||||
|
*/
|
||||||
|
public CSSStyleSheet getStyleSheet();
|
||||||
|
|
||||||
|
}
|
||||||
76
java/external/src/org/w3c/dom/css/CSSMediaRule.java
vendored
Normal file
76
java/external/src/org/w3c/dom/css/CSSMediaRule.java
vendored
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
import org.w3c.dom.stylesheets.MediaList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSMediaRule</code> interface represents a @media rule in a CSS
|
||||||
|
* style sheet. A <code>@media</code> rule can be used to delimit style
|
||||||
|
* rules for specific media types.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSMediaRule extends CSSRule {
|
||||||
|
/**
|
||||||
|
* A list of media types for this rule.
|
||||||
|
*/
|
||||||
|
public MediaList getMedia();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A list of all CSS rules contained within the media block.
|
||||||
|
*/
|
||||||
|
public CSSRuleList getCssRules();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to insert a new rule into the media block.
|
||||||
|
* @param rule The parsable text representing the rule. For rule sets
|
||||||
|
* this contains both the selector and the style declaration. For
|
||||||
|
* at-rules, this specifies both the at-identifier and the rule
|
||||||
|
* content.
|
||||||
|
* @param index The index within the media block's rule collection of the
|
||||||
|
* rule before which to insert the specified rule. If the specified
|
||||||
|
* index is equal to the length of the media blocks's rule collection,
|
||||||
|
* the rule will be added to the end of the media block.
|
||||||
|
* @return The index within the media block's rule collection of the
|
||||||
|
* newly inserted rule.
|
||||||
|
* @exception DOMException
|
||||||
|
* HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the
|
||||||
|
* specified index, e.g., if an <code>@import</code> rule is inserted
|
||||||
|
* after a standard rule set or other at-rule.
|
||||||
|
* <br>INDEX_SIZE_ERR: Raised if the specified index is not a valid
|
||||||
|
* insertion point.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is
|
||||||
|
* readonly.
|
||||||
|
* <br>SYNTAX_ERR: Raised if the specified rule has a syntax error and
|
||||||
|
* is unparsable.
|
||||||
|
*/
|
||||||
|
public int insertRule(String rule,
|
||||||
|
int index)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to delete a rule from the media block.
|
||||||
|
* @param index The index within the media block's rule collection of the
|
||||||
|
* rule to remove.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if the specified index does not correspond to
|
||||||
|
* a rule in the media rule list.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is
|
||||||
|
* readonly.
|
||||||
|
*/
|
||||||
|
public void deleteRule(int index)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
41
java/external/src/org/w3c/dom/css/CSSPageRule.java
vendored
Normal file
41
java/external/src/org/w3c/dom/css/CSSPageRule.java
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSPageRule</code> interface represents a @page rule within a
|
||||||
|
* CSS style sheet. The <code>@page</code> rule is used to specify the
|
||||||
|
* dimensions, orientation, margins, etc. of a page box for paged media.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSPageRule extends CSSRule {
|
||||||
|
/**
|
||||||
|
* The parsable textual representation of the page selector for the rule.
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||||
|
* error and is unparsable.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.
|
||||||
|
*/
|
||||||
|
public String getSelectorText();
|
||||||
|
public void setSelectorText(String selectorText)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The declaration-block of this rule.
|
||||||
|
*/
|
||||||
|
public CSSStyleDeclaration getStyle();
|
||||||
|
|
||||||
|
}
|
||||||
296
java/external/src/org/w3c/dom/css/CSSPrimitiveValue.java
vendored
Normal file
296
java/external/src/org/w3c/dom/css/CSSPrimitiveValue.java
vendored
Normal file
@ -0,0 +1,296 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSPrimitiveValue</code> interface represents a single CSS value
|
||||||
|
* . This interface may be used to determine the value of a specific style
|
||||||
|
* property currently set in a block or to set a specific style property
|
||||||
|
* explicitly within the block. An instance of this interface might be
|
||||||
|
* obtained from the <code>getPropertyCSSValue</code> method of the
|
||||||
|
* <code>CSSStyleDeclaration</code> interface. A
|
||||||
|
* <code>CSSPrimitiveValue</code> object only occurs in a context of a CSS
|
||||||
|
* property.
|
||||||
|
* <p> Conversions are allowed between absolute values (from millimeters to
|
||||||
|
* centimeters, from degrees to radians, and so on) but not between relative
|
||||||
|
* values. (For example, a pixel value cannot be converted to a centimeter
|
||||||
|
* value.) Percentage values can't be converted since they are relative to
|
||||||
|
* the parent value (or another property value). There is one exception for
|
||||||
|
* color percentage values: since a color percentage value is relative to
|
||||||
|
* the range 0-255, a color percentage value can be converted to a number;
|
||||||
|
* (see also the <code>RGBColor</code> interface).
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSPrimitiveValue extends CSSValue {
|
||||||
|
// UnitTypes
|
||||||
|
/**
|
||||||
|
* The value is not a recognized CSS2 value. The value can only be
|
||||||
|
* obtained by using the <code>cssText</code> attribute.
|
||||||
|
*/
|
||||||
|
public static final short CSS_UNKNOWN = 0;
|
||||||
|
/**
|
||||||
|
* The value is a simple number. The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_NUMBER = 1;
|
||||||
|
/**
|
||||||
|
* The value is a percentage. The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_PERCENTAGE = 2;
|
||||||
|
/**
|
||||||
|
* The value is a length (ems). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_EMS = 3;
|
||||||
|
/**
|
||||||
|
* The value is a length (exs). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_EXS = 4;
|
||||||
|
/**
|
||||||
|
* The value is a length (px). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_PX = 5;
|
||||||
|
/**
|
||||||
|
* The value is a length (cm). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_CM = 6;
|
||||||
|
/**
|
||||||
|
* The value is a length (mm). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_MM = 7;
|
||||||
|
/**
|
||||||
|
* The value is a length (in). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_IN = 8;
|
||||||
|
/**
|
||||||
|
* The value is a length (pt). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_PT = 9;
|
||||||
|
/**
|
||||||
|
* The value is a length (pc). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_PC = 10;
|
||||||
|
/**
|
||||||
|
* The value is an angle (deg). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_DEG = 11;
|
||||||
|
/**
|
||||||
|
* The value is an angle (rad). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_RAD = 12;
|
||||||
|
/**
|
||||||
|
* The value is an angle (grad). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_GRAD = 13;
|
||||||
|
/**
|
||||||
|
* The value is a time (ms). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_MS = 14;
|
||||||
|
/**
|
||||||
|
* The value is a time (s). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_S = 15;
|
||||||
|
/**
|
||||||
|
* The value is a frequency (Hz). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_HZ = 16;
|
||||||
|
/**
|
||||||
|
* The value is a frequency (kHz). The value can be obtained by using the
|
||||||
|
* <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_KHZ = 17;
|
||||||
|
/**
|
||||||
|
* The value is a number with an unknown dimension. The value can be
|
||||||
|
* obtained by using the <code>getFloatValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_DIMENSION = 18;
|
||||||
|
/**
|
||||||
|
* The value is a STRING. The value can be obtained by using the
|
||||||
|
* <code>getStringValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_STRING = 19;
|
||||||
|
/**
|
||||||
|
* The value is a URI. The value can be obtained by using the
|
||||||
|
* <code>getStringValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_URI = 20;
|
||||||
|
/**
|
||||||
|
* The value is an identifier. The value can be obtained by using the
|
||||||
|
* <code>getStringValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_IDENT = 21;
|
||||||
|
/**
|
||||||
|
* The value is a attribute function. The value can be obtained by using
|
||||||
|
* the <code>getStringValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_ATTR = 22;
|
||||||
|
/**
|
||||||
|
* The value is a counter or counters function. The value can be obtained
|
||||||
|
* by using the <code>getCounterValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_COUNTER = 23;
|
||||||
|
/**
|
||||||
|
* The value is a rect function. The value can be obtained by using the
|
||||||
|
* <code>getRectValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_RECT = 24;
|
||||||
|
/**
|
||||||
|
* The value is a RGB color. The value can be obtained by using the
|
||||||
|
* <code>getRGBColorValue</code> method.
|
||||||
|
*/
|
||||||
|
public static final short CSS_RGBCOLOR = 25;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of the value as defined by the constants specified above.
|
||||||
|
*/
|
||||||
|
public short getPrimitiveType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A method to set the float value with a specified unit. If the property
|
||||||
|
* attached with this value can not accept the specified unit or the
|
||||||
|
* float value, the value will be unchanged and a
|
||||||
|
* <code>DOMException</code> will be raised.
|
||||||
|
* @param unitType A unit code as defined above. The unit code can only
|
||||||
|
* be a float unit type (i.e. <code>CSS_NUMBER</code>,
|
||||||
|
* <code>CSS_PERCENTAGE</code>, <code>CSS_EMS</code>,
|
||||||
|
* <code>CSS_EXS</code>, <code>CSS_PX</code>, <code>CSS_CM</code>,
|
||||||
|
* <code>CSS_MM</code>, <code>CSS_IN</code>, <code>CSS_PT</code>,
|
||||||
|
* <code>CSS_PC</code>, <code>CSS_DEG</code>, <code>CSS_RAD</code>,
|
||||||
|
* <code>CSS_GRAD</code>, <code>CSS_MS</code>, <code>CSS_S</code>,
|
||||||
|
* <code>CSS_HZ</code>, <code>CSS_KHZ</code>,
|
||||||
|
* <code>CSS_DIMENSION</code>).
|
||||||
|
* @param floatValue The new float value.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_ACCESS_ERR: Raised if the attached property doesn't support
|
||||||
|
* the float value or the unit type.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
|
||||||
|
*/
|
||||||
|
public void setFloatValue(short unitType,
|
||||||
|
float floatValue)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method is used to get a float value in a specified unit. If this
|
||||||
|
* CSS value doesn't contain a float value or can't be converted into
|
||||||
|
* the specified unit, a <code>DOMException</code> is raised.
|
||||||
|
* @param unitType A unit code to get the float value. The unit code can
|
||||||
|
* only be a float unit type (i.e. <code>CSS_NUMBER</code>,
|
||||||
|
* <code>CSS_PERCENTAGE</code>, <code>CSS_EMS</code>,
|
||||||
|
* <code>CSS_EXS</code>, <code>CSS_PX</code>, <code>CSS_CM</code>,
|
||||||
|
* <code>CSS_MM</code>, <code>CSS_IN</code>, <code>CSS_PT</code>,
|
||||||
|
* <code>CSS_PC</code>, <code>CSS_DEG</code>, <code>CSS_RAD</code>,
|
||||||
|
* <code>CSS_GRAD</code>, <code>CSS_MS</code>, <code>CSS_S</code>,
|
||||||
|
* <code>CSS_HZ</code>, <code>CSS_KHZ</code>,
|
||||||
|
* <code>CSS_DIMENSION</code>).
|
||||||
|
* @return The float value in the specified unit.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a float
|
||||||
|
* value or if the float value can't be converted into the specified
|
||||||
|
* unit.
|
||||||
|
*/
|
||||||
|
public float getFloatValue(short unitType)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A method to set the string value with the specified unit. If the
|
||||||
|
* property attached to this value can't accept the specified unit or
|
||||||
|
* the string value, the value will be unchanged and a
|
||||||
|
* <code>DOMException</code> will be raised.
|
||||||
|
* @param stringType A string code as defined above. The string code can
|
||||||
|
* only be a string unit type (i.e. <code>CSS_STRING</code>,
|
||||||
|
* <code>CSS_URI</code>, <code>CSS_IDENT</code>, and
|
||||||
|
* <code>CSS_ATTR</code>).
|
||||||
|
* @param stringValue The new string value.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string
|
||||||
|
* value or if the string value can't be converted into the specified
|
||||||
|
* unit.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
|
||||||
|
*/
|
||||||
|
public void setStringValue(short stringType,
|
||||||
|
String stringValue)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method is used to get the string value. If the CSS value doesn't
|
||||||
|
* contain a string value, a <code>DOMException</code> is raised. Some
|
||||||
|
* properties (like 'font-family' or 'voice-family') convert a
|
||||||
|
* whitespace separated list of idents to a string.
|
||||||
|
* @return The string value in the current unit. The current
|
||||||
|
* <code>primitiveType</code> can only be a string unit type (i.e.
|
||||||
|
* <code>CSS_STRING</code>, <code>CSS_URI</code>,
|
||||||
|
* <code>CSS_IDENT</code> and <code>CSS_ATTR</code>).
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string
|
||||||
|
* value.
|
||||||
|
*/
|
||||||
|
public String getStringValue()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method is used to get the Counter value. If this CSS value
|
||||||
|
* doesn't contain a counter value, a <code>DOMException</code> is
|
||||||
|
* raised. Modification to the corresponding style property can be
|
||||||
|
* achieved using the <code>Counter</code> interface.
|
||||||
|
* @return The Counter value.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a
|
||||||
|
* Counter value (e.g. this is not <code>CSS_COUNTER</code>).
|
||||||
|
*/
|
||||||
|
public Counter getCounterValue()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method is used to get the Rect value. If this CSS value doesn't
|
||||||
|
* contain a rect value, a <code>DOMException</code> is raised.
|
||||||
|
* Modification to the corresponding style property can be achieved
|
||||||
|
* using the <code>Rect</code> interface.
|
||||||
|
* @return The Rect value.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect
|
||||||
|
* value. (e.g. this is not <code>CSS_RECT</code>).
|
||||||
|
*/
|
||||||
|
public Rect getRectValue()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method is used to get the RGB color. If this CSS value doesn't
|
||||||
|
* contain a RGB color value, a <code>DOMException</code> is raised.
|
||||||
|
* Modification to the corresponding style property can be achieved
|
||||||
|
* using the <code>RGBColor</code> interface.
|
||||||
|
* @return the RGB color value.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_ACCESS_ERR: Raised if the attached property can't return a
|
||||||
|
* RGB color value (e.g. this is not <code>CSS_RGBCOLOR</code>).
|
||||||
|
*/
|
||||||
|
public RGBColor getRGBColorValue()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
93
java/external/src/org/w3c/dom/css/CSSRule.java
vendored
Normal file
93
java/external/src/org/w3c/dom/css/CSSRule.java
vendored
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSRule</code> interface is the abstract base interface for any
|
||||||
|
* type of CSS statement. This includes both rule sets and at-rules. An
|
||||||
|
* implementation is expected to preserve all rules specified in a CSS style
|
||||||
|
* sheet, even if the rule is not recognized by the parser. Unrecognized
|
||||||
|
* rules are represented using the <code>CSSUnknownRule</code> interface.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSRule {
|
||||||
|
// RuleType
|
||||||
|
/**
|
||||||
|
* The rule is a <code>CSSUnknownRule</code>.
|
||||||
|
*/
|
||||||
|
public static final short UNKNOWN_RULE = 0;
|
||||||
|
/**
|
||||||
|
* The rule is a <code>CSSStyleRule</code>.
|
||||||
|
*/
|
||||||
|
public static final short STYLE_RULE = 1;
|
||||||
|
/**
|
||||||
|
* The rule is a <code>CSSCharsetRule</code>.
|
||||||
|
*/
|
||||||
|
public static final short CHARSET_RULE = 2;
|
||||||
|
/**
|
||||||
|
* The rule is a <code>CSSImportRule</code>.
|
||||||
|
*/
|
||||||
|
public static final short IMPORT_RULE = 3;
|
||||||
|
/**
|
||||||
|
* The rule is a <code>CSSMediaRule</code>.
|
||||||
|
*/
|
||||||
|
public static final short MEDIA_RULE = 4;
|
||||||
|
/**
|
||||||
|
* The rule is a <code>CSSFontFaceRule</code>.
|
||||||
|
*/
|
||||||
|
public static final short FONT_FACE_RULE = 5;
|
||||||
|
/**
|
||||||
|
* The rule is a <code>CSSPageRule</code>.
|
||||||
|
*/
|
||||||
|
public static final short PAGE_RULE = 6;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of the rule, as defined above. The expectation is that
|
||||||
|
* binding-specific casting methods can be used to cast down from an
|
||||||
|
* instance of the <code>CSSRule</code> interface to the specific
|
||||||
|
* derived interface implied by the <code>type</code>.
|
||||||
|
*/
|
||||||
|
public short getType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parsable textual representation of the rule. This reflects the
|
||||||
|
* current state of the rule and not its initial value.
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||||
|
* error and is unparsable.
|
||||||
|
* <br>INVALID_MODIFICATION_ERR: Raised if the specified CSS string
|
||||||
|
* value represents a different type of rule than the current one.
|
||||||
|
* <br>HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at
|
||||||
|
* this point in the style sheet.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if the rule is readonly.
|
||||||
|
*/
|
||||||
|
public String getCssText();
|
||||||
|
public void setCssText(String cssText)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The style sheet that contains this rule.
|
||||||
|
*/
|
||||||
|
public CSSStyleSheet getParentStyleSheet();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If this rule is contained inside another rule (e.g. a style rule
|
||||||
|
* inside an @media block), this is the containing rule. If this rule is
|
||||||
|
* not nested inside any other rules, this returns <code>null</code>.
|
||||||
|
*/
|
||||||
|
public CSSRule getParentRule();
|
||||||
|
|
||||||
|
}
|
||||||
43
java/external/src/org/w3c/dom/css/CSSRuleList.java
vendored
Normal file
43
java/external/src/org/w3c/dom/css/CSSRuleList.java
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSRuleList</code> interface provides the abstraction of an
|
||||||
|
* ordered collection of CSS rules.
|
||||||
|
* <p> The items in the <code>CSSRuleList</code> are accessible via an
|
||||||
|
* integral index, starting from 0.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSRuleList {
|
||||||
|
/**
|
||||||
|
* The number of <code>CSSRules</code> in the list. The range of valid
|
||||||
|
* child rule indices is <code>0</code> to <code>length-1</code>
|
||||||
|
* inclusive.
|
||||||
|
*/
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to retrieve a CSS rule by ordinal index. The order in this
|
||||||
|
* collection represents the order of the rules in the CSS style sheet.
|
||||||
|
* If index is greater than or equal to the number of rules in the list,
|
||||||
|
* this returns <code>null</code>.
|
||||||
|
* @param indexIndex into the collection
|
||||||
|
* @return The style rule at the <code>index</code> position in the
|
||||||
|
* <code>CSSRuleList</code>, or <code>null</code> if that is not a
|
||||||
|
* valid index.
|
||||||
|
*/
|
||||||
|
public CSSRule item(int index);
|
||||||
|
|
||||||
|
}
|
||||||
152
java/external/src/org/w3c/dom/css/CSSStyleDeclaration.java
vendored
Normal file
152
java/external/src/org/w3c/dom/css/CSSStyleDeclaration.java
vendored
Normal file
@ -0,0 +1,152 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSStyleDeclaration</code> interface represents a single CSS
|
||||||
|
* declaration block. This interface may be used to determine the style
|
||||||
|
* properties currently set in a block or to set style properties explicitly
|
||||||
|
* within the block.
|
||||||
|
* <p> While an implementation may not recognize all CSS properties within a
|
||||||
|
* CSS declaration block, it is expected to provide access to all specified
|
||||||
|
* properties in the style sheet through the <code>CSSStyleDeclaration</code>
|
||||||
|
* interface. Furthermore, implementations that support a specific level of
|
||||||
|
* CSS should correctly handle CSS shorthand properties for that level. For
|
||||||
|
* a further discussion of shorthand properties, see the
|
||||||
|
* <code>CSS2Properties</code> interface.
|
||||||
|
* <p> This interface is also used to provide a read-only access to the
|
||||||
|
* computed values of an element. See also the <code>ViewCSS</code>
|
||||||
|
* interface. The CSS Object Model doesn't provide an access to the
|
||||||
|
* specified or actual values of the CSS cascade.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSStyleDeclaration {
|
||||||
|
/**
|
||||||
|
* The parsable textual representation of the declaration block
|
||||||
|
* (excluding the surrounding curly braces). Setting this attribute will
|
||||||
|
* result in the parsing of the new value and resetting of all the
|
||||||
|
* properties in the declaration block including the removal or addition
|
||||||
|
* of properties.
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||||
|
* error and is unparsable.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
|
||||||
|
* readonly or a property is readonly.
|
||||||
|
*/
|
||||||
|
public String getCssText();
|
||||||
|
public void setCssText(String cssText)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to retrieve the value of a CSS property if it has been explicitly
|
||||||
|
* set within this declaration block.
|
||||||
|
* @param propertyName The name of the CSS property. See the CSS property
|
||||||
|
* index.
|
||||||
|
* @return Returns the value of the property if it has been explicitly
|
||||||
|
* set for this declaration block. Returns the empty string if the
|
||||||
|
* property has not been set.
|
||||||
|
*/
|
||||||
|
public String getPropertyValue(String propertyName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to retrieve the object representation of the value of a CSS
|
||||||
|
* property if it has been explicitly set within this declaration block.
|
||||||
|
* This method returns <code>null</code> if the property is a shorthand
|
||||||
|
* property. Shorthand property values can only be accessed and modified
|
||||||
|
* as strings, using the <code>getPropertyValue</code> and
|
||||||
|
* <code>setProperty</code> methods.
|
||||||
|
* @param propertyName The name of the CSS property. See the CSS property
|
||||||
|
* index.
|
||||||
|
* @return Returns the value of the property if it has been explicitly
|
||||||
|
* set for this declaration block. Returns <code>null</code> if the
|
||||||
|
* property has not been set.
|
||||||
|
*/
|
||||||
|
public CSSValue getPropertyCSSValue(String propertyName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to remove a CSS property if it has been explicitly set within
|
||||||
|
* this declaration block.
|
||||||
|
* @param propertyName The name of the CSS property. See the CSS property
|
||||||
|
* index.
|
||||||
|
* @return Returns the value of the property if it has been explicitly
|
||||||
|
* set for this declaration block. Returns the empty string if the
|
||||||
|
* property has not been set or the property name does not correspond
|
||||||
|
* to a known CSS property.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly
|
||||||
|
* or the property is readonly.
|
||||||
|
*/
|
||||||
|
public String removeProperty(String propertyName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to retrieve the priority of a CSS property (e.g. the
|
||||||
|
* <code>"important"</code> qualifier) if the property has been
|
||||||
|
* explicitly set in this declaration block.
|
||||||
|
* @param propertyName The name of the CSS property. See the CSS property
|
||||||
|
* index.
|
||||||
|
* @return A string representing the priority (e.g.
|
||||||
|
* <code>"important"</code>) if one exists. The empty string if none
|
||||||
|
* exists.
|
||||||
|
*/
|
||||||
|
public String getPropertyPriority(String propertyName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to set a property value and priority within this declaration
|
||||||
|
* block.
|
||||||
|
* @param propertyName The name of the CSS property. See the CSS property
|
||||||
|
* index.
|
||||||
|
* @param value The new value of the property.
|
||||||
|
* @param priority The new priority of the property (e.g.
|
||||||
|
* <code>"important"</code>).
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified value has a syntax error and is
|
||||||
|
* unparsable.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
|
||||||
|
* readonly or the property is readonly.
|
||||||
|
*/
|
||||||
|
public void setProperty(String propertyName,
|
||||||
|
String value,
|
||||||
|
String priority)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The number of properties that have been explicitly set in this
|
||||||
|
* declaration block. The range of valid indices is 0 to length-1
|
||||||
|
* inclusive.
|
||||||
|
*/
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to retrieve the properties that have been explicitly set in this
|
||||||
|
* declaration block. The order of the properties retrieved using this
|
||||||
|
* method does not have to be the order in which they were set. This
|
||||||
|
* method can be used to iterate over all properties in this declaration
|
||||||
|
* block.
|
||||||
|
* @param index Index of the property name to retrieve.
|
||||||
|
* @return The name of the property at this ordinal position. The empty
|
||||||
|
* string if no property exists at this position.
|
||||||
|
*/
|
||||||
|
public String item(int index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The CSS rule that contains this declaration block or <code>null</code>
|
||||||
|
* if this <code>CSSStyleDeclaration</code> is not attached to a
|
||||||
|
* <code>CSSRule</code>.
|
||||||
|
*/
|
||||||
|
public CSSRule getParentRule();
|
||||||
|
|
||||||
|
}
|
||||||
42
java/external/src/org/w3c/dom/css/CSSStyleRule.java
vendored
Normal file
42
java/external/src/org/w3c/dom/css/CSSStyleRule.java
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSStyleRule</code> interface represents a single rule set in a
|
||||||
|
* CSS style sheet.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSStyleRule extends CSSRule {
|
||||||
|
/**
|
||||||
|
* The textual representation of the selector for the rule set. The
|
||||||
|
* implementation may have stripped out insignificant whitespace while
|
||||||
|
* parsing the selector.
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||||
|
* error and is unparsable.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.
|
||||||
|
*/
|
||||||
|
public String getSelectorText();
|
||||||
|
public void setSelectorText(String selectorText)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The declaration-block of this rule set.
|
||||||
|
*/
|
||||||
|
public CSSStyleDeclaration getStyle();
|
||||||
|
|
||||||
|
}
|
||||||
85
java/external/src/org/w3c/dom/css/CSSStyleSheet.java
vendored
Normal file
85
java/external/src/org/w3c/dom/css/CSSStyleSheet.java
vendored
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
import org.w3c.dom.stylesheets.StyleSheet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSStyleSheet</code> interface is a concrete interface used to
|
||||||
|
* represent a CSS style sheet i.e., a style sheet whose content type is
|
||||||
|
* "text/css".
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSStyleSheet extends StyleSheet {
|
||||||
|
/**
|
||||||
|
* If this style sheet comes from an <code>@import</code> rule, the
|
||||||
|
* <code>ownerRule</code> attribute will contain the
|
||||||
|
* <code>CSSImportRule</code>. In that case, the <code>ownerNode</code>
|
||||||
|
* attribute in the <code>StyleSheet</code> interface will be
|
||||||
|
* <code>null</code>. If the style sheet comes from an element or a
|
||||||
|
* processing instruction, the <code>ownerRule</code> attribute will be
|
||||||
|
* <code>null</code> and the <code>ownerNode</code> attribute will
|
||||||
|
* contain the <code>Node</code>.
|
||||||
|
*/
|
||||||
|
public CSSRule getOwnerRule();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The list of all CSS rules contained within the style sheet. This
|
||||||
|
* includes both rule sets and at-rules.
|
||||||
|
*/
|
||||||
|
public CSSRuleList getCssRules();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to insert a new rule into the style sheet. The new rule now
|
||||||
|
* becomes part of the cascade.
|
||||||
|
* @param rule The parsable text representing the rule. For rule sets
|
||||||
|
* this contains both the selector and the style declaration. For
|
||||||
|
* at-rules, this specifies both the at-identifier and the rule
|
||||||
|
* content.
|
||||||
|
* @param index The index within the style sheet's rule list of the rule
|
||||||
|
* before which to insert the specified rule. If the specified index
|
||||||
|
* is equal to the length of the style sheet's rule collection, the
|
||||||
|
* rule will be added to the end of the style sheet.
|
||||||
|
* @return The index within the style sheet's rule collection of the
|
||||||
|
* newly inserted rule.
|
||||||
|
* @exception DOMException
|
||||||
|
* HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the
|
||||||
|
* specified index e.g. if an <code>@import</code> rule is inserted
|
||||||
|
* after a standard rule set or other at-rule.
|
||||||
|
* <br>INDEX_SIZE_ERR: Raised if the specified index is not a valid
|
||||||
|
* insertion point.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is
|
||||||
|
* readonly.
|
||||||
|
* <br>SYNTAX_ERR: Raised if the specified rule has a syntax error and
|
||||||
|
* is unparsable.
|
||||||
|
*/
|
||||||
|
public int insertRule(String rule,
|
||||||
|
int index)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to delete a rule from the style sheet.
|
||||||
|
* @param index The index within the style sheet's rule list of the rule
|
||||||
|
* to remove.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if the specified index does not correspond to
|
||||||
|
* a rule in the style sheet's rule list.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is
|
||||||
|
* readonly.
|
||||||
|
*/
|
||||||
|
public void deleteRule(int index)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
22
java/external/src/org/w3c/dom/css/CSSUnknownRule.java
vendored
Normal file
22
java/external/src/org/w3c/dom/css/CSSUnknownRule.java
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSUnknownRule</code> interface represents an at-rule not
|
||||||
|
* supported by this user agent.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSUnknownRule extends CSSRule {
|
||||||
|
}
|
||||||
68
java/external/src/org/w3c/dom/css/CSSValue.java
vendored
Normal file
68
java/external/src/org/w3c/dom/css/CSSValue.java
vendored
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSValue</code> interface represents a simple or a complex
|
||||||
|
* value. A <code>CSSValue</code> object only occurs in a context of a CSS
|
||||||
|
* property.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSValue {
|
||||||
|
// UnitTypes
|
||||||
|
/**
|
||||||
|
* The value is inherited and the <code>cssText</code> contains "inherit".
|
||||||
|
*/
|
||||||
|
public static final short CSS_INHERIT = 0;
|
||||||
|
/**
|
||||||
|
* The value is a primitive value and an instance of the
|
||||||
|
* <code>CSSPrimitiveValue</code> interface can be obtained by using
|
||||||
|
* binding-specific casting methods on this instance of the
|
||||||
|
* <code>CSSValue</code> interface.
|
||||||
|
*/
|
||||||
|
public static final short CSS_PRIMITIVE_VALUE = 1;
|
||||||
|
/**
|
||||||
|
* The value is a <code>CSSValue</code> list and an instance of the
|
||||||
|
* <code>CSSValueList</code> interface can be obtained by using
|
||||||
|
* binding-specific casting methods on this instance of the
|
||||||
|
* <code>CSSValue</code> interface.
|
||||||
|
*/
|
||||||
|
public static final short CSS_VALUE_LIST = 2;
|
||||||
|
/**
|
||||||
|
* The value is a custom value.
|
||||||
|
*/
|
||||||
|
public static final short CSS_CUSTOM = 3;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A string representation of the current value.
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
||||||
|
* error (according to the attached property) or is unparsable.
|
||||||
|
* <br>INVALID_MODIFICATION_ERR: Raised if the specified CSS string
|
||||||
|
* value represents a different type of values than the values allowed
|
||||||
|
* by the CSS property.
|
||||||
|
* <br> NO_MODIFICATION_ALLOWED_ERR: Raised if this value is readonly.
|
||||||
|
*/
|
||||||
|
public String getCssText();
|
||||||
|
public void setCssText(String cssText)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A code defining the type of the value as defined above.
|
||||||
|
*/
|
||||||
|
public short getCssValueType();
|
||||||
|
|
||||||
|
}
|
||||||
46
java/external/src/org/w3c/dom/css/CSSValueList.java
vendored
Normal file
46
java/external/src/org/w3c/dom/css/CSSValueList.java
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>CSSValueList</code> interface provides the abstraction of an
|
||||||
|
* ordered collection of CSS values.
|
||||||
|
* <p> Some properties allow an empty list into their syntax. In that case,
|
||||||
|
* these properties take the <code>none</code> identifier. So, an empty list
|
||||||
|
* means that the property has the value <code>none</code>.
|
||||||
|
* <p> The items in the <code>CSSValueList</code> are accessible via an
|
||||||
|
* integral index, starting from 0.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface CSSValueList extends CSSValue {
|
||||||
|
/**
|
||||||
|
* The number of <code>CSSValues</code> in the list. The range of valid
|
||||||
|
* values of the indices is <code>0</code> to <code>length-1</code>
|
||||||
|
* inclusive.
|
||||||
|
*/
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to retrieve a <code>CSSValue</code> by ordinal index. The order in
|
||||||
|
* this collection represents the order of the values in the CSS style
|
||||||
|
* property. If index is greater than or equal to the number of values
|
||||||
|
* in the list, this returns <code>null</code>.
|
||||||
|
* @param indexIndex into the collection.
|
||||||
|
* @return The <code>CSSValue</code> at the <code>index</code> position
|
||||||
|
* in the <code>CSSValueList</code>, or <code>null</code> if that is
|
||||||
|
* not a valid index.
|
||||||
|
*/
|
||||||
|
public CSSValue item(int index);
|
||||||
|
|
||||||
|
}
|
||||||
38
java/external/src/org/w3c/dom/css/Counter.java
vendored
Normal file
38
java/external/src/org/w3c/dom/css/Counter.java
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Counter</code> interface is used to represent any counter or
|
||||||
|
* counters function value. This interface reflects the values in the
|
||||||
|
* underlying style property.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface Counter {
|
||||||
|
/**
|
||||||
|
* This attribute is used for the identifier of the counter.
|
||||||
|
*/
|
||||||
|
public String getIdentifier();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute is used for the style of the list.
|
||||||
|
*/
|
||||||
|
public String getListStyle();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute is used for the separator of the nested counters.
|
||||||
|
*/
|
||||||
|
public String getSeparator();
|
||||||
|
|
||||||
|
}
|
||||||
40
java/external/src/org/w3c/dom/css/DOMImplementationCSS.java
vendored
Normal file
40
java/external/src/org/w3c/dom/css/DOMImplementationCSS.java
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMImplementation;
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface allows the DOM user to create a <code>CSSStyleSheet</code>
|
||||||
|
* outside the context of a document. There is no way to associate the new
|
||||||
|
* <code>CSSStyleSheet</code> with a document in DOM Level 2.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface DOMImplementationCSS extends DOMImplementation {
|
||||||
|
/**
|
||||||
|
* Creates a new <code>CSSStyleSheet</code>.
|
||||||
|
* @param title The advisory title. See also the section.
|
||||||
|
* @param media The comma-separated list of media associated with the new
|
||||||
|
* style sheet. See also the section.
|
||||||
|
* @return A new CSS style sheet.
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified media string value has a syntax
|
||||||
|
* error and is unparsable.
|
||||||
|
*/
|
||||||
|
public CSSStyleSheet createCSSStyleSheet(String title,
|
||||||
|
String media)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
50
java/external/src/org/w3c/dom/css/DocumentCSS.java
vendored
Normal file
50
java/external/src/org/w3c/dom/css/DocumentCSS.java
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.stylesheets.DocumentStyle;
|
||||||
|
import org.w3c.dom.Element;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface represents a document with a CSS view.
|
||||||
|
* <p> The <code>getOverrideStyle</code> method provides a mechanism through
|
||||||
|
* which a DOM author could effect immediate change to the style of an
|
||||||
|
* element without modifying the explicitly linked style sheets of a
|
||||||
|
* document or the inline style of elements in the style sheets. This style
|
||||||
|
* sheet comes after the author style sheet in the cascade algorithm and is
|
||||||
|
* called override style sheet. The override style sheet takes precedence
|
||||||
|
* over author style sheets. An "!important" declaration still takes
|
||||||
|
* precedence over a normal declaration. Override, author, and user style
|
||||||
|
* sheets all may contain "!important" declarations. User "!important" rules
|
||||||
|
* take precedence over both override and author "!important" rules, and
|
||||||
|
* override "!important" rules take precedence over author "!important"
|
||||||
|
* rules.
|
||||||
|
* <p> The expectation is that an instance of the <code>DocumentCSS</code>
|
||||||
|
* interface can be obtained by using binding-specific casting methods on an
|
||||||
|
* instance of the <code>Document</code> interface.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface DocumentCSS extends DocumentStyle {
|
||||||
|
/**
|
||||||
|
* This method is used to retrieve the override style declaration for a
|
||||||
|
* specified element and a specified pseudo-element.
|
||||||
|
* @param elt The element whose style is to be modified. This parameter
|
||||||
|
* cannot be null.
|
||||||
|
* @param pseudoElt The pseudo-element or <code>null</code> if none.
|
||||||
|
* @return The override style declaration.
|
||||||
|
*/
|
||||||
|
public CSSStyleDeclaration getOverrideStyle(Element elt,
|
||||||
|
String pseudoElt);
|
||||||
|
|
||||||
|
}
|
||||||
32
java/external/src/org/w3c/dom/css/ElementCSSInlineStyle.java
vendored
Normal file
32
java/external/src/org/w3c/dom/css/ElementCSSInlineStyle.java
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inline style information attached to elements is exposed through the
|
||||||
|
* <code>style</code> attribute. This represents the contents of the STYLE
|
||||||
|
* attribute for HTML elements (or elements in other schemas or DTDs which
|
||||||
|
* use the STYLE attribute in the same way). The expectation is that an
|
||||||
|
* instance of the ElementCSSInlineStyle interface can be obtained by using
|
||||||
|
* binding-specific casting methods on an instance of the Element interface
|
||||||
|
* when the element supports inline CSS style informations.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface ElementCSSInlineStyle {
|
||||||
|
/**
|
||||||
|
* The style attribute.
|
||||||
|
*/
|
||||||
|
public CSSStyleDeclaration getStyle();
|
||||||
|
|
||||||
|
}
|
||||||
47
java/external/src/org/w3c/dom/css/RGBColor.java
vendored
Normal file
47
java/external/src/org/w3c/dom/css/RGBColor.java
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>RGBColor</code> interface is used to represent any RGB color
|
||||||
|
* value. This interface reflects the values in the underlying style
|
||||||
|
* property. Hence, modifications made to the <code>CSSPrimitiveValue</code>
|
||||||
|
* objects modify the style property.
|
||||||
|
* <p> A specified RGB color is not clipped (even if the number is outside the
|
||||||
|
* range 0-255 or 0%-100%). A computed RGB color is clipped depending on the
|
||||||
|
* device.
|
||||||
|
* <p> Even if a style sheet can only contain an integer for a color value,
|
||||||
|
* the internal storage of this integer is a float, and this can be used as
|
||||||
|
* a float in the specified or the computed style.
|
||||||
|
* <p> A color percentage value can always be converted to a number and vice
|
||||||
|
* versa.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface RGBColor {
|
||||||
|
/**
|
||||||
|
* This attribute is used for the red value of the RGB color.
|
||||||
|
*/
|
||||||
|
public CSSPrimitiveValue getRed();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute is used for the green value of the RGB color.
|
||||||
|
*/
|
||||||
|
public CSSPrimitiveValue getGreen();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute is used for the blue value of the RGB color.
|
||||||
|
*/
|
||||||
|
public CSSPrimitiveValue getBlue();
|
||||||
|
|
||||||
|
}
|
||||||
44
java/external/src/org/w3c/dom/css/Rect.java
vendored
Normal file
44
java/external/src/org/w3c/dom/css/Rect.java
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Rect</code> interface is used to represent any rect value. This
|
||||||
|
* interface reflects the values in the underlying style property. Hence,
|
||||||
|
* modifications made to the <code>CSSPrimitiveValue</code> objects modify
|
||||||
|
* the style property.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface Rect {
|
||||||
|
/**
|
||||||
|
* This attribute is used for the top of the rect.
|
||||||
|
*/
|
||||||
|
public CSSPrimitiveValue getTop();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute is used for the right of the rect.
|
||||||
|
*/
|
||||||
|
public CSSPrimitiveValue getRight();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute is used for the bottom of the rect.
|
||||||
|
*/
|
||||||
|
public CSSPrimitiveValue getBottom();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute is used for the left of the rect.
|
||||||
|
*/
|
||||||
|
public CSSPrimitiveValue getLeft();
|
||||||
|
|
||||||
|
}
|
||||||
43
java/external/src/org/w3c/dom/css/ViewCSS.java
vendored
Normal file
43
java/external/src/org/w3c/dom/css/ViewCSS.java
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.css;
|
||||||
|
|
||||||
|
import org.w3c.dom.views.AbstractView;
|
||||||
|
import org.w3c.dom.Element;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface represents a CSS view. The <code>getComputedStyle</code>
|
||||||
|
* method provides a read only access to the computed values of an element.
|
||||||
|
* <p> The expectation is that an instance of the <code>ViewCSS</code>
|
||||||
|
* interface can be obtained by using binding-specific casting methods on an
|
||||||
|
* instance of the <code>AbstractView</code> interface.
|
||||||
|
* <p> Since a computed style is related to an <code>Element</code> node, if
|
||||||
|
* this element is removed from the document, the associated
|
||||||
|
* <code>CSSStyleDeclaration</code> and <code>CSSValue</code> related to
|
||||||
|
* this declaration are no longer valid.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface ViewCSS extends AbstractView {
|
||||||
|
/**
|
||||||
|
* This method is used to get the computed style as it is defined in .
|
||||||
|
* @param elt The element whose style is to be computed. This parameter
|
||||||
|
* cannot be null.
|
||||||
|
* @param pseudoElt The pseudo-element or <code>null</code> if none.
|
||||||
|
* @return The computed style. The <code>CSSStyleDeclaration</code> is
|
||||||
|
* read-only and contains only absolute values.
|
||||||
|
*/
|
||||||
|
public CSSStyleDeclaration getComputedStyle(Element elt,
|
||||||
|
String pseudoElt);
|
||||||
|
|
||||||
|
}
|
||||||
56
java/external/src/org/w3c/dom/events/DocumentEvent.java
vendored
Normal file
56
java/external/src/org/w3c/dom/events/DocumentEvent.java
vendored
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>DocumentEvent</code> interface provides a mechanism by which the
|
||||||
|
* user can create an Event of a type supported by the implementation. It is
|
||||||
|
* expected that the <code>DocumentEvent</code> interface will be
|
||||||
|
* implemented on the same object which implements the <code>Document</code>
|
||||||
|
* interface in an implementation which supports the Event model.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface DocumentEvent {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param eventTypeThe <code>eventType</code> parameter specifies the
|
||||||
|
* type of <code>Event</code> interface to be created. If the
|
||||||
|
* <code>Event</code> interface specified is supported by the
|
||||||
|
* implementation this method will return a new <code>Event</code> of
|
||||||
|
* the interface type requested. If the <code>Event</code> is to be
|
||||||
|
* dispatched via the <code>dispatchEvent</code> method the
|
||||||
|
* appropriate event init method must be called after creation in
|
||||||
|
* order to initialize the <code>Event</code>'s values. As an example,
|
||||||
|
* a user wishing to synthesize some kind of <code>UIEvent</code>
|
||||||
|
* would call <code>createEvent</code> with the parameter "UIEvents".
|
||||||
|
* The <code>initUIEvent</code> method could then be called on the
|
||||||
|
* newly created <code>UIEvent</code> to set the specific type of
|
||||||
|
* UIEvent to be dispatched and set its context information.The
|
||||||
|
* <code>createEvent</code> method is used in creating
|
||||||
|
* <code>Event</code>s when it is either inconvenient or unnecessary
|
||||||
|
* for the user to create an <code>Event</code> themselves. In cases
|
||||||
|
* where the implementation provided <code>Event</code> is
|
||||||
|
* insufficient, users may supply their own <code>Event</code>
|
||||||
|
* implementations for use with the <code>dispatchEvent</code> method.
|
||||||
|
* @return The newly created <code>Event</code>
|
||||||
|
* @exception DOMException
|
||||||
|
* NOT_SUPPORTED_ERR: Raised if the implementation does not support the
|
||||||
|
* type of <code>Event</code> interface requested
|
||||||
|
*/
|
||||||
|
public Event createEvent(String eventType)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
141
java/external/src/org/w3c/dom/events/Event.java
vendored
Normal file
141
java/external/src/org/w3c/dom/events/Event.java
vendored
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>Event</code> interface is used to provide contextual information
|
||||||
|
* about an event to the handler processing the event. An object which
|
||||||
|
* implements the <code>Event</code> interface is generally passed as the
|
||||||
|
* first parameter to an event handler. More specific context information is
|
||||||
|
* passed to event handlers by deriving additional interfaces from
|
||||||
|
* <code>Event</code> which contain information directly relating to the
|
||||||
|
* type of event they accompany. These derived interfaces are also
|
||||||
|
* implemented by the object passed to the event listener.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface Event {
|
||||||
|
// PhaseType
|
||||||
|
/**
|
||||||
|
* The current event phase is the capturing phase.
|
||||||
|
*/
|
||||||
|
public static final short CAPTURING_PHASE = 1;
|
||||||
|
/**
|
||||||
|
* The event is currently being evaluated at the target
|
||||||
|
* <code>EventTarget</code>.
|
||||||
|
*/
|
||||||
|
public static final short AT_TARGET = 2;
|
||||||
|
/**
|
||||||
|
* The current event phase is the bubbling phase.
|
||||||
|
*/
|
||||||
|
public static final short BUBBLING_PHASE = 3;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name of the event (case-insensitive). The name must be an XML name.
|
||||||
|
*/
|
||||||
|
public String getType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate the <code>EventTarget</code> to which the event was
|
||||||
|
* originally dispatched.
|
||||||
|
*/
|
||||||
|
public EventTarget getTarget();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate the <code>EventTarget</code> whose
|
||||||
|
* <code>EventListeners</code> are currently being processed. This is
|
||||||
|
* particularly useful during capturing and bubbling.
|
||||||
|
*/
|
||||||
|
public EventTarget getCurrentTarget();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate which phase of event flow is currently being
|
||||||
|
* evaluated.
|
||||||
|
*/
|
||||||
|
public short getEventPhase();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate whether or not an event is a bubbling event. If the
|
||||||
|
* event can bubble the value is true, else the value is false.
|
||||||
|
*/
|
||||||
|
public boolean getBubbles();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate whether or not an event can have its default action
|
||||||
|
* prevented. If the default action can be prevented the value is true,
|
||||||
|
* else the value is false.
|
||||||
|
*/
|
||||||
|
public boolean getCancelable();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to specify the time (in milliseconds relative to the epoch) at
|
||||||
|
* which the event was created. Due to the fact that some systems may
|
||||||
|
* not provide this information the value of <code>timeStamp</code> may
|
||||||
|
* be not available for all events. When not available, a value of 0
|
||||||
|
* will be returned. Examples of epoch time are the time of the system
|
||||||
|
* start or 0:0:0 UTC 1st January 1970.
|
||||||
|
*/
|
||||||
|
public long getTimeStamp();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>stopPropagation</code> method is used prevent further
|
||||||
|
* propagation of an event during event flow. If this method is called
|
||||||
|
* by any <code>EventListener</code> the event will cease propagating
|
||||||
|
* through the tree. The event will complete dispatch to all listeners
|
||||||
|
* on the current <code>EventTarget</code> before event flow stops. This
|
||||||
|
* method may be used during any stage of event flow.
|
||||||
|
*/
|
||||||
|
public void stopPropagation();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If an event is cancelable, the <code>preventDefault</code> method is
|
||||||
|
* used to signify that the event is to be canceled, meaning any default
|
||||||
|
* action normally taken by the implementation as a result of the event
|
||||||
|
* will not occur. If, during any stage of event flow, the
|
||||||
|
* <code>preventDefault</code> method is called the event is canceled.
|
||||||
|
* Any default action associated with the event will not occur. Calling
|
||||||
|
* this method for a non-cancelable event has no effect. Once
|
||||||
|
* <code>preventDefault</code> has been called it will remain in effect
|
||||||
|
* throughout the remainder of the event's propagation. This method may
|
||||||
|
* be used during any stage of event flow.
|
||||||
|
*/
|
||||||
|
public void preventDefault();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>initEvent</code> method is used to initialize the value of an
|
||||||
|
* <code>Event</code> created through the <code>DocumentEvent</code>
|
||||||
|
* interface. This method may only be called before the
|
||||||
|
* <code>Event</code> has been dispatched via the
|
||||||
|
* <code>dispatchEvent</code> method, though it may be called multiple
|
||||||
|
* times during that phase if necessary. If called multiple times the
|
||||||
|
* final invocation takes precedence. If called from a subclass of
|
||||||
|
* <code>Event</code> interface only the values specified in the
|
||||||
|
* <code>initEvent</code> method are modified, all other attributes are
|
||||||
|
* left unchanged.
|
||||||
|
* @param eventTypeArgSpecifies the event type. This type may be any
|
||||||
|
* event type currently defined in this specification or a new event
|
||||||
|
* type.. The string must be an XML name. Any new event type must not
|
||||||
|
* begin with any upper, lower, or mixed case version of the string
|
||||||
|
* "DOM". This prefix is reserved for future DOM event sets. It is
|
||||||
|
* also strongly recommended that third parties adding their own
|
||||||
|
* events use their own prefix to avoid confusion and lessen the
|
||||||
|
* probability of conflicts with other new events.
|
||||||
|
* @param canBubbleArgSpecifies whether or not the event can bubble.
|
||||||
|
* @param cancelableArgSpecifies whether or not the event's default
|
||||||
|
* action can be prevented.
|
||||||
|
*/
|
||||||
|
public void initEvent(String eventTypeArg,
|
||||||
|
boolean canBubbleArg,
|
||||||
|
boolean cancelableArg);
|
||||||
|
|
||||||
|
}
|
||||||
36
java/external/src/org/w3c/dom/events/EventException.java
vendored
Normal file
36
java/external/src/org/w3c/dom/events/EventException.java
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event operations may throw an <code>EventException</code> as specified in
|
||||||
|
* their method descriptions.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public class EventException extends RuntimeException {
|
||||||
|
public EventException(short code, String message) {
|
||||||
|
super(message);
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
public short code;
|
||||||
|
// EventExceptionCode
|
||||||
|
/**
|
||||||
|
* If the <code>Event</code>'s type was not specified by initializing the
|
||||||
|
* event before the method was called. Specification of the Event's type
|
||||||
|
* as <code>null</code> or an empty string will also trigger this
|
||||||
|
* exception.
|
||||||
|
*/
|
||||||
|
public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0;
|
||||||
|
|
||||||
|
}
|
||||||
41
java/external/src/org/w3c/dom/events/EventListener.java
vendored
Normal file
41
java/external/src/org/w3c/dom/events/EventListener.java
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>EventListener</code> interface is the primary method for
|
||||||
|
* handling events. Users implement the <code>EventListener</code> interface
|
||||||
|
* and register their listener on an <code>EventTarget</code> using the
|
||||||
|
* <code>AddEventListener</code> method. The users should also remove their
|
||||||
|
* <code>EventListener</code> from its <code>EventTarget</code> after they
|
||||||
|
* have completed using the listener.
|
||||||
|
* <p> When a <code>Node</code> is copied using the <code>cloneNode</code>
|
||||||
|
* method the <code>EventListener</code>s attached to the source
|
||||||
|
* <code>Node</code> are not attached to the copied <code>Node</code>. If
|
||||||
|
* the user wishes the same <code>EventListener</code>s to be added to the
|
||||||
|
* newly created copy the user must add them manually.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface EventListener {
|
||||||
|
/**
|
||||||
|
* This method is called whenever an event occurs of the type for which
|
||||||
|
* the <code> EventListener</code> interface was registered.
|
||||||
|
* @param evt The <code>Event</code> contains contextual information
|
||||||
|
* about the event. It also contains the <code>stopPropagation</code>
|
||||||
|
* and <code>preventDefault</code> methods which are used in
|
||||||
|
* determining the event's flow and default action.
|
||||||
|
*/
|
||||||
|
public void handleEvent(Event evt);
|
||||||
|
|
||||||
|
}
|
||||||
102
java/external/src/org/w3c/dom/events/EventTarget.java
vendored
Normal file
102
java/external/src/org/w3c/dom/events/EventTarget.java
vendored
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>EventTarget</code> interface is implemented by all
|
||||||
|
* <code>Nodes</code> in an implementation which supports the DOM Event
|
||||||
|
* Model. Therefore, this interface can be obtained by using
|
||||||
|
* binding-specific casting methods on an instance of the <code>Node</code>
|
||||||
|
* interface. The interface allows registration and removal of
|
||||||
|
* <code>EventListeners</code> on an <code>EventTarget</code> and dispatch
|
||||||
|
* of events to that <code>EventTarget</code>.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface EventTarget {
|
||||||
|
/**
|
||||||
|
* This method allows the registration of event listeners on the event
|
||||||
|
* target. If an <code>EventListener</code> is added to an
|
||||||
|
* <code>EventTarget</code> while it is processing an event, it will not
|
||||||
|
* be triggered by the current actions but may be triggered during a
|
||||||
|
* later stage of event flow, such as the bubbling phase.
|
||||||
|
* <br> If multiple identical <code>EventListener</code>s are registered
|
||||||
|
* on the same <code>EventTarget</code> with the same parameters the
|
||||||
|
* duplicate instances are discarded. They do not cause the
|
||||||
|
* <code>EventListener</code> to be called twice and since they are
|
||||||
|
* discarded they do not need to be removed with the
|
||||||
|
* <code>removeEventListener</code> method.
|
||||||
|
* @param typeThe event type for which the user is registering
|
||||||
|
* @param listenerThe <code>listener</code> parameter takes an interface
|
||||||
|
* implemented by the user which contains the methods to be called
|
||||||
|
* when the event occurs.
|
||||||
|
* @param useCaptureIf true, <code>useCapture</code> indicates that the
|
||||||
|
* user wishes to initiate capture. After initiating capture, all
|
||||||
|
* events of the specified type will be dispatched to the registered
|
||||||
|
* <code>EventListener</code> before being dispatched to any
|
||||||
|
* <code>EventTargets</code> beneath them in the tree. Events which
|
||||||
|
* are bubbling upward through the tree will not trigger an
|
||||||
|
* <code>EventListener</code> designated to use capture.
|
||||||
|
*/
|
||||||
|
public void addEventListener(String type,
|
||||||
|
EventListener listener,
|
||||||
|
boolean useCapture);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method allows the removal of event listeners from the event
|
||||||
|
* target. If an <code>EventListener</code> is removed from an
|
||||||
|
* <code>EventTarget</code> while it is processing an event, it will not
|
||||||
|
* be triggered by the current actions. <code>EventListener</code>s can
|
||||||
|
* never be invoked after being removed.
|
||||||
|
* <br>Calling <code>removeEventListener</code> with arguments which do
|
||||||
|
* not identify any currently registered <code>EventListener</code> on
|
||||||
|
* the <code>EventTarget</code> has no effect.
|
||||||
|
* @param typeSpecifies the event type of the <code>EventListener</code>
|
||||||
|
* being removed.
|
||||||
|
* @param listenerThe <code>EventListener</code> parameter indicates the
|
||||||
|
* <code>EventListener </code> to be removed.
|
||||||
|
* @param useCaptureSpecifies whether the <code>EventListener</code>
|
||||||
|
* being removed was registered as a capturing listener or not. If a
|
||||||
|
* listener was registered twice, one with capture and one without,
|
||||||
|
* each must be removed separately. Removal of a capturing listener
|
||||||
|
* does not affect a non-capturing version of the same listener, and
|
||||||
|
* vice versa.
|
||||||
|
*/
|
||||||
|
public void removeEventListener(String type,
|
||||||
|
EventListener listener,
|
||||||
|
boolean useCapture);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method allows the dispatch of events into the implementations
|
||||||
|
* event model. Events dispatched in this manner will have the same
|
||||||
|
* capturing and bubbling behavior as events dispatched directly by the
|
||||||
|
* implementation. The target of the event is the
|
||||||
|
* <code> EventTarget</code> on which <code>dispatchEvent</code> is
|
||||||
|
* called.
|
||||||
|
* @param evtSpecifies the event type, behavior, and contextual
|
||||||
|
* information to be used in processing the event.
|
||||||
|
* @return The return value of <code>dispatchEvent</code> indicates
|
||||||
|
* whether any of the listeners which handled the event called
|
||||||
|
* <code>preventDefault</code>. If <code>preventDefault</code> was
|
||||||
|
* called the value is false, else the value is true.
|
||||||
|
* @exception EventException
|
||||||
|
* UNSPECIFIED_EVENT_TYPE_ERR: Raised if the <code>Event</code>'s type
|
||||||
|
* was not specified by initializing the event before
|
||||||
|
* <code>dispatchEvent</code> was called. Specification of the
|
||||||
|
* <code>Event</code>'s type as <code>null</code> or an empty string
|
||||||
|
* will also trigger this exception.
|
||||||
|
*/
|
||||||
|
public boolean dispatchEvent(Event evt)
|
||||||
|
throws EventException;
|
||||||
|
|
||||||
|
}
|
||||||
152
java/external/src/org/w3c/dom/events/MouseEvent.java
vendored
Normal file
152
java/external/src/org/w3c/dom/events/MouseEvent.java
vendored
Normal file
@ -0,0 +1,152 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
import org.w3c.dom.views.AbstractView;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>MouseEvent</code> interface provides specific contextual
|
||||||
|
* information associated with Mouse events.
|
||||||
|
* <p>The <code>detail</code> attribute inherited from <code>UIEvent</code>
|
||||||
|
* indicates the number of times a mouse button has been pressed and
|
||||||
|
* released over the same screen location during a user action. The
|
||||||
|
* attribute value is 1 when the user begins this action and increments by 1
|
||||||
|
* for each full sequence of pressing and releasing. If the user moves the
|
||||||
|
* mouse between the mousedown and mouseup the value will be set to 0,
|
||||||
|
* indicating that no click is occurring.
|
||||||
|
* <p>In the case of nested elements mouse events are always targeted at the
|
||||||
|
* most deeply nested element. Ancestors of the targeted element may use
|
||||||
|
* bubbling to obtain notification of mouse events which occur within its
|
||||||
|
* descendent elements.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface MouseEvent extends UIEvent {
|
||||||
|
/**
|
||||||
|
* The horizontal coordinate at which the event occurred relative to the
|
||||||
|
* origin of the screen coordinate system.
|
||||||
|
*/
|
||||||
|
public int getScreenX();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The vertical coordinate at which the event occurred relative to the
|
||||||
|
* origin of the screen coordinate system.
|
||||||
|
*/
|
||||||
|
public int getScreenY();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The horizontal coordinate at which the event occurred relative to the
|
||||||
|
* DOM implementation's client area.
|
||||||
|
*/
|
||||||
|
public int getClientX();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The vertical coordinate at which the event occurred relative to the DOM
|
||||||
|
* implementation's client area.
|
||||||
|
*/
|
||||||
|
public int getClientY();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate whether the 'ctrl' key was depressed during the firing
|
||||||
|
* of the event.
|
||||||
|
*/
|
||||||
|
public boolean getCtrlKey();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate whether the 'shift' key was depressed during the
|
||||||
|
* firing of the event.
|
||||||
|
*/
|
||||||
|
public boolean getShiftKey();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate whether the 'alt' key was depressed during the firing
|
||||||
|
* of the event. On some platforms this key may map to an alternative
|
||||||
|
* key name.
|
||||||
|
*/
|
||||||
|
public boolean getAltKey();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to indicate whether the 'meta' key was depressed during the firing
|
||||||
|
* of the event. On some platforms this key may map to an alternative
|
||||||
|
* key name.
|
||||||
|
*/
|
||||||
|
public boolean getMetaKey();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* During mouse events caused by the depression or release of a mouse
|
||||||
|
* button, <code>button</code> is used to indicate which mouse button
|
||||||
|
* changed state. The values for <code>button</code> range from zero to
|
||||||
|
* indicate the left button of the mouse, one to indicate the middle
|
||||||
|
* button if present, and two to indicate the right button. For mice
|
||||||
|
* configured for left handed use in which the button actions are
|
||||||
|
* reversed the values are instead read from right to left.
|
||||||
|
*/
|
||||||
|
public short getButton();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to identify a secondary <code>EventTarget</code> related to a UI
|
||||||
|
* event. Currently this attribute is used with the mouseover event to
|
||||||
|
* indicate the <code>EventTarget</code> which the pointing device
|
||||||
|
* exited and with the mouseout event to indicate the
|
||||||
|
* <code>EventTarget</code> which the pointing device entered.
|
||||||
|
*/
|
||||||
|
public EventTarget getRelatedTarget();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>initMouseEvent</code> method is used to initialize the value
|
||||||
|
* of a <code>MouseEvent</code> created through the
|
||||||
|
* <code>DocumentEvent</code> interface. This method may only be called
|
||||||
|
* before the <code>MouseEvent</code> has been dispatched via the
|
||||||
|
* <code>dispatchEvent</code> method, though it may be called multiple
|
||||||
|
* times during that phase if necessary. If called multiple times, the
|
||||||
|
* final invocation takes precedence.
|
||||||
|
* @param typeArgSpecifies the event type.
|
||||||
|
* @param canBubbleArgSpecifies whether or not the event can bubble.
|
||||||
|
* @param cancelableArgSpecifies whether or not the event's default
|
||||||
|
* action can be prevented.
|
||||||
|
* @param viewArgSpecifies the <code>Event</code>'s
|
||||||
|
* <code>AbstractView</code>.
|
||||||
|
* @param detailArgSpecifies the <code>Event</code>'s mouse click count.
|
||||||
|
* @param screenXArgSpecifies the <code>Event</code>'s screen x coordinate
|
||||||
|
* @param screenYArgSpecifies the <code>Event</code>'s screen y coordinate
|
||||||
|
* @param clientXArgSpecifies the <code>Event</code>'s client x coordinate
|
||||||
|
* @param clientYArgSpecifies the <code>Event</code>'s client y coordinate
|
||||||
|
* @param ctrlKeyArgSpecifies whether or not control key was depressed
|
||||||
|
* during the <code>Event</code>.
|
||||||
|
* @param altKeyArgSpecifies whether or not alt key was depressed during
|
||||||
|
* the <code>Event</code>.
|
||||||
|
* @param shiftKeyArgSpecifies whether or not shift key was depressed
|
||||||
|
* during the <code>Event</code>.
|
||||||
|
* @param metaKeyArgSpecifies whether or not meta key was depressed
|
||||||
|
* during the <code>Event</code>.
|
||||||
|
* @param buttonArgSpecifies the <code>Event</code>'s mouse button.
|
||||||
|
* @param relatedTargetArgSpecifies the <code>Event</code>'s related
|
||||||
|
* <code>EventTarget</code>.
|
||||||
|
*/
|
||||||
|
public void initMouseEvent(String typeArg,
|
||||||
|
boolean canBubbleArg,
|
||||||
|
boolean cancelableArg,
|
||||||
|
AbstractView viewArg,
|
||||||
|
int detailArg,
|
||||||
|
int screenXArg,
|
||||||
|
int screenYArg,
|
||||||
|
int clientXArg,
|
||||||
|
int clientYArg,
|
||||||
|
boolean ctrlKeyArg,
|
||||||
|
boolean altKeyArg,
|
||||||
|
boolean shiftKeyArg,
|
||||||
|
boolean metaKeyArg,
|
||||||
|
short buttonArg,
|
||||||
|
EventTarget relatedTargetArg);
|
||||||
|
|
||||||
|
}
|
||||||
108
java/external/src/org/w3c/dom/events/MutationEvent.java
vendored
Normal file
108
java/external/src/org/w3c/dom/events/MutationEvent.java
vendored
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>MutationEvent</code> interface provides specific contextual
|
||||||
|
* information associated with Mutation events.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface MutationEvent extends Event {
|
||||||
|
// attrChangeType
|
||||||
|
/**
|
||||||
|
* The <code>Attr</code> was modified in place.
|
||||||
|
*/
|
||||||
|
public static final short MODIFICATION = 1;
|
||||||
|
/**
|
||||||
|
* The <code>Attr</code> was just added.
|
||||||
|
*/
|
||||||
|
public static final short ADDITION = 2;
|
||||||
|
/**
|
||||||
|
* The <code>Attr</code> was just removed.
|
||||||
|
*/
|
||||||
|
public static final short REMOVAL = 3;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>relatedNode</code> is used to identify a secondary node related
|
||||||
|
* to a mutation event. For example, if a mutation event is dispatched
|
||||||
|
* to a node indicating that its parent has changed, the
|
||||||
|
* <code>relatedNode</code> is the changed parent. If an event is
|
||||||
|
* instead dispatched to a subtree indicating a node was changed within
|
||||||
|
* it, the <code>relatedNode</code> is the changed node. In the case of
|
||||||
|
* the DOMAttrModified event it indicates the <code>Attr</code> node
|
||||||
|
* which was modified, added, or removed.
|
||||||
|
*/
|
||||||
|
public Node getRelatedNode();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>prevValue</code> indicates the previous value of the
|
||||||
|
* <code>Attr</code> node in DOMAttrModified events, and of the
|
||||||
|
* <code>CharacterData</code> node in DOMCharDataModified events.
|
||||||
|
*/
|
||||||
|
public String getPrevValue();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>newValue</code> indicates the new value of the <code>Attr</code>
|
||||||
|
* node in DOMAttrModified events, and of the <code>CharacterData</code>
|
||||||
|
* node in DOMCharDataModified events.
|
||||||
|
*/
|
||||||
|
public String getNewValue();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>attrName</code> indicates the name of the changed
|
||||||
|
* <code>Attr</code> node in a DOMAttrModified event.
|
||||||
|
*/
|
||||||
|
public String getAttrName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>attrChange</code> indicates the type of change which triggered
|
||||||
|
* the DOMAttrModified event. The values can be <code>MODIFICATION</code>
|
||||||
|
* , <code>ADDITION</code>, or <code>REMOVAL</code>.
|
||||||
|
*/
|
||||||
|
public short getAttrChange();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>initMutationEvent</code> method is used to initialize the
|
||||||
|
* value of a <code>MutationEvent</code> created through the
|
||||||
|
* <code>DocumentEvent</code> interface. This method may only be called
|
||||||
|
* before the <code>MutationEvent</code> has been dispatched via the
|
||||||
|
* <code>dispatchEvent</code> method, though it may be called multiple
|
||||||
|
* times during that phase if necessary. If called multiple times, the
|
||||||
|
* final invocation takes precedence.
|
||||||
|
* @param typeArgSpecifies the event type.
|
||||||
|
* @param canBubbleArgSpecifies whether or not the event can bubble.
|
||||||
|
* @param cancelableArgSpecifies whether or not the event's default
|
||||||
|
* action can be prevented.
|
||||||
|
* @param relatedNodeArgSpecifies the <code>Event</code>'s related Node.
|
||||||
|
* @param prevValueArgSpecifies the <code>Event</code>'s
|
||||||
|
* <code>prevValue</code> attribute. This value may be null.
|
||||||
|
* @param newValueArgSpecifies the <code>Event</code>'s
|
||||||
|
* <code>newValue</code> attribute. This value may be null.
|
||||||
|
* @param attrNameArgSpecifies the <code>Event</code>'s
|
||||||
|
* <code>attrName</code> attribute. This value may be null.
|
||||||
|
* @param attrChangeArgSpecifies the <code>Event</code>'s
|
||||||
|
* <code>attrChange</code> attribute
|
||||||
|
*/
|
||||||
|
public void initMutationEvent(String typeArg,
|
||||||
|
boolean canBubbleArg,
|
||||||
|
boolean cancelableArg,
|
||||||
|
Node relatedNodeArg,
|
||||||
|
String prevValueArg,
|
||||||
|
String newValueArg,
|
||||||
|
String attrNameArg,
|
||||||
|
short attrChangeArg);
|
||||||
|
|
||||||
|
}
|
||||||
58
java/external/src/org/w3c/dom/events/UIEvent.java
vendored
Normal file
58
java/external/src/org/w3c/dom/events/UIEvent.java
vendored
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
import org.w3c.dom.views.AbstractView;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>UIEvent</code> interface provides specific contextual information
|
||||||
|
* associated with User Interface events.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface UIEvent extends Event {
|
||||||
|
/**
|
||||||
|
* The <code>view</code> attribute identifies the <code>AbstractView</code>
|
||||||
|
* from which the event was generated.
|
||||||
|
*/
|
||||||
|
public AbstractView getView();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies some detail information about the <code>Event</code>,
|
||||||
|
* depending on the type of event.
|
||||||
|
*/
|
||||||
|
public int getDetail();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>initUIEvent</code> method is used to initialize the value of
|
||||||
|
* a <code>UIEvent</code> created through the <code>DocumentEvent</code>
|
||||||
|
* interface. This method may only be called before the
|
||||||
|
* <code>UIEvent</code> has been dispatched via the
|
||||||
|
* <code>dispatchEvent</code> method, though it may be called multiple
|
||||||
|
* times during that phase if necessary. If called multiple times, the
|
||||||
|
* final invocation takes precedence.
|
||||||
|
* @param typeArgSpecifies the event type.
|
||||||
|
* @param canBubbleArgSpecifies whether or not the event can bubble.
|
||||||
|
* @param cancelableArgSpecifies whether or not the event's default
|
||||||
|
* action can be prevented.
|
||||||
|
* @param viewArgSpecifies the <code>Event</code>'s
|
||||||
|
* <code>AbstractView</code>.
|
||||||
|
* @param detailArgSpecifies the <code>Event</code>'s detail.
|
||||||
|
*/
|
||||||
|
public void initUIEvent(String typeArg,
|
||||||
|
boolean canBubbleArg,
|
||||||
|
boolean cancelableArg,
|
||||||
|
AbstractView viewArg,
|
||||||
|
int detailArg);
|
||||||
|
|
||||||
|
}
|
||||||
33
java/external/src/org/w3c/dom/ranges/DocumentRange.java
vendored
Normal file
33
java/external/src/org/w3c/dom/ranges/DocumentRange.java
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.ranges;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface DocumentRange {
|
||||||
|
/**
|
||||||
|
* This interface can be obtained from the object implementing the
|
||||||
|
* <code>Document</code> interface using binding-specific casting
|
||||||
|
* methods.
|
||||||
|
* @return The initial state of the Range returned from this method is
|
||||||
|
* such that both of its boundary-points are positioned at the
|
||||||
|
* beginning of the corresponding Document, before any content. The
|
||||||
|
* Range returned can only be used to select content associated with
|
||||||
|
* this Document, or with DocumentFragments and Attrs for which this
|
||||||
|
* Document is the <code>ownerDocument</code>.
|
||||||
|
*/
|
||||||
|
public Range createRange();
|
||||||
|
|
||||||
|
}
|
||||||
399
java/external/src/org/w3c/dom/ranges/Range.java
vendored
Normal file
399
java/external/src/org/w3c/dom/ranges/Range.java
vendored
Normal file
@ -0,0 +1,399 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.ranges;
|
||||||
|
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
import org.w3c.dom.DocumentFragment;
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface Range {
|
||||||
|
/**
|
||||||
|
* Node within which the Range begins
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public Node getStartContainer()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Offset within the starting node of the Range.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public int getStartOffset()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Node within which the Range ends
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public Node getEndContainer()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Offset within the ending node of the Range.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public int getEndOffset()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TRUE if the Range is collapsed
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public boolean getCollapsed()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The deepest common ancestor container of the Range's two
|
||||||
|
* boundary-points.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public Node getCommonAncestorContainer()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the attributes describing the start of the Range.
|
||||||
|
* @param refNodeThe <code>refNode</code> value. This parameter must be
|
||||||
|
* different from <code>null</code>.
|
||||||
|
* @param offsetThe <code>startOffset</code> value.
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if <code>refNode</code> or an ancestor
|
||||||
|
* of <code>refNode</code> is an Entity, Notation, or DocumentType
|
||||||
|
* node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if <code>offset</code> is negative or greater
|
||||||
|
* than the number of child units in <code>refNode</code>. Child units
|
||||||
|
* are 16-bit units if <code>refNode</code> is a type of CharacterData
|
||||||
|
* node (e.g., a Text or Comment node) or a ProcessingInstruction
|
||||||
|
* node. Child units are Nodes in all other cases.
|
||||||
|
* <br>INVALID_STATE_ERR: Raised if <code>detach()</code> has already
|
||||||
|
* been invoked on this object.
|
||||||
|
*/
|
||||||
|
public void setStart(Node refNode,
|
||||||
|
int offset)
|
||||||
|
throws RangeException, DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the attributes describing the end of a Range.
|
||||||
|
* @param refNodeThe <code>refNode</code> value. This parameter must be
|
||||||
|
* different from <code>null</code>.
|
||||||
|
* @param offsetThe <code>endOffset</code> value.
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if <code>refNode</code> or an ancestor
|
||||||
|
* of <code>refNode</code> is an Entity, Notation, or DocumentType
|
||||||
|
* node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INDEX_SIZE_ERR: Raised if <code>offset</code> is negative or greater
|
||||||
|
* than the number of child units in <code>refNode</code>. Child units
|
||||||
|
* are 16-bit units if <code>refNode</code> is a type of CharacterData
|
||||||
|
* node (e.g., a Text or Comment node) or a ProcessingInstruction
|
||||||
|
* node. Child units are Nodes in all other cases.
|
||||||
|
* <br>INVALID_STATE_ERR: Raised if <code>detach()</code> has already
|
||||||
|
* been invoked on this object.
|
||||||
|
*/
|
||||||
|
public void setEnd(Node refNode,
|
||||||
|
int offset)
|
||||||
|
throws RangeException, DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the start position to be before a node
|
||||||
|
* @param refNodeRange starts before <code>refNode</code>
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if the root container of
|
||||||
|
* <code>refNode</code> is not an Attr, Document, or DocumentFragment
|
||||||
|
* node or if <code>refNode</code> is a Document, DocumentFragment,
|
||||||
|
* Attr, Entity, or Notation node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public void setStartBefore(Node refNode)
|
||||||
|
throws RangeException, DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the start position to be after a node
|
||||||
|
* @param refNodeRange starts after <code>refNode</code>
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if the root container of
|
||||||
|
* <code>refNode</code> is not an Attr, Document, or DocumentFragment
|
||||||
|
* node or if <code>refNode</code> is a Document, DocumentFragment,
|
||||||
|
* Attr, Entity, or Notation node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public void setStartAfter(Node refNode)
|
||||||
|
throws RangeException, DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the end position to be before a node.
|
||||||
|
* @param refNodeRange ends before <code>refNode</code>
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if the root container of
|
||||||
|
* <code>refNode</code> is not an Attr, Document, or DocumentFragment
|
||||||
|
* node or if <code>refNode</code> is a Document, DocumentFragment,
|
||||||
|
* Attr, Entity, or Notation node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public void setEndBefore(Node refNode)
|
||||||
|
throws RangeException, DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the end of a Range to be after a node
|
||||||
|
* @param refNodeRange ends after <code>refNode</code>.
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if the root container of
|
||||||
|
* <code>refNode</code> is not an Attr, Document or DocumentFragment
|
||||||
|
* node or if <code>refNode</code> is a Document, DocumentFragment,
|
||||||
|
* Attr, Entity, or Notation node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public void setEndAfter(Node refNode)
|
||||||
|
throws RangeException, DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Collapse a Range onto one of its boundary-points
|
||||||
|
* @param toStartIf TRUE, collapses the Range onto its start; if FALSE,
|
||||||
|
* collapses it onto its end.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public void collapse(boolean toStart)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Select a node and its contents
|
||||||
|
* @param refNodeThe node to select.
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if an ancestor of <code>refNode</code>
|
||||||
|
* is an Entity, Notation or DocumentType node or if
|
||||||
|
* <code>refNode</code> is a Document, DocumentFragment, Attr, Entity,
|
||||||
|
* or Notation node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public void selectNode(Node refNode)
|
||||||
|
throws RangeException, DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Select the contents within a node
|
||||||
|
* @param refNodeNode to select from
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if <code>refNode</code> or an ancestor
|
||||||
|
* of <code>refNode</code> is an Entity, Notation or DocumentType node.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public void selectNodeContents(Node refNode)
|
||||||
|
throws RangeException, DOMException;
|
||||||
|
|
||||||
|
// CompareHow
|
||||||
|
/**
|
||||||
|
* Compare start boundary-point of <code>sourceRange</code> to start
|
||||||
|
* boundary-point of Range on which <code>compareBoundaryPoints</code>
|
||||||
|
* is invoked.
|
||||||
|
*/
|
||||||
|
public static final short START_TO_START = 0;
|
||||||
|
/**
|
||||||
|
* Compare start boundary-point of <code>sourceRange</code> to end
|
||||||
|
* boundary-point of Range on which <code>compareBoundaryPoints</code>
|
||||||
|
* is invoked.
|
||||||
|
*/
|
||||||
|
public static final short START_TO_END = 1;
|
||||||
|
/**
|
||||||
|
* Compare end boundary-point of <code>sourceRange</code> to end
|
||||||
|
* boundary-point of Range on which <code>compareBoundaryPoints</code>
|
||||||
|
* is invoked.
|
||||||
|
*/
|
||||||
|
public static final short END_TO_END = 2;
|
||||||
|
/**
|
||||||
|
* Compare end boundary-point of <code>sourceRange</code> to start
|
||||||
|
* boundary-point of Range on which <code>compareBoundaryPoints</code>
|
||||||
|
* is invoked.
|
||||||
|
*/
|
||||||
|
public static final short END_TO_START = 3;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compare the boundary-points of two Ranges in a document.
|
||||||
|
* @param howA code representing the type of comparison, as defined above.
|
||||||
|
* @param sourceRangeThe <code>Range</code> on which this current
|
||||||
|
* <code>Range</code> is compared to.
|
||||||
|
* @return -1, 0 or 1 depending on whether the corresponding
|
||||||
|
* boundary-point of the Range is respectively before, equal to, or
|
||||||
|
* after the corresponding boundary-point of <code>sourceRange</code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* WRONG_DOCUMENT_ERR: Raised if the two Ranges are not in the same
|
||||||
|
* Document or DocumentFragment.
|
||||||
|
* <br>INVALID_STATE_ERR: Raised if <code>detach()</code> has already
|
||||||
|
* been invoked on this object.
|
||||||
|
*/
|
||||||
|
public short compareBoundaryPoints(short how,
|
||||||
|
Range sourceRange)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the contents of a Range from the containing document or
|
||||||
|
* document fragment without returning a reference to the removed
|
||||||
|
* content.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if any portion of the content of
|
||||||
|
* the Range is read-only or any of the nodes that contain any of the
|
||||||
|
* content of the Range are read-only.
|
||||||
|
* <br>INVALID_STATE_ERR: Raised if <code>detach()</code> has already
|
||||||
|
* been invoked on this object.
|
||||||
|
*/
|
||||||
|
public void deleteContents()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the contents of a Range from the containing document or document
|
||||||
|
* fragment to a new DocumentFragment.
|
||||||
|
* @return A DocumentFragment containing the extracted contents.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if any portion of the content of
|
||||||
|
* the Range is read-only or any of the nodes which contain any of the
|
||||||
|
* content of the Range are read-only.
|
||||||
|
* <br>HIERARCHY_REQUEST_ERR: Raised if a DocumentType node would be
|
||||||
|
* extracted into the new DocumentFragment.
|
||||||
|
* <br>INVALID_STATE_ERR: Raised if <code>detach()</code> has already
|
||||||
|
* been invoked on this object.
|
||||||
|
*/
|
||||||
|
public DocumentFragment extractContents()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Duplicates the contents of a Range
|
||||||
|
* @return A DocumentFragment that contains content equivalent to this
|
||||||
|
* Range.
|
||||||
|
* @exception DOMException
|
||||||
|
* HIERARCHY_REQUEST_ERR: Raised if a DocumentType node would be
|
||||||
|
* extracted into the new DocumentFragment.
|
||||||
|
* <br>INVALID_STATE_ERR: Raised if <code>detach()</code> has already
|
||||||
|
* been invoked on this object.
|
||||||
|
*/
|
||||||
|
public DocumentFragment cloneContents()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inserts a node into the Document or DocumentFragment at the start of
|
||||||
|
* the Range. If the container is a Text node, this will be split at the
|
||||||
|
* start of the Range (as if the Text node's splitText method was
|
||||||
|
* performed at the insertion point) and the insertion will occur
|
||||||
|
* between the two resulting Text nodes. Adjacent Text nodes will not be
|
||||||
|
* automatically merged. If the node to be inserted is a
|
||||||
|
* DocumentFragment node, the children will be inserted rather than the
|
||||||
|
* DocumentFragment node itself.
|
||||||
|
* @param newNodeThe node to insert at the start of the Range
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if an ancestor container of the
|
||||||
|
* start of the Range is read-only.
|
||||||
|
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newNode</code> and the
|
||||||
|
* container of the start of the Range were not created from the same
|
||||||
|
* document.
|
||||||
|
* <br>HIERARCHY_REQUEST_ERR: Raised if the container of the start of
|
||||||
|
* the Range is of a type that does not allow children of the type of
|
||||||
|
* <code>newNode</code> or if <code>newNode</code> is an ancestor of
|
||||||
|
* the container.
|
||||||
|
* <br>INVALID_STATE_ERR: Raised if <code>detach()</code> has already
|
||||||
|
* been invoked on this object.
|
||||||
|
* @exception RangeException
|
||||||
|
* INVALID_NODE_TYPE_ERR: Raised if <code>newNode</code> is an Attr,
|
||||||
|
* Entity, Notation, or Document node.
|
||||||
|
*/
|
||||||
|
public void insertNode(Node newNode)
|
||||||
|
throws DOMException, RangeException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reparents the contents of the Range to the given node and inserts the
|
||||||
|
* node at the position of the start of the Range.
|
||||||
|
* @param newParentThe node to surround the contents with.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if an ancestor container of
|
||||||
|
* either boundary-point of the Range is read-only.
|
||||||
|
* <br>WRONG_DOCUMENT_ERR: Raised if <code> newParent</code> and the
|
||||||
|
* container of the start of the Range were not created from the same
|
||||||
|
* document.
|
||||||
|
* <br>HIERARCHY_REQUEST_ERR: Raised if the container of the start of
|
||||||
|
* the Range is of a type that does not allow children of the type of
|
||||||
|
* <code>newParent</code> or if <code>newParent</code> is an ancestor
|
||||||
|
* of the container or if <code>node</code> would end up with a child
|
||||||
|
* node of a type not allowed by the type of <code>node</code>.
|
||||||
|
* <br>INVALID_STATE_ERR: Raised if <code>detach()</code> has already
|
||||||
|
* been invoked on this object.
|
||||||
|
* @exception RangeException
|
||||||
|
* BAD_BOUNDARYPOINTS_ERR: Raised if the Range partially selects a
|
||||||
|
* non-text node.
|
||||||
|
* <br>INVALID_NODE_TYPE_ERR: Raised if <code> node</code> is an Attr,
|
||||||
|
* Entity, DocumentType, Notation, Document, or DocumentFragment node.
|
||||||
|
*/
|
||||||
|
public void surroundContents(Node newParent)
|
||||||
|
throws DOMException, RangeException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Produces a new Range whose boundary-points are equal to the
|
||||||
|
* boundary-points of the Range.
|
||||||
|
* @return The duplicated Range.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public Range cloneRange()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the contents of a Range as a string. This string contains only
|
||||||
|
* the data characters, not any markup.
|
||||||
|
* @return The contents of the Range.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public String toString()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called to indicate that the Range is no longer in use and that the
|
||||||
|
* implementation may relinquish any resources associated with this
|
||||||
|
* Range. Subsequent calls to any methods or attribute getters on this
|
||||||
|
* Range will result in a <code>DOMException</code> being thrown with an
|
||||||
|
* error code of <code>INVALID_STATE_ERR</code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
|
||||||
|
* invoked on this object.
|
||||||
|
*/
|
||||||
|
public void detach()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
39
java/external/src/org/w3c/dom/ranges/RangeException.java
vendored
Normal file
39
java/external/src/org/w3c/dom/ranges/RangeException.java
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.ranges;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Range operations may throw a <code>RangeException</code> as specified in
|
||||||
|
* their method descriptions.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public class RangeException extends RuntimeException {
|
||||||
|
public RangeException(short code, String message) {
|
||||||
|
super(message);
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
public short code;
|
||||||
|
// RangeExceptionCode
|
||||||
|
/**
|
||||||
|
* If the boundary-points of a Range do not meet specific requirements.
|
||||||
|
*/
|
||||||
|
public static final short BAD_BOUNDARYPOINTS_ERR = 1;
|
||||||
|
/**
|
||||||
|
* If the container of an boundary-point of a Range is being set to either
|
||||||
|
* a node of an invalid type or a node with an ancestor of an invalid
|
||||||
|
* type.
|
||||||
|
*/
|
||||||
|
public static final short INVALID_NODE_TYPE_ERR = 2;
|
||||||
|
|
||||||
|
}
|
||||||
34
java/external/src/org/w3c/dom/stylesheets/DocumentStyle.java
vendored
Normal file
34
java/external/src/org/w3c/dom/stylesheets/DocumentStyle.java
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.stylesheets;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>DocumentStyle</code> interface provides a mechanism by which the
|
||||||
|
* style sheets embedded in a document can be retrieved. The expectation is
|
||||||
|
* that an instance of the <code>DocumentStyle</code> interface can be
|
||||||
|
* obtained by using binding-specific casting methods on an instance of the
|
||||||
|
* <code>Document</code> interface.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface DocumentStyle {
|
||||||
|
/**
|
||||||
|
* A list containing all the style sheets explicitly linked into or
|
||||||
|
* embedded in a document. For HTML documents, this includes external
|
||||||
|
* style sheets, included via the HTML LINK element, and inline STYLE
|
||||||
|
* elements. In XML, this includes external style sheets, included via
|
||||||
|
* style sheet processing instructions (see ).
|
||||||
|
*/
|
||||||
|
public StyleSheetList getStyleSheets();
|
||||||
|
|
||||||
|
}
|
||||||
31
java/external/src/org/w3c/dom/stylesheets/LinkStyle.java
vendored
Normal file
31
java/external/src/org/w3c/dom/stylesheets/LinkStyle.java
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.stylesheets;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>LinkStyle</code> interface provides a mechanism by which a style
|
||||||
|
* sheet can be retrieved from the node responsible for linking it into a
|
||||||
|
* document. An instance of the <code>LinkStyle</code> interface can be
|
||||||
|
* obtained using binding-specific casting methods on an instance of a
|
||||||
|
* linking node (<code>HTMLLinkElement</code>, <code>HTMLStyleElement</code>
|
||||||
|
* or <code>ProcessingInstruction</code> in DOM Level 2).
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface LinkStyle {
|
||||||
|
/**
|
||||||
|
* The style sheet.
|
||||||
|
*/
|
||||||
|
public StyleSheet getSheet();
|
||||||
|
|
||||||
|
}
|
||||||
81
java/external/src/org/w3c/dom/stylesheets/MediaList.java
vendored
Normal file
81
java/external/src/org/w3c/dom/stylesheets/MediaList.java
vendored
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.stylesheets;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>MediaList</code> interface provides the abstraction of an
|
||||||
|
* ordered collection of media, without defining or constraining how this
|
||||||
|
* collection is implemented. An empty list is the same as a list that
|
||||||
|
* contains the medium <code>"all"</code>.
|
||||||
|
* <p> The items in the <code>MediaList</code> are accessible via an integral
|
||||||
|
* index, starting from 0.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface MediaList {
|
||||||
|
/**
|
||||||
|
* The parsable textual representation of the media list. This is a
|
||||||
|
* comma-separated list of media.
|
||||||
|
* @exception DOMException
|
||||||
|
* SYNTAX_ERR: Raised if the specified string value has a syntax error
|
||||||
|
* and is unparsable.
|
||||||
|
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is
|
||||||
|
* readonly.
|
||||||
|
*/
|
||||||
|
public String getMediaText();
|
||||||
|
public void setMediaText(String mediaText)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The number of media in the list. The range of valid media is
|
||||||
|
* <code>0</code> to <code>length-1</code> inclusive.
|
||||||
|
*/
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the <code>index</code>th in the list. If <code>index</code> is
|
||||||
|
* greater than or equal to the number of media in the list, this
|
||||||
|
* returns <code>null</code>.
|
||||||
|
* @param index Index into the collection.
|
||||||
|
* @return The medium at the <code>index</code>th position in the
|
||||||
|
* <code>MediaList</code>, or <code>null</code> if that is not a valid
|
||||||
|
* index.
|
||||||
|
*/
|
||||||
|
public String item(int index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deletes the medium indicated by <code>oldMedium</code> from the list.
|
||||||
|
* @param oldMediumThe medium to delete in the media list.
|
||||||
|
* @exception DOMException
|
||||||
|
* NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.
|
||||||
|
* <br> NOT_FOUND_ERR: Raised if <code>oldMedium</code> is not in the
|
||||||
|
* list.
|
||||||
|
*/
|
||||||
|
public void deleteMedium(String oldMedium)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds the medium <code>newMedium</code> to the end of the list. If the
|
||||||
|
* <code>newMedium</code> is already used, it is first removed.
|
||||||
|
* @param newMediumThe new medium to add.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_CHARACTER_ERR: If the medium contains characters that are
|
||||||
|
* invalid in the underlying style language.
|
||||||
|
* <br> NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.
|
||||||
|
*/
|
||||||
|
public void appendMedium(String newMedium)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
95
java/external/src/org/w3c/dom/stylesheets/StyleSheet.java
vendored
Normal file
95
java/external/src/org/w3c/dom/stylesheets/StyleSheet.java
vendored
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.stylesheets;
|
||||||
|
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>StyleSheet</code> interface is the abstract base interface for
|
||||||
|
* any type of style sheet. It represents a single style sheet associated
|
||||||
|
* with a structured document. In HTML, the StyleSheet interface represents
|
||||||
|
* either an external style sheet, included via the HTML LINK element, or
|
||||||
|
* an inline STYLE element. In XML, this interface represents an external
|
||||||
|
* style sheet, included via a style sheet processing instruction.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface StyleSheet {
|
||||||
|
/**
|
||||||
|
* This specifies the style sheet language for this style sheet. The
|
||||||
|
* style sheet language is specified as a content type (e.g.
|
||||||
|
* "text/css"). The content type is often specified in the
|
||||||
|
* <code>ownerNode</code>. Also see the type attribute definition for
|
||||||
|
* the <code>LINK</code> element in HTML 4.0, and the type
|
||||||
|
* pseudo-attribute for the XML style sheet processing instruction.
|
||||||
|
*/
|
||||||
|
public String getType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>false</code> if the style sheet is applied to the document.
|
||||||
|
* <code>true</code> if it is not. Modifying this attribute may cause a
|
||||||
|
* new resolution of style for the document. A stylesheet only applies
|
||||||
|
* if both an appropriate medium definition is present and the disabled
|
||||||
|
* attribute is false. So, if the media doesn't apply to the current
|
||||||
|
* user agent, the <code>disabled</code> attribute is ignored.
|
||||||
|
*/
|
||||||
|
public boolean getDisabled();
|
||||||
|
public void setDisabled(boolean disabled);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The node that associates this style sheet with the document. For HTML,
|
||||||
|
* this may be the corresponding <code>LINK</code> or <code>STYLE</code>
|
||||||
|
* element. For XML, it may be the linking processing instruction. For
|
||||||
|
* style sheets that are included by other style sheets, the value of
|
||||||
|
* this attribute is <code>null</code>.
|
||||||
|
*/
|
||||||
|
public Node getOwnerNode();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For style sheet languages that support the concept of style sheet
|
||||||
|
* inclusion, this attribute represents the including style sheet, if
|
||||||
|
* one exists. If the style sheet is a top-level style sheet, or the
|
||||||
|
* style sheet language does not support inclusion, the value of this
|
||||||
|
* attribute is <code>null</code>.
|
||||||
|
*/
|
||||||
|
public StyleSheet getParentStyleSheet();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If the style sheet is a linked style sheet, the value of its attribute
|
||||||
|
* is its location. For inline style sheets, the value of this attribute
|
||||||
|
* is <code>null</code>. See the href attribute definition for the
|
||||||
|
* <code>LINK</code> element in HTML 4.0, and the href pseudo-attribute
|
||||||
|
* for the XML style sheet processing instruction.
|
||||||
|
*/
|
||||||
|
public String getHref();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The advisory title. The title is often specified in the
|
||||||
|
* <code>ownerNode</code>. See the title attribute definition for the
|
||||||
|
* <code>LINK</code> element in HTML 4.0, and the title pseudo-attribute
|
||||||
|
* for the XML style sheet processing instruction.
|
||||||
|
*/
|
||||||
|
public String getTitle();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The intended destination media for style information. The media is
|
||||||
|
* often specified in the <code>ownerNode</code>. If no media has been
|
||||||
|
* specified, the <code>MediaList</code> will be empty. See the media
|
||||||
|
* attribute definition for the <code>LINK</code> element in HTML 4.0,
|
||||||
|
* and the media pseudo-attribute for the XML style sheet processing
|
||||||
|
* instruction . Modifying the media list may cause a change to the
|
||||||
|
* attribute <code>disabled</code>.
|
||||||
|
*/
|
||||||
|
public MediaList getMedia();
|
||||||
|
|
||||||
|
}
|
||||||
42
java/external/src/org/w3c/dom/stylesheets/StyleSheetList.java
vendored
Normal file
42
java/external/src/org/w3c/dom/stylesheets/StyleSheetList.java
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.stylesheets;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>StyleSheetList</code> interface provides the abstraction of an
|
||||||
|
* ordered collection of style sheets.
|
||||||
|
* <p> The items in the <code>StyleSheetList</code> are accessible via an
|
||||||
|
* integral index, starting from 0.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface StyleSheetList {
|
||||||
|
/**
|
||||||
|
* The number of <code>StyleSheets</code> in the list. The range of valid
|
||||||
|
* child stylesheet indices is <code>0</code> to <code>length-1</code>
|
||||||
|
* inclusive.
|
||||||
|
*/
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to retrieve a style sheet by ordinal index. If index is greater
|
||||||
|
* than or equal to the number of style sheets in the list, this returns
|
||||||
|
* <code>null</code>.
|
||||||
|
* @param indexIndex into the collection
|
||||||
|
* @return The style sheet at the <code>index</code> position in the
|
||||||
|
* <code>StyleSheetList</code>, or <code>null</code> if that is not a
|
||||||
|
* valid index.
|
||||||
|
*/
|
||||||
|
public StyleSheet item(int index);
|
||||||
|
|
||||||
|
}
|
||||||
90
java/external/src/org/w3c/dom/traversal/DocumentTraversal.java
vendored
Normal file
90
java/external/src/org/w3c/dom/traversal/DocumentTraversal.java
vendored
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.traversal;
|
||||||
|
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>DocumentTraversal</code> contains methods that create iterators and
|
||||||
|
* tree-walkers to traverse a node and its children in document order (depth
|
||||||
|
* first, pre-order traversal, which is equivalent to the order in which the
|
||||||
|
* start tags occur in the text representation of the document). In DOMs
|
||||||
|
* which support the Traversal feature, <code>DocumentTraversal</code> will
|
||||||
|
* be implemented by the same objects that implement the Document interface.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface DocumentTraversal {
|
||||||
|
/**
|
||||||
|
* Create a new <code>NodeIterator</code> over the subtree rooted at the
|
||||||
|
* specified node.
|
||||||
|
* @param rootThe node which will be iterated together with its children.
|
||||||
|
* The iterator is initially positioned just before this node. The
|
||||||
|
* <code>whatToShow</code> flags and the filter, if any, are not
|
||||||
|
* considered when setting this position. The root must not be
|
||||||
|
* <code>null</code>.
|
||||||
|
* @param whatToShowThis flag specifies which node types may appear in
|
||||||
|
* the logical view of the tree presented by the iterator. See the
|
||||||
|
* description of <code>NodeFilter</code> for the set of possible
|
||||||
|
* <code>SHOW_</code> values.These flags can be combined using
|
||||||
|
* <code>OR</code>.
|
||||||
|
* @param filterThe <code>NodeFilter</code> to be used with this
|
||||||
|
* <code>TreeWalker</code>, or <code>null</code> to indicate no filter.
|
||||||
|
* @param entityReferenceExpansionThe value of this flag determines
|
||||||
|
* whether entity reference nodes are expanded.
|
||||||
|
* @return The newly created <code>NodeIterator</code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* NOT_SUPPORTED_ERR: Raised if the specified <code>root</code> is
|
||||||
|
* <code>null</code>.
|
||||||
|
*/
|
||||||
|
public NodeIterator createNodeIterator(Node root,
|
||||||
|
int whatToShow,
|
||||||
|
NodeFilter filter,
|
||||||
|
boolean entityReferenceExpansion)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new <code>TreeWalker</code> over the subtree rooted at the
|
||||||
|
* specified node.
|
||||||
|
* @param rootThe node which will serve as the <code>root</code> for the
|
||||||
|
* <code>TreeWalker</code>. The <code>whatToShow</code> flags and the
|
||||||
|
* <code>NodeFilter</code> are not considered when setting this value;
|
||||||
|
* any node type will be accepted as the <code>root</code>. The
|
||||||
|
* <code>currentNode</code> of the <code>TreeWalker</code> is
|
||||||
|
* initialized to this node, whether or not it is visible. The
|
||||||
|
* <code>root</code> functions as a stopping point for traversal
|
||||||
|
* methods that look upward in the document structure, such as
|
||||||
|
* <code>parentNode</code> and nextNode. The <code>root</code> must
|
||||||
|
* not be <code>null</code>.
|
||||||
|
* @param whatToShowThis flag specifies which node types may appear in
|
||||||
|
* the logical view of the tree presented by the tree-walker. See the
|
||||||
|
* description of <code>NodeFilter</code> for the set of possible
|
||||||
|
* SHOW_ values.These flags can be combined using <code>OR</code>.
|
||||||
|
* @param filterThe <code>NodeFilter</code> to be used with this
|
||||||
|
* <code>TreeWalker</code>, or <code>null</code> to indicate no filter.
|
||||||
|
* @param entityReferenceExpansionIf this flag is false, the contents of
|
||||||
|
* <code>EntityReference</code> nodes are not presented in the logical
|
||||||
|
* view.
|
||||||
|
* @return The newly created <code>TreeWalker</code>.
|
||||||
|
* @exception DOMException
|
||||||
|
* NOT_SUPPORTED_ERR: Raised if the specified <code>root</code> is
|
||||||
|
* <code>null</code>.
|
||||||
|
*/
|
||||||
|
public TreeWalker createTreeWalker(Node root,
|
||||||
|
int whatToShow,
|
||||||
|
NodeFilter filter,
|
||||||
|
boolean entityReferenceExpansion)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
142
java/external/src/org/w3c/dom/traversal/NodeFilter.java
vendored
Normal file
142
java/external/src/org/w3c/dom/traversal/NodeFilter.java
vendored
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.traversal;
|
||||||
|
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filters are objects that know how to "filter out" nodes. If a
|
||||||
|
* <code>NodeIterator</code> or <code>TreeWalker</code> is given a
|
||||||
|
* <code>NodeFilter</code>, it applies the filter before it returns the next
|
||||||
|
* node. If the filter says to accept the node, the traversal logic returns
|
||||||
|
* it; otherwise, traversal looks for the next node and pretends that the
|
||||||
|
* node that was rejected was not there.
|
||||||
|
* <p>The DOM does not provide any filters. <code>NodeFilter</code> is just an
|
||||||
|
* interface that users can implement to provide their own filters.
|
||||||
|
* <p><code>NodeFilters</code> do not need to know how to traverse from node
|
||||||
|
* to node, nor do they need to know anything about the data structure that
|
||||||
|
* is being traversed. This makes it very easy to write filters, since the
|
||||||
|
* only thing they have to know how to do is evaluate a single node. One
|
||||||
|
* filter may be used with a number of different kinds of traversals,
|
||||||
|
* encouraging code reuse.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface NodeFilter {
|
||||||
|
// Constants returned by acceptNode
|
||||||
|
/**
|
||||||
|
* Accept the node. Navigation methods defined for
|
||||||
|
* <code>NodeIterator</code> or <code>TreeWalker</code> will return this
|
||||||
|
* node.
|
||||||
|
*/
|
||||||
|
public static final short FILTER_ACCEPT = 1;
|
||||||
|
/**
|
||||||
|
* Reject the node. Navigation methods defined for
|
||||||
|
* <code>NodeIterator</code> or <code>TreeWalker</code> will not return
|
||||||
|
* this node. For <code>TreeWalker</code>, the children of this node
|
||||||
|
* will also be rejected. <code>NodeIterators</code> treat this as a
|
||||||
|
* synonym for <code>FILTER_SKIP</code>.
|
||||||
|
*/
|
||||||
|
public static final short FILTER_REJECT = 2;
|
||||||
|
/**
|
||||||
|
* Skip this single node. Navigation methods defined for
|
||||||
|
* <code>NodeIterator</code> or <code>TreeWalker</code> will not return
|
||||||
|
* this node. For both <code>NodeIterator</code> and
|
||||||
|
* <code>TreeWalker</code>, the children of this node will still be
|
||||||
|
* considered.
|
||||||
|
*/
|
||||||
|
public static final short FILTER_SKIP = 3;
|
||||||
|
|
||||||
|
// Constants for whatToShow
|
||||||
|
/**
|
||||||
|
* Show all <code>Nodes</code>.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_ALL = 0xFFFFFFFF;
|
||||||
|
/**
|
||||||
|
* Show <code>Element</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_ELEMENT = 0x00000001;
|
||||||
|
/**
|
||||||
|
* Show <code>Attr</code> nodes. This is meaningful only when creating an
|
||||||
|
* iterator or tree-walker with an attribute node as its
|
||||||
|
* <code>root</code>; in this case, it means that the attribute node
|
||||||
|
* will appear in the first position of the iteration or traversal.
|
||||||
|
* Since attributes are never children of other nodes, they do not
|
||||||
|
* appear when traversing over the document tree.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_ATTRIBUTE = 0x00000002;
|
||||||
|
/**
|
||||||
|
* Show <code>Text</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_TEXT = 0x00000004;
|
||||||
|
/**
|
||||||
|
* Show <code>CDATASection</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_CDATA_SECTION = 0x00000008;
|
||||||
|
/**
|
||||||
|
* Show <code>EntityReference</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_ENTITY_REFERENCE = 0x00000010;
|
||||||
|
/**
|
||||||
|
* Show <code>Entity</code> nodes. This is meaningful only when creating
|
||||||
|
* an iterator or tree-walker with an<code> Entity</code> node as its
|
||||||
|
* <code>root</code>; in this case, it means that the <code>Entity</code>
|
||||||
|
* node will appear in the first position of the traversal. Since
|
||||||
|
* entities are not part of the document tree, they do not appear when
|
||||||
|
* traversing over the document tree.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_ENTITY = 0x00000020;
|
||||||
|
/**
|
||||||
|
* Show <code>ProcessingInstruction</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
|
||||||
|
/**
|
||||||
|
* Show <code>Comment</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_COMMENT = 0x00000080;
|
||||||
|
/**
|
||||||
|
* Show <code>Document</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_DOCUMENT = 0x00000100;
|
||||||
|
/**
|
||||||
|
* Show <code>DocumentType</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_DOCUMENT_TYPE = 0x00000200;
|
||||||
|
/**
|
||||||
|
* Show <code>DocumentFragment</code> nodes.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_DOCUMENT_FRAGMENT = 0x00000400;
|
||||||
|
/**
|
||||||
|
* Show <code>Notation</code> nodes. This is meaningful only when creating
|
||||||
|
* an iterator or tree-walker with a <code>Notation</code> node as its
|
||||||
|
* <code>root</code>; in this case, it means that the
|
||||||
|
* <code>Notation</code> node will appear in the first position of the
|
||||||
|
* traversal. Since notations are not part of the document tree, they do
|
||||||
|
* not appear when traversing over the document tree.
|
||||||
|
*/
|
||||||
|
public static final int SHOW_NOTATION = 0x00000800;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test whether a specified node is visible in the logical view of a
|
||||||
|
* <code>TreeWalker</code> or <code>NodeIterator</code>. This function
|
||||||
|
* will be called by the implementation of <code>TreeWalker</code> and
|
||||||
|
* <code>NodeIterator</code>; it is not normally called directly from
|
||||||
|
* user code. (Though you could do so if you wanted to use the same
|
||||||
|
* filter to guide your own application logic.)
|
||||||
|
* @param nThe node to check to see if it passes the filter or not.
|
||||||
|
* @return a constant to determine whether the node is accepted,
|
||||||
|
* rejected, or skipped, as defined above.
|
||||||
|
*/
|
||||||
|
public short acceptNode(Node n);
|
||||||
|
|
||||||
|
}
|
||||||
108
java/external/src/org/w3c/dom/traversal/NodeIterator.java
vendored
Normal file
108
java/external/src/org/w3c/dom/traversal/NodeIterator.java
vendored
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.traversal;
|
||||||
|
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>Iterators</code> are used to step through a set of nodes, e.g. the
|
||||||
|
* set of nodes in a <code>NodeList</code>, the document subtree governed by
|
||||||
|
* a particular <code>Node</code>, the results of a query, or any other set
|
||||||
|
* of nodes. The set of nodes to be iterated is determined by the
|
||||||
|
* implementation of the <code>NodeIterator</code>. DOM Level 2 specifies a
|
||||||
|
* single <code>NodeIterator</code> implementation for document-order
|
||||||
|
* traversal of a document subtree. Instances of these iterators are created
|
||||||
|
* by calling <code>DocumentTraversal</code>
|
||||||
|
* <code>.createNodeIterator()</code>.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface NodeIterator {
|
||||||
|
/**
|
||||||
|
* The root node of the <code>NodeIterator</code>, as specified when it
|
||||||
|
* was created.
|
||||||
|
*/
|
||||||
|
public Node getRoot();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute determines which node types are presented via the
|
||||||
|
* iterator. The available set of constants is defined in the
|
||||||
|
* <code>NodeFilter</code> interface. Nodes not accepted by
|
||||||
|
* <code>whatToShow</code> will be skipped, but their children may still
|
||||||
|
* be considered. Note that this skip takes precedence over the filter,
|
||||||
|
* if any.
|
||||||
|
*/
|
||||||
|
public int getWhatToShow();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>NodeFilter</code> used to screen nodes.
|
||||||
|
*/
|
||||||
|
public NodeFilter getFilter();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value of this flag determines whether the children of entity
|
||||||
|
* reference nodes are visible to the iterator. If false, they and
|
||||||
|
* their descendants will be rejected. Note that this rejection takes
|
||||||
|
* precedence over <code>whatToShow</code> and the filter. Also note
|
||||||
|
* that this is currently the only situation where
|
||||||
|
* <code>NodeIterators</code> may reject a complete subtree rather than
|
||||||
|
* skipping individual nodes.
|
||||||
|
* <br>
|
||||||
|
* <br> To produce a view of the document that has entity references
|
||||||
|
* expanded and does not expose the entity reference node itself, use
|
||||||
|
* the <code>whatToShow</code> flags to hide the entity reference node
|
||||||
|
* and set <code>expandEntityReferences</code> to true when creating the
|
||||||
|
* iterator. To produce a view of the document that has entity reference
|
||||||
|
* nodes but no entity expansion, use the <code>whatToShow</code> flags
|
||||||
|
* to show the entity reference node and set
|
||||||
|
* <code>expandEntityReferences</code> to false.
|
||||||
|
*/
|
||||||
|
public boolean getExpandEntityReferences();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the next node in the set and advances the position of the
|
||||||
|
* iterator in the set. After a <code>NodeIterator</code> is created,
|
||||||
|
* the first call to <code>nextNode()</code> returns the first node in
|
||||||
|
* the set.
|
||||||
|
* @return The next <code>Node</code> in the set being iterated over, or
|
||||||
|
* <code>null</code> if there are no more members in that set.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if this method is called after the
|
||||||
|
* <code>detach</code> method was invoked.
|
||||||
|
*/
|
||||||
|
public Node nextNode()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the previous node in the set and moves the position of the
|
||||||
|
* <code>NodeIterator</code> backwards in the set.
|
||||||
|
* @return The previous <code>Node</code> in the set being iterated over,
|
||||||
|
* or <code>null</code> if there are no more members in that set.
|
||||||
|
* @exception DOMException
|
||||||
|
* INVALID_STATE_ERR: Raised if this method is called after the
|
||||||
|
* <code>detach</code> method was invoked.
|
||||||
|
*/
|
||||||
|
public Node previousNode()
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Detaches the <code>NodeIterator</code> from the set which it iterated
|
||||||
|
* over, releasing any computational resources and placing the iterator
|
||||||
|
* in the INVALID state. After <code>detach</code> has been invoked,
|
||||||
|
* calls to <code>nextNode</code> or <code>previousNode</code> will
|
||||||
|
* raise the exception INVALID_STATE_ERR.
|
||||||
|
*/
|
||||||
|
public void detach();
|
||||||
|
|
||||||
|
}
|
||||||
167
java/external/src/org/w3c/dom/traversal/TreeWalker.java
vendored
Normal file
167
java/external/src/org/w3c/dom/traversal/TreeWalker.java
vendored
Normal file
@ -0,0 +1,167 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.traversal;
|
||||||
|
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>TreeWalker</code> objects are used to navigate a document tree or
|
||||||
|
* subtree using the view of the document defined by their
|
||||||
|
* <code>whatToShow</code> flags and filter (if any). Any function which
|
||||||
|
* performs navigation using a <code>TreeWalker</code> will automatically
|
||||||
|
* support any view defined by a <code>TreeWalker</code>.
|
||||||
|
* <p>Omitting nodes from the logical view of a subtree can result in a
|
||||||
|
* structure that is substantially different from the same subtree in the
|
||||||
|
* complete, unfiltered document. Nodes that are siblings in the
|
||||||
|
* <code>TreeWalker</code> view may be children of different, widely
|
||||||
|
* separated nodes in the original view. For instance, consider a
|
||||||
|
* <code>NodeFilter</code> that skips all nodes except for Text nodes and
|
||||||
|
* the root node of a document. In the logical view that results, all text
|
||||||
|
* nodes will be siblings and appear as direct children of the root node, no
|
||||||
|
* matter how deeply nested the structure of the original document.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface TreeWalker {
|
||||||
|
/**
|
||||||
|
* The <code>root</code> node of the <code>TreeWalker</code>, as specified
|
||||||
|
* when it was created.
|
||||||
|
*/
|
||||||
|
public Node getRoot();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This attribute determines which node types are presented via the
|
||||||
|
* <code>TreeWalker</code>. The available set of constants is defined in
|
||||||
|
* the <code>NodeFilter</code> interface. Nodes not accepted by
|
||||||
|
* <code>whatToShow</code> will be skipped, but their children may still
|
||||||
|
* be considered. Note that this skip takes precedence over the filter,
|
||||||
|
* if any.
|
||||||
|
*/
|
||||||
|
public int getWhatToShow();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The filter used to screen nodes.
|
||||||
|
*/
|
||||||
|
public NodeFilter getFilter();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value of this flag determines whether the children of entity
|
||||||
|
* reference nodes are visible to the <code>TreeWalker</code>. If false,
|
||||||
|
* they and their descendants will be rejected. Note that this
|
||||||
|
* rejection takes precedence over <code>whatToShow</code> and the
|
||||||
|
* filter, if any.
|
||||||
|
* <br> To produce a view of the document that has entity references
|
||||||
|
* expanded and does not expose the entity reference node itself, use
|
||||||
|
* the <code>whatToShow</code> flags to hide the entity reference node
|
||||||
|
* and set <code>expandEntityReferences</code> to true when creating the
|
||||||
|
* <code>TreeWalker</code>. To produce a view of the document that has
|
||||||
|
* entity reference nodes but no entity expansion, use the
|
||||||
|
* <code>whatToShow</code> flags to show the entity reference node and
|
||||||
|
* set <code>expandEntityReferences</code> to false.
|
||||||
|
*/
|
||||||
|
public boolean getExpandEntityReferences();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The node at which the <code>TreeWalker</code> is currently positioned.
|
||||||
|
* <br>Alterations to the DOM tree may cause the current node to no longer
|
||||||
|
* be accepted by the <code>TreeWalker</code>'s associated filter.
|
||||||
|
* <code>currentNode</code> may also be explicitly set to any node,
|
||||||
|
* whether or not it is within the subtree specified by the
|
||||||
|
* <code>root</code> node or would be accepted by the filter and
|
||||||
|
* <code>whatToShow</code> flags. Further traversal occurs relative to
|
||||||
|
* <code>currentNode</code> even if it is not part of the current view,
|
||||||
|
* by applying the filters in the requested direction; if no traversal
|
||||||
|
* is possible, <code>currentNode</code> is not changed.
|
||||||
|
* @exception DOMException
|
||||||
|
* NOT_SUPPORTED_ERR: Raised if an attempt is made to set
|
||||||
|
* <code>currentNode</code> to <code>null</code>.
|
||||||
|
*/
|
||||||
|
public Node getCurrentNode();
|
||||||
|
public void setCurrentNode(Node currentNode)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves to and returns the closest visible ancestor node of the current
|
||||||
|
* node. If the search for <code>parentNode</code> attempts to step
|
||||||
|
* upward from the <code>TreeWalker</code>'s <code>root</code> node, or
|
||||||
|
* if it fails to find a visible ancestor node, this method retains the
|
||||||
|
* current position and returns <code>null</code>.
|
||||||
|
* @return The new parent node, or <code>null</code> if the current node
|
||||||
|
* has no parent in the <code>TreeWalker</code>'s logical view.
|
||||||
|
*/
|
||||||
|
public Node parentNode();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the <code>TreeWalker</code> to the first visible child of the
|
||||||
|
* current node, and returns the new node. If the current node has no
|
||||||
|
* visible children, returns <code>null</code>, and retains the current
|
||||||
|
* node.
|
||||||
|
* @return The new node, or <code>null</code> if the current node has no
|
||||||
|
* visible children in the <code>TreeWalker</code>'s logical view.
|
||||||
|
*/
|
||||||
|
public Node firstChild();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the <code>TreeWalker</code> to the last visible child of the
|
||||||
|
* current node, and returns the new node. If the current node has no
|
||||||
|
* visible children, returns <code>null</code>, and retains the current
|
||||||
|
* node.
|
||||||
|
* @return The new node, or <code>null</code> if the current node has no
|
||||||
|
* children in the <code>TreeWalker</code>'s logical view.
|
||||||
|
*/
|
||||||
|
public Node lastChild();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the <code>TreeWalker</code> to the previous sibling of the
|
||||||
|
* current node, and returns the new node. If the current node has no
|
||||||
|
* visible previous sibling, returns <code>null</code>, and retains the
|
||||||
|
* current node.
|
||||||
|
* @return The new node, or <code>null</code> if the current node has no
|
||||||
|
* previous sibling. in the <code>TreeWalker</code>'s logical view.
|
||||||
|
*/
|
||||||
|
public Node previousSibling();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the <code>TreeWalker</code> to the next sibling of the current
|
||||||
|
* node, and returns the new node. If the current node has no visible
|
||||||
|
* next sibling, returns <code>null</code>, and retains the current node.
|
||||||
|
* @return The new node, or <code>null</code> if the current node has no
|
||||||
|
* next sibling. in the <code>TreeWalker</code>'s logical view.
|
||||||
|
*/
|
||||||
|
public Node nextSibling();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the <code>TreeWalker</code> to the previous visible node in
|
||||||
|
* document order relative to the current node, and returns the new
|
||||||
|
* node. If the current node has no previous node, or if the search for
|
||||||
|
* <code>previousNode</code> attempts to step upward from the
|
||||||
|
* <code>TreeWalker</code>'s <code>root</code> node, returns
|
||||||
|
* <code>null</code>, and retains the current node.
|
||||||
|
* @return The new node, or <code>null</code> if the current node has no
|
||||||
|
* previous node in the <code>TreeWalker</code>'s logical view.
|
||||||
|
*/
|
||||||
|
public Node previousNode();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the <code>TreeWalker</code> to the next visible node in document
|
||||||
|
* order relative to the current node, and returns the new node. If the
|
||||||
|
* current node has no next node, or if the search for nextNode attempts
|
||||||
|
* to step upward from the <code>TreeWalker</code>'s <code>root</code>
|
||||||
|
* node, returns <code>null</code>, and retains the current node.
|
||||||
|
* @return The new node, or <code>null</code> if the current node has no
|
||||||
|
* next node in the <code>TreeWalker</code>'s logical view.
|
||||||
|
*/
|
||||||
|
public Node nextNode();
|
||||||
|
|
||||||
|
}
|
||||||
27
java/external/src/org/w3c/dom/views/AbstractView.java
vendored
Normal file
27
java/external/src/org/w3c/dom/views/AbstractView.java
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.views;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A base interface that all views shall derive from.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113'>Document Object Model (DOM) Level 2 Views Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface AbstractView {
|
||||||
|
/**
|
||||||
|
* The source <code>DocumentView</code> of which this is an
|
||||||
|
* <code>AbstractView</code>.
|
||||||
|
*/
|
||||||
|
public DocumentView getDocument();
|
||||||
|
|
||||||
|
}
|
||||||
30
java/external/src/org/w3c/dom/views/DocumentView.java
vendored
Normal file
30
java/external/src/org/w3c/dom/views/DocumentView.java
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.w3c.dom.views;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The <code>DocumentView</code> interface is implemented by
|
||||||
|
* <code>Document</code> objects in DOM implementations supporting DOM
|
||||||
|
* Views. It provides an attribute to retrieve the default view of a
|
||||||
|
* document.
|
||||||
|
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113'>Document Object Model (DOM) Level 2 Views Specification</a>.
|
||||||
|
* @since DOM Level 2
|
||||||
|
*/
|
||||||
|
public interface DocumentView {
|
||||||
|
/**
|
||||||
|
* The default <code>AbstractView</code> for this <code>Document</code>,
|
||||||
|
* or <code>null</code> if none available.
|
||||||
|
*/
|
||||||
|
public AbstractView getDefaultView();
|
||||||
|
|
||||||
|
}
|
||||||
100
java/external/xdocs/dom/core/COPYRIGHT.html
vendored
Normal file
100
java/external/xdocs/dom/core/COPYRIGHT.html
vendored
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||||
|
<title>W3C IPR SOFTWARE NOTICE</title>
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000">
|
||||||
|
<h1>
|
||||||
|
W3C IPR SOFTWARE NOTICE
|
||||||
|
</h1>
|
||||||
|
<h3>
|
||||||
|
Copyright © 2000 <loc href="http://www.w3.org/">World Wide Web
|
||||||
|
Consortium</loc>, (<loc href="http://www.lcs.mit.edu/">Massachusetts
|
||||||
|
Institute of Technology</loc>, <loc href="http://www.inria.fr/">Institut
|
||||||
|
National de Recherche en Informatique et en Automatique</loc>, <loc
|
||||||
|
href="http://www.keio.ac.jp/">Keio University</loc>). All Rights
|
||||||
|
Reserved.
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
The DOM bindings are published under the W3C Software Copyright Notice
|
||||||
|
and License. The software license requires "Notice of any changes or
|
||||||
|
modifications to the W3C files, including the date changes were made."
|
||||||
|
Consequently, modified versions of the DOM bindings must document that
|
||||||
|
they do not conform to the W3C standard; in the case of the IDL binding,
|
||||||
|
the pragma prefix can no longer be 'w3c.org'; in the case of the Java
|
||||||
|
binding, the package names can no longer be in the 'org.w3c' package.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>Note:</b> The original version of the W3C Software Copyright Notice
|
||||||
|
and License could be found at <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>http://www.w3.org/Consortium/Legal/copyright-software-19980720</a>
|
||||||
|
</p>
|
||||||
|
<h3>
|
||||||
|
Copyright © 1994-2000 <a href="http://www.w3.org/">World Wide Web
|
||||||
|
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||||
|
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||||
|
National de Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||||
|
Reserved. http://www.w3.org/Consortium/Legal/
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
This W3C work (including software, documents, or other related items) is
|
||||||
|
being provided by the copyright holders under the following license. By
|
||||||
|
obtaining, using and/or copying this work, you (the licensee) agree that
|
||||||
|
you have read, understood, and will comply with the following terms and
|
||||||
|
conditions:
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Permission to use, copy, and modify this software and its documentation,
|
||||||
|
with or without modification, for any purpose and without fee or
|
||||||
|
royalty is hereby granted, provided that you include the following on ALL
|
||||||
|
copies of the software and documentation or portions thereof, including
|
||||||
|
modifications, that you make:
|
||||||
|
</p>
|
||||||
|
<ol>
|
||||||
|
<li>
|
||||||
|
The full text of this NOTICE in a location viewable to users of the
|
||||||
|
redistributed or derivative work.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Any pre-existing intellectual property disclaimers, notices, or terms
|
||||||
|
and conditions. If none exist, a short notice of the following form
|
||||||
|
(hypertext is preferred, text is permitted) should be used within the
|
||||||
|
body of any redistributed or derivative code: "Copyright ©
|
||||||
|
[$date-of-software] <a href="http://www.w3.org/">World Wide Web
|
||||||
|
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||||
|
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||||
|
National de Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||||
|
Reserved. http://www.w3.org/Consortium/Legal/"
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Notice of any changes or modifications to the W3C files, including the
|
||||||
|
date changes were made. (We recommend you provide URIs to the location
|
||||||
|
from which the code is derived.)
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
<p>
|
||||||
|
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
|
||||||
|
HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
|
||||||
|
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
|
||||||
|
DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
|
||||||
|
TRADEMARKS OR OTHER RIGHTS.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
||||||
|
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
|
||||||
|
DOCUMENTATION.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The name and trademarks of copyright holders may NOT be used in
|
||||||
|
advertising or publicity pertaining to the software without specific,
|
||||||
|
written prior permission. Title to copyright in this software and any
|
||||||
|
associated documentation will at all times remain with copyright
|
||||||
|
holders.
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
223
java/external/xdocs/dom/core/Overview.html
vendored
Normal file
223
java/external/xdocs/dom/core/Overview.html
vendored
Normal file
@ -0,0 +1,223 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:42:26 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Document Object Model (DOM) Level 2 Core
|
||||||
|
Specification</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='expanded-toc.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='n'
|
||||||
|
href='expanded-toc.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='head'>
|
||||||
|
<p><a href='http://www.w3.org/'><img height='48' width='72'
|
||||||
|
alt='W3C' src='./images/w3c_home.gif' /></a></p>
|
||||||
|
|
||||||
|
<h1 id='title'>Document Object Model (DOM) Level 2 Core
|
||||||
|
Specification</h1>
|
||||||
|
|
||||||
|
<h2 id='version'>Version 1.0</h2>
|
||||||
|
|
||||||
|
<!-- REC-DOM-Level-2-Core-20001113
|
||||||
|
-->
|
||||||
|
<h2 id='W3C-doctype'>W3C Recommendation <i>13 November,
|
||||||
|
2000</i></h2>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>This version:</dt>
|
||||||
|
|
||||||
|
<dd><a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113</a><br />
|
||||||
|
(<a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/DOM2-Core.ps'>
|
||||||
|
PostScript file</a> , <a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/DOM2-Core.pdf'>
|
||||||
|
PDF file</a> , <a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/DOM2-Core.txt'>
|
||||||
|
plain text</a> , <a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/DOM2-Core.zip'>
|
||||||
|
ZIP file</a>)</dd>
|
||||||
|
|
||||||
|
<dt>Latest version:</dt>
|
||||||
|
|
||||||
|
<dd><a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Core'>http://www.w3.org/TR/DOM-Level-2-Core</a></dd>
|
||||||
|
|
||||||
|
<dt>Previous version:</dt>
|
||||||
|
|
||||||
|
<dd><a
|
||||||
|
href='http://www.w3.org/TR/2000/PR-DOM-Level-2-Core-20000927'>http://www.w3.org/TR/2000/PR-DOM-Level-2-Core-20000927</a></dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Editors:</dt>
|
||||||
|
|
||||||
|
<dd>Arnaud Le Hors, <i>W3C team contact until October 1999, then
|
||||||
|
IBM</i></dd>
|
||||||
|
|
||||||
|
<dd>Philippe Le Hégaret, <i>W3C, team contact (from November
|
||||||
|
1999)</i></dd>
|
||||||
|
|
||||||
|
<dd>Lauren Wood, <i>SoftQuad Software Inc., WG Chair</i></dd>
|
||||||
|
|
||||||
|
<dd>Gavin Nicol, <i>Inso EPS (for DOM Level 1)</i></dd>
|
||||||
|
|
||||||
|
<dd>Jonathan Robie, <i>Texcel Research and Software AG (for DOM
|
||||||
|
Level 1)</i></dd>
|
||||||
|
|
||||||
|
<dd>Mike Champion, <i>ArborText and Software AG (for DOM Level 1
|
||||||
|
from November 20, 1997)</i></dd>
|
||||||
|
|
||||||
|
<dd>Steve Byrne, <i>JavaSoft (for DOM Level 1 until November 19,
|
||||||
|
1997)</i></dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<p class='copyright'>Copyright © 2000 <a
|
||||||
|
href='http://www.w3.org/'><abbr
|
||||||
|
title='World Wide Web Consortium'>W3C</abbr></a><sup>®</sup>
|
||||||
|
(<a href='http://www.lcs.mit.edu/'><abbr
|
||||||
|
title='Massachusetts Institute of Technology'>MIT</abbr></a>, <a
|
||||||
|
href='http://www.inria.fr/'><abbr lang='fr'
|
||||||
|
title='Institut National de Recherche en Informatique et Automatique'>
|
||||||
|
INRIA</abbr></a>, <a href='http://www.keio.ac.jp/'>Keio</a>), All
|
||||||
|
Rights Reserved. W3C <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>
|
||||||
|
liability</a>, <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>
|
||||||
|
trademark</a>, <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-documents-19990405'>
|
||||||
|
document use</a> and <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>
|
||||||
|
software licensing</a> rules apply.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr title='separator from header' />
|
||||||
|
<h2 id='abstract'>Abstract</h2>
|
||||||
|
|
||||||
|
<div class='abstract'>
|
||||||
|
<p>This specification defines the Document Object Model Level 2
|
||||||
|
Core, a platform- and language-neutral interface that allows
|
||||||
|
programs and scripts to dynamically access and update the content
|
||||||
|
and structure of documents. The Document Object Model Level 2 Core
|
||||||
|
builds on the Document Object Model Level 1 Core.</p>
|
||||||
|
|
||||||
|
<p>The DOM Level 2 Core is made of a set of core interfaces to
|
||||||
|
create and manipulate the structure and contents of a document. The
|
||||||
|
Core also contains specialized interfaces dedicated to XML.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 id='status'>Status of this document</h2>
|
||||||
|
|
||||||
|
<div class='status'>
|
||||||
|
<p><em>This section describes the status of this document at the
|
||||||
|
time of its publication. Other documents may supersede this
|
||||||
|
document. The latest status of this document series is maintained
|
||||||
|
at the W3C.</em></p>
|
||||||
|
|
||||||
|
<p>This document has been reviewed by W3C Members and other
|
||||||
|
interested parties and has been endorsed by the Director as a <a
|
||||||
|
href='http://www.w3.org/Consortium/Process/Process-19991111/tr.html#RecsW3C'>
|
||||||
|
W3C Recommendation</a>. It is a stable document and may be used as
|
||||||
|
reference material or cited as a normative reference from another
|
||||||
|
document. W3C's role in making the Recommendation is to draw
|
||||||
|
attention to the specification and to promote its widespread
|
||||||
|
deployment. This enhances the functionality and interoperability of
|
||||||
|
the Web.</p>
|
||||||
|
|
||||||
|
<p>This document has been produced as part of the <a
|
||||||
|
href='http://www.w3.org/DOM/Activity.html'>W3C DOM Activity</a>.
|
||||||
|
The authors of this document are the DOM Working Group members.
|
||||||
|
Different modules of the Document Object Model have different
|
||||||
|
editors.</p>
|
||||||
|
|
||||||
|
<p>Please send general comments about this document to the public
|
||||||
|
mailing list <a href='mailto:www-dom@w3.org'>www-dom@w3.org</a>. An
|
||||||
|
<a href='http://lists.w3.org/Archives/Public/www-dom/'>archive</a>
|
||||||
|
is available at http://lists.w3.org/Archives/Public/www-dom/.</p>
|
||||||
|
|
||||||
|
<p>The English version of this specification is the only normative
|
||||||
|
version. Information about <a
|
||||||
|
href='http://www.w3.org/2000/11/DOM-Level-2-translations'>translations</a>
|
||||||
|
of this document is available at
|
||||||
|
http://www.w3.org/2000/11/DOM-Level-2-translations.</p>
|
||||||
|
|
||||||
|
<p>The <a href='http://www.w3.org/2000/11/DOM-Level-2-errata'>list
|
||||||
|
of known errors</a> in this document is available at
|
||||||
|
http://www.w3.org/2000/11/DOM-Level-2-errata</p>
|
||||||
|
|
||||||
|
<p>A list of <a href='http://www.w3.org/TR/'>current W3C
|
||||||
|
Recommendations and other technical documents</a> can be found at
|
||||||
|
http://www.w3.org/TR.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 id='table-of-contents'><a id="contents" name='contents'>Table
|
||||||
|
of contents</a></h2>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='expanded-toc.html'>Expanded Table of Contents</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='copyright-notice.html'>Copyright Notice</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='introduction.html'>What is the Document Object
|
||||||
|
Model?</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref' href='core.html'>1.
|
||||||
|
Document Object Model Core</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='changes.html'>Appendix A: Changes</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref' href='i18n.html'>Appendix
|
||||||
|
B: Accessing code point boundaries</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='idl-definitions.html'>Appendix C: IDL Definitions</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='java-binding.html'>Appendix D: Java Language Binding</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='ecma-script-binding.html'>Appendix E: ECMAScript Language
|
||||||
|
Binding</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='acknowledgements.html'>Appendix F: Acknowledgements</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='glossary.html'>Glossary</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='references.html'>References</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='def-index.html'>Index</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='n' href='expanded-toc.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
94
java/external/xdocs/dom/core/W3C-REC.css
vendored
Normal file
94
java/external/xdocs/dom/core/W3C-REC.css
vendored
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
/* This is an SSI script. Policy:
|
||||||
|
(1) Use CVS
|
||||||
|
(2) send e-mail to w3t-comm@w3.org if you edit this
|
||||||
|
*/
|
||||||
|
/* Style for a "Recommendation" */
|
||||||
|
|
||||||
|
/*
|
||||||
|
This is an SSI script. Policy:
|
||||||
|
(1) Use CVS
|
||||||
|
(2) send e-mail to w3t-comm@w3.org if you edit this
|
||||||
|
|
||||||
|
Acknowledgments:
|
||||||
|
|
||||||
|
- 'background-color' doesn't work on Mac IE 3, but 'background'
|
||||||
|
does (Susan Lesch <lesch@macvirus.com>)
|
||||||
|
|
||||||
|
- 'smaller' leads to illegible text in both Mac IE and Mac NS,
|
||||||
|
'small' is better: works in Mac NS, but is always 12pt in Mac IE
|
||||||
|
3 (Susan Lesch <lesch@macvirus.com>)
|
||||||
|
|
||||||
|
$Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 2em 1em 2em 70px;
|
||||||
|
font-family: sans-serif;
|
||||||
|
color: black;
|
||||||
|
background: white;
|
||||||
|
background-position: top left;
|
||||||
|
background-attachment: fixed;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td { /* ns 4 */
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 { text-align: left }
|
||||||
|
h1, h2, h3 { color: #005A9C }
|
||||||
|
h1 { font: 170% sans-serif }
|
||||||
|
h2 { font: 140% sans-serif }
|
||||||
|
h3 { font: 120% sans-serif }
|
||||||
|
h4 { font: bold 100% sans-serif }
|
||||||
|
h5 { font: italic 100% sans-serif }
|
||||||
|
h6 { font: small-caps 100% sans-serif }
|
||||||
|
|
||||||
|
.hide { display: none }
|
||||||
|
|
||||||
|
div.head { margin-bottom: 1em }
|
||||||
|
div.head h1 { margin-top: 2em; clear: both }
|
||||||
|
div.head table { margin-left: 2em; margin-top: 2em }
|
||||||
|
div.head img { color: white; border: none } /* remove border from top image */
|
||||||
|
|
||||||
|
p.copyright { font-size: small }
|
||||||
|
p.copyright small { font-size: small }
|
||||||
|
|
||||||
|
@media screen { /* hide from IE3 */
|
||||||
|
a:hover { background: #ffa }
|
||||||
|
}
|
||||||
|
|
||||||
|
pre { margin-left: 2em }
|
||||||
|
/*
|
||||||
|
p {
|
||||||
|
margin-top: 0.6em;
|
||||||
|
margin-bottom: 0.6em;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
dt, dd { margin-top: 0; margin-bottom: 0 } /* opera 3.50 */
|
||||||
|
dt { font-weight: bold }
|
||||||
|
|
||||||
|
pre, code { font-family: monospace } /* navigator 4 requires this */
|
||||||
|
|
||||||
|
ul.toc {
|
||||||
|
list-style: disc; /* Mac NS has problem with 'none' */
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media aural {
|
||||||
|
h1, h2, h3 { stress: 20; richness: 90 }
|
||||||
|
.hide { speak: none }
|
||||||
|
p.copyright { volume: x-soft; speech-rate: x-fast }
|
||||||
|
dt { pause-before: 20% }
|
||||||
|
pre { speak-punctuation: code }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Things (icons) that should only show up in projection mode */
|
||||||
|
.projection { display: none }
|
||||||
|
@media projection { .projection { display: inline } }
|
||||||
|
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-image: url(http://www.w3.org/StyleSheets/TR/logo-REC);
|
||||||
|
}
|
||||||
|
|
||||||
101
java/external/xdocs/dom/core/acknowledgements.html
vendored
Normal file
101
java/external/xdocs/dom/core/acknowledgements.html
vendored
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:25 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Acknowledgements</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='glossary.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='ecma-script-binding.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='ecma-script-binding.html'>previous</a> <a
|
||||||
|
accesskey='n' href='glossary.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="contributors" name='contributors'></a>
|
||||||
|
|
||||||
|
<h1 id='contributors-h1' class='adiv1'>Appendix F:
|
||||||
|
Acknowledgements</h1>
|
||||||
|
|
||||||
|
<p>Many people contributed to this specification, including members
|
||||||
|
of the DOM Working Group and the DOM Interest Group. We especially
|
||||||
|
thank the following:</p>
|
||||||
|
|
||||||
|
<p>Lauren Wood (SoftQuad Software Inc., <em>chair</em>), Andrew
|
||||||
|
Watson (Object Management Group), Andy Heninger (IBM), Arnaud Le
|
||||||
|
Hors (W3C and IBM), Ben Chang (Oracle), Bill Smith (Sun), Bill Shea
|
||||||
|
(Merrill Lynch), Bob Sutor (IBM), Chris Lovett (Microsoft), Chris
|
||||||
|
Wilson (Microsoft), David Brownell (Sun), David Singer (IBM), Don
|
||||||
|
Park (invited), Eric Vasilik (Microsoft), Gavin Nicol (INSO), Ian
|
||||||
|
Jacobs (W3C), James Clark (invited), James Davidson (Sun), Jared
|
||||||
|
Sorensen (Novell), Joe Kesselman (IBM), Joe Lapp (webMethods), Joe
|
||||||
|
Marini (Macromedia), Johnny Stenback (Netscape), Jonathan Marsh
|
||||||
|
(Microsoft), Jonathan Robie (Texcel Research and Software AG), Kim
|
||||||
|
Adamson-Sharpe (SoftQuad Software Inc.), Laurence Cable (Sun), Mark
|
||||||
|
Davis (IBM), Mark Scardina (Oracle), Martin Dürst (W3C), Mick
|
||||||
|
Goulish (Software AG), Mike Champion (Arbortext and Software AG),
|
||||||
|
Miles Sabin (Cromwell Media), Patti Lutsky (Arbortext), Paul Grosso
|
||||||
|
(Arbortext), Peter Sharpe (SoftQuad Software Inc.), Phil Karlton
|
||||||
|
(Netscape), Philippe Le Hégaret (W3C, <em>W3C team
|
||||||
|
contact</em>), Ramesh Lekshmynarayanan (Merrill Lynch), Ray Whitmer
|
||||||
|
(iMall, Excite@Home and Netscape), Rich Rollman (Microsoft), Rick
|
||||||
|
Gessner (Netscape), Scott Isaacs (Microsoft), Sharon Adler (INSO),
|
||||||
|
Steve Byrne (JavaSoft), Tim Bray (invited), Tom Pixley (Netscape),
|
||||||
|
Vidur Apparao (Netscape), Vinod Anupam (Lucent).</p>
|
||||||
|
|
||||||
|
<p>Thanks to all those who have helped to improve this
|
||||||
|
specification by sending suggestions and corrections.</p>
|
||||||
|
|
||||||
|
<div class='div2'><a id="Productions" name='Productions'></a>
|
||||||
|
|
||||||
|
<h2 id='Productions-h2' class='adiv2'>F.1: Production Systems</h2>
|
||||||
|
|
||||||
|
<p>This specification was written in XML. The HTML, OMG IDL, Java
|
||||||
|
and ECMA Script bindings were all produced automatically.</p>
|
||||||
|
|
||||||
|
<p>Thanks to Joe English, author of <a
|
||||||
|
href='http://www.flightlab.com/cost'>cost</a>, which was used as
|
||||||
|
the basis for producing DOM Level 1. Thanks also to Gavin Nicol,
|
||||||
|
who wrote the scripts which run on top of cost. Arnaud Le Hors and
|
||||||
|
Philippe Le Hégaret maintained the scripts.</p>
|
||||||
|
|
||||||
|
<p>For DOM Level 2, we used <a
|
||||||
|
href='http://xml.apache.org/xerces-j'>Xerces</a> as the basis DOM
|
||||||
|
implementation and wish to thank the authors. Philippe Le
|
||||||
|
Hégaret and Arnaud Le Hors wrote the <a
|
||||||
|
href='http://dev.w3.org/cvsweb/java/classes/org/w3c/tools/specgenerator/'>
|
||||||
|
Java programs</a> which are the DOM application.</p>
|
||||||
|
|
||||||
|
<p>Thanks also to Jan Kärrman, author of <a
|
||||||
|
href='http://www.tdb.uu.se/~jan/html2ps.html'>html2ps</a>, which we
|
||||||
|
use in creating the PostScript version of the specification.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 Productions --></div>
|
||||||
|
|
||||||
|
<!-- div1 contributors -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='ecma-script-binding.html'>previous</a>
|
||||||
|
<a accesskey='n' href='glossary.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
193
java/external/xdocs/dom/core/changes.html
vendored
Normal file
193
java/external/xdocs/dom/core/changes.html
vendored
Normal file
@ -0,0 +1,193 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:01 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Changes</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='i18n.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='core.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='core.html'>previous</a> <a accesskey='n'
|
||||||
|
href='i18n.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="Changes" name='Changes'></a>
|
||||||
|
|
||||||
|
<h1 id='Changes-h1' class='adiv1'>Appendix A: Changes</h1>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><i>Editors</i></dt>
|
||||||
|
|
||||||
|
<dd>Arnaud Le Hors, IBM</dd>
|
||||||
|
|
||||||
|
<dd>Philippe Le Hégaret, W3C</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<div class='div2'><a id="DOMLevel1to2Changes"
|
||||||
|
name='DOMLevel1to2Changes'></a>
|
||||||
|
|
||||||
|
<h2 id='DOMLevel1to2Changes-h2' class='adiv2'>A.1: Changes between
|
||||||
|
DOM Level 1 Core and DOM Level 2 Core</h2>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b>OMG IDL</b></dt>
|
||||||
|
|
||||||
|
<dd>The DOM Level 2 specifications are now using Corba 2.3.1
|
||||||
|
instead of Corba 2.2.</dd>
|
||||||
|
|
||||||
|
<dt><b>Type <a
|
||||||
|
href='core.html#DOMString'><code>DOMString</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The definition of <a
|
||||||
|
href='core.html#DOMString'><code>DOMString</code></a> in IDL is now
|
||||||
|
a <code>valuetype</code>.</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<div class='div3'><a id="DOMLevel1Changes"
|
||||||
|
name='DOMLevel1Changes'></a>
|
||||||
|
|
||||||
|
<h3 id='DOMLevel1Changes-h3' class='adiv3'>A.1.1: Changes to DOM
|
||||||
|
Level 1 Core interfaces and exceptions</h3>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b>Interface <a
|
||||||
|
href='core.html#ID-637646024'><code>Attr</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a href='core.html#ID-637646024'><code>Attr</code></a>
|
||||||
|
interface has one new attribute: <code>ownerElement</code>.</dd>
|
||||||
|
|
||||||
|
<dt><b>Interface <a
|
||||||
|
href='core.html#i-Document'><code>Document</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a href='core.html#i-Document'><code>Document</code></a>
|
||||||
|
interface has five new methods: <code>importNode</code>,
|
||||||
|
<code>createElementNS</code>, <code>createAttributeNS</code>,
|
||||||
|
<code>getElementsByTagNameNS</code> and
|
||||||
|
<code>getElementById</code>.</dd>
|
||||||
|
|
||||||
|
<dt><b>Interface <a
|
||||||
|
href='core.html#ID-1780488922'><code>NamedNodeMap</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a
|
||||||
|
href='core.html#ID-1780488922'><code>NamedNodeMap</code></a>
|
||||||
|
interface has three new methods: <code>getNamedItemNS</code>,
|
||||||
|
<code>setNamedItemNS</code>, <code>removeNamedItemNS</code>.</dd>
|
||||||
|
|
||||||
|
<dt><b>Interface <a
|
||||||
|
href='core.html#ID-1950641247'><code>Node</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a href='core.html#ID-1950641247'><code>Node</code></a>
|
||||||
|
interface has two new methods: <code>isSupported</code> and
|
||||||
|
<code>hasAttributes</code>.<br />
|
||||||
|
<code>normalize</code>, previously in the <a
|
||||||
|
href='core.html#ID-745549614'><code>Element</code></a> interface,
|
||||||
|
has been moved in the <a
|
||||||
|
href='core.html#ID-1950641247'><code>Node</code></a>
|
||||||
|
interface.<br />
|
||||||
|
The <a href='core.html#ID-1950641247'><code>Node</code></a>
|
||||||
|
interface has three new attributes: <code>namespaceURI</code>,
|
||||||
|
<code>prefix</code> and <code>localName</code>.<br />
|
||||||
|
The <code>ownerDocument</code> attribute was specified to be
|
||||||
|
<code>null</code> when the node is a <a
|
||||||
|
href='core.html#i-Document'><code>Document</code></a>. It now is
|
||||||
|
also <code>null</code> when the node is a <a
|
||||||
|
href='core.html#ID-412266927'><code>DocumentType</code></a> which
|
||||||
|
is not used with any <a class='noxref'
|
||||||
|
href='core.html#i-Document'><code>Document</code></a> yet.</dd>
|
||||||
|
|
||||||
|
<dt><b>Interface <a
|
||||||
|
href='core.html#ID-412266927'><code>DocumentType</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a
|
||||||
|
href='core.html#ID-412266927'><code>DocumentType</code></a>
|
||||||
|
interface has three attributes: <code>publicId</code>,
|
||||||
|
<code>systemId</code> and <code>internalSubset</code>.</dd>
|
||||||
|
|
||||||
|
<dt><b>Interface <a
|
||||||
|
href='core.html#ID-102161490'><code>DOMImplementation</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a
|
||||||
|
href='core.html#ID-102161490'><code>DOMImplementation</code></a>
|
||||||
|
interface has two new methods: <code>createDocumentType</code> and
|
||||||
|
<code>createDocument</code>.</dd>
|
||||||
|
|
||||||
|
<dt><b>Interface <a
|
||||||
|
href='core.html#ID-745549614'><code>Element</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a href='core.html#ID-745549614'><code>Element</code></a>
|
||||||
|
interface has eight new methods: <code>getAttributeNS</code>,
|
||||||
|
<code>setAttributeNS</code>, <code>removeAttributeNS</code>,
|
||||||
|
<code>getAttributeNodeNS</code>, <code>setAttributeNodeNS</code>,
|
||||||
|
<code>getElementsByTagNameNS</code>, <code>hasAttribute</code> and
|
||||||
|
<code>hasAttributeNS</code>.<br />
|
||||||
|
The method <code>normalize</code> is now inherited from the <a
|
||||||
|
href='core.html#ID-1950641247'><code>Node</code></a> interface
|
||||||
|
where it was moved.</dd>
|
||||||
|
|
||||||
|
<dt><b>Exception <a
|
||||||
|
href='core.html#ID-17189187'><code>DOMException</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a
|
||||||
|
href='core.html#ID-17189187'><code>DOMException</code></a> has five
|
||||||
|
new exception codes: <code>INVALID_STATE_ERR</code>,
|
||||||
|
<code>SYNTAX_ERR</code>, <code>INVALID_MODIFICATION_ERR</code>,
|
||||||
|
<code>NAMESPACE_ERR</code> and
|
||||||
|
<code>INVALID_ACCESS_ERR</code>.</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div3 DOMLevel1Changes -->
|
||||||
|
<div class='div3'><a id="DOMLevel2Addons"
|
||||||
|
name='DOMLevel2Addons'></a>
|
||||||
|
|
||||||
|
<h3 id='DOMLevel2Addons-h3' class='adiv3'>A.1.2: New features</h3>
|
||||||
|
|
||||||
|
<div class='div4'><a id="DOMLevel2Addons-types"
|
||||||
|
name='DOMLevel2Addons-types'></a>
|
||||||
|
|
||||||
|
<h4 id='DOMLevel2Addons-types-h4' class='adiv4'>A.1.2.1: New
|
||||||
|
types</h4>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b><a
|
||||||
|
href='core.html#DOMTimeStamp'><code>DOMTimeStamp</code></a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <a
|
||||||
|
href='core.html#DOMTimeStamp'><code>DOMTimeStamp</code></a> type
|
||||||
|
was added to the Core module.</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div4 DOMLevel2Addons-types --></div>
|
||||||
|
|
||||||
|
<!-- div3 DOMLevel2Addons --></div>
|
||||||
|
|
||||||
|
<!-- div2 DOMLevel1to2Changes --></div>
|
||||||
|
|
||||||
|
<!-- div1 Changes -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='core.html'>previous</a> <a
|
||||||
|
accesskey='n' href='i18n.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
229
java/external/xdocs/dom/core/copyright-notice.html
vendored
Normal file
229
java/external/xdocs/dom/core/copyright-notice.html
vendored
Normal file
@ -0,0 +1,229 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:42:28 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Copyright Notice</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='introduction.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='expanded-toc.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='expanded-toc.html'>previous</a> <a accesskey='n'
|
||||||
|
href='introduction.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="Copyright-Notice"
|
||||||
|
name='Copyright-Notice'></a>
|
||||||
|
|
||||||
|
<h1 id='Copyright-Notice-h1' class='div1'>Copyright Notice</h1>
|
||||||
|
|
||||||
|
<p><b>Copyright © 2000 <a href='http://www.w3.org/'>World Wide
|
||||||
|
Web Consortium</a>, (<a
|
||||||
|
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
|
||||||
|
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
|
||||||
|
Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved.</b></p>
|
||||||
|
|
||||||
|
<p>This document is published under the <a
|
||||||
|
href='copyright-notice.html#Copyright-notice-document'>W3C Document
|
||||||
|
Copyright Notice and License</a>. The bindings within this document
|
||||||
|
are published under the <a
|
||||||
|
href='copyright-notice.html#Copyright-notice-software'>W3C Software
|
||||||
|
Copyright Notice and License</a>. The software license requires
|
||||||
|
"Notice of any changes or modifications to the W3C files, including
|
||||||
|
the date changes were made." Consequently, modified versions of the
|
||||||
|
DOM bindings must document that they do not conform to the W3C
|
||||||
|
standard; in the case of the IDL definitions, the pragma prefix can
|
||||||
|
no longer be 'w3c.org'; in the case of the Java Language binding,
|
||||||
|
the package names can no longer be in the 'org.w3c' package.</p>
|
||||||
|
|
||||||
|
<div class='div2'><a id="Copyright-notice-document"
|
||||||
|
name='Copyright-notice-document'></a>
|
||||||
|
|
||||||
|
<hr width='50' align='center' title='Area separator' />
|
||||||
|
<h2 id='Copyright-notice-document-h2' class='div2'>W3C Document
|
||||||
|
Copyright Notice and License</h2>
|
||||||
|
|
||||||
|
<p><b>Note:</b> This section is a copy of the W3C Document Notice
|
||||||
|
and License and could be found at <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-documents-19990405'>
|
||||||
|
http://www.w3.org/Consortium/Legal/copyright-documents-19990405</a>.</p>
|
||||||
|
|
||||||
|
<p><b>Copyright © 1994-2000 <a href='http://www.w3.org/'>World
|
||||||
|
Wide Web Consortium</a>, (<a
|
||||||
|
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
|
||||||
|
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
|
||||||
|
Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved.</b></p>
|
||||||
|
|
||||||
|
<p><b>http://www.w3.org/Consortium/Legal/</b></p>
|
||||||
|
|
||||||
|
<p>Public documents on the W3C site are provided by the copyright
|
||||||
|
holders under the following license. The software or Document Type
|
||||||
|
Definitions (DTDs) associated with W3C specifications are governed
|
||||||
|
by the <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-software.html'>Software
|
||||||
|
Notice</a>. By using and/or copying this document, or the W3C
|
||||||
|
document from which this statement is linked, you (the licensee)
|
||||||
|
agree that you have read, understood, and will comply with the
|
||||||
|
following terms and conditions:</p>
|
||||||
|
|
||||||
|
<p>Permission to use, copy, and distribute the contents of this
|
||||||
|
document, or the W3C document from which this statement is linked,
|
||||||
|
in any medium for any purpose and without fee or royalty is hereby
|
||||||
|
granted, provided that you include the following on <em>ALL</em>
|
||||||
|
copies of the document, or portions thereof, that you use:</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>A link or URL to the original W3C document.</li>
|
||||||
|
|
||||||
|
<li>The pre-existing copyright notice of the original author, or if
|
||||||
|
it doesn't exist, a notice of the form: "Copyright ©
|
||||||
|
[$date-of-document] <a href='http://www.w3.org/'>World Wide Web
|
||||||
|
Consortium</a>, (<a href='http://www.lcs.mit.edu/'>Massachusetts
|
||||||
|
Institute of Technology</a>, <a
|
||||||
|
href='http://www.inria.fr/'>Institut National de Recherche en
|
||||||
|
Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved. http://www.w3.org/Consortium/Legal/" (Hypertext is
|
||||||
|
preferred, but a textual representation is permitted.)</li>
|
||||||
|
|
||||||
|
<li><em>If it exists</em>, the STATUS of the W3C document.</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<p>When space permits, inclusion of the full text of this
|
||||||
|
<b>NOTICE</b> should be provided. We request that authorship
|
||||||
|
attribution be provided in any software, documents, or other items
|
||||||
|
or products that you create pursuant to the implementation of the
|
||||||
|
contents of this document, or any portion thereof.</p>
|
||||||
|
|
||||||
|
<p>No right to create modifications or derivatives of W3C documents
|
||||||
|
is granted pursuant to this license. However, if additional
|
||||||
|
requirements (documented in the <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/IPR-FAQ.html'>Copyright
|
||||||
|
FAQ</a>) are satisfied, the right to create modifications or
|
||||||
|
derivatives is sometimes granted by the W3C to individuals
|
||||||
|
complying with those requirements.</p>
|
||||||
|
|
||||||
|
<p>THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
|
||||||
|
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT
|
||||||
|
NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS
|
||||||
|
OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
|
||||||
|
IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
|
||||||
|
PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
|
||||||
|
|
||||||
|
<p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
|
||||||
|
DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS
|
||||||
|
THEREOF.</p>
|
||||||
|
|
||||||
|
<p>The name and trademarks of copyright holders may NOT be used in
|
||||||
|
advertising or publicity pertaining to this document or its
|
||||||
|
contents without specific, written prior permission. Title to
|
||||||
|
copyright in this document will at all times remain with copyright
|
||||||
|
holders.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 Copyright-notice-document -->
|
||||||
|
<div class='div2'><a id="Copyright-notice-software"
|
||||||
|
name='Copyright-notice-software'></a>
|
||||||
|
|
||||||
|
<hr width='50' align='center' title='Area separator' />
|
||||||
|
<h2 id='Copyright-notice-software-h2' class='div2'>W3C Software
|
||||||
|
Copyright Notice and License</h2>
|
||||||
|
|
||||||
|
<p><b>Note:</b> This section is a copy of the W3C Software
|
||||||
|
Copyright Notice and License and could be found at <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>
|
||||||
|
http://www.w3.org/Consortium/Legal/copyright-software-19980720</a></p>
|
||||||
|
|
||||||
|
<p><b>Copyright © 1994-2000 <a href='http://www.w3.org/'>World
|
||||||
|
Wide Web Consortium</a>, (<a
|
||||||
|
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
|
||||||
|
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
|
||||||
|
Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved.</b></p>
|
||||||
|
|
||||||
|
<p><b>http://www.w3.org/Consortium/Legal/</b></p>
|
||||||
|
|
||||||
|
<p>This W3C work (including software, documents, or other related
|
||||||
|
items) is being provided by the copyright holders under the
|
||||||
|
following license. By obtaining, using and/or copying this work,
|
||||||
|
you (the licensee) agree that you have read, understood, and will
|
||||||
|
comply with the following terms and conditions:</p>
|
||||||
|
|
||||||
|
<p>Permission to use, copy, and modify this software and its
|
||||||
|
documentation, with or without modification, for any purpose and
|
||||||
|
without fee or royalty is hereby granted, provided that you include
|
||||||
|
the following on ALL copies of the software and documentation or
|
||||||
|
portions thereof, including modifications, that you make:</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>The full text of this NOTICE in a location viewable to users of
|
||||||
|
the redistributed or derivative work.</li>
|
||||||
|
|
||||||
|
<li>Any pre-existing intellectual property disclaimers. If none
|
||||||
|
exist, then a notice of the following form: "Copyright ©
|
||||||
|
[$date-of-software] <a href='http://www.w3.org/'>World Wide Web
|
||||||
|
Consortium</a>, (<a href='http://www.lcs.mit.edu/'>Massachusetts
|
||||||
|
Institute of Technology</a>, <a
|
||||||
|
href='http://www.inria.fr/'>Institut National de Recherche en
|
||||||
|
Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved. http://www.w3.org/Consortium/Legal/."</li>
|
||||||
|
|
||||||
|
<li>Notice of any changes or modifications to the W3C files,
|
||||||
|
including the date changes were made. (We recommend you provide
|
||||||
|
URIs to the location from which the code is derived.)</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<p>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
|
||||||
|
COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
|
||||||
|
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
|
||||||
|
USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD
|
||||||
|
PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
|
||||||
|
|
||||||
|
<p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
|
||||||
|
SOFTWARE OR DOCUMENTATION.</p>
|
||||||
|
|
||||||
|
<p>The name and trademarks of copyright holders may NOT be used in
|
||||||
|
advertising or publicity pertaining to the software without
|
||||||
|
specific, written prior permission. Title to copyright in this
|
||||||
|
software and any associated documentation will at all times remain
|
||||||
|
with copyright holders.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 Copyright-notice-software --></div>
|
||||||
|
|
||||||
|
<!-- div1 Copyright-Notice -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='expanded-toc.html'>previous</a> <a
|
||||||
|
accesskey='n' href='introduction.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
6816
java/external/xdocs/dom/core/core.html
vendored
Normal file
6816
java/external/xdocs/dom/core/core.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
973
java/external/xdocs/dom/core/def-index.html
vendored
Normal file
973
java/external/xdocs/dom/core/def-index.html
vendored
Normal file
@ -0,0 +1,973 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:27 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Index</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='previous' href='references.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='references.html'>previous</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="Index" name='Index'></a>
|
||||||
|
|
||||||
|
<h1 id='role-index' class='index'>Index</h1>
|
||||||
|
|
||||||
|
<table
|
||||||
|
summary='the table contains all keywords used in this document'>
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref' href='core.html#DOMString'>16-bit
|
||||||
|
unit</a> <a class='index-inst' href='core.html#DOMString'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-5DFED1F0'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-FF21A306'>3</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-7D61178C'>4</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-3EDB695F'>5</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-7C603781'>6</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-E5CBA7FB'>7</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-38853C1D'>8</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-16-bit-unit'>9</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-952280727'>ancestor</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-952280727'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-785887307'>2</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-184E7107'>3</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-ancestor'>4</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>API</a> <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C3082'>1</a>, <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C30821'>2</a>, <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C30822'>3</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-1CED5498'>4</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-C74D1578'>5</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-API'>6</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-184E7107'>appendChild</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-32791A2F'>appendData</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-637646024'>Attr</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>ATTRIBUTE_NODE</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-84CF096'>attributes</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>CDATA_SECTION_NODE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-667469212'>CDATASection</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-FF21A306'>CharacterData</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-5DFED1F0'>Charmod</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-5DFED1F0'>1</a>, <a class='index-inst'
|
||||||
|
href='references.html#Charmod'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1590626202'>child</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-1590626202'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>2</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-child'>3</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1451460987'>childNodes</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>client application</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C3082'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-application'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-3A0ED0A4'>cloneNode</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>COM</a> <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C3082'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-1CED5498'>2</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-COM'>3</a>, <a class='index-inst'
|
||||||
|
href='references.html#COM'>4</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1728279322'>Comment</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>COMMENT_NODE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-87CD092'>convenience</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-87CD092'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-745549614'>2</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-convenience'>3</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>CORBA</a> <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C3082'>1</a>, <a class='index-inst'
|
||||||
|
href='references.html#CORBA'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1084891198'>createAttribute</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-DocCrAttrNS'>createAttributeNS</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-D26C0AF8'>createCDATASection</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1334481328'>createComment</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Level-2-Core-DOM-createDocument'>createDocument</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-35CB04B5'>createDocumentFragment</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Level-2-Core-DOM-createDocType'>createDocumentType</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-2141741547'>createElement</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-DocCrElNS'>createElementNS</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-392B75AE'>createEntityReference</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-135944439'>createProcessingInstruction</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1975348127'>createTextNode</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-72AB8359'>data</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-72AB8359'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-837822393'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C30821'>data model</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C30821'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-datamodel'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-7C603781'>deleteData</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Namespaces-Considerations'>descendant</a> <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#Core-Document-importNode'>2</a>,
|
||||||
|
<a class='index-inst' href='core.html#ID-1938918D'>3</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-A6C90942'>4</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-527DCFF2'>5</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-11C98490'>6</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-descendant'>7</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-B63ED1A31'>doctype</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#i-Document'>Document</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>DOCUMENT_FRAGMENT_NODE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>DOCUMENT_NODE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>DOCUMENT_TYPE_NODE</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-87CD092'>documentElement</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-B63ED1A3'>DocumentFragment</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-412266927'>DocumentType</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C30824'>DOM Level 1</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C30824'>1</a>, <a
|
||||||
|
class='index-inst' href='references.html#DOM-Level-1'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-Conformance'>DOM Level 2 CSS</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-Conformance'>1</a>,
|
||||||
|
<a class='index-inst' href='references.html#DOMCSS-inf'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-Conformance'>DOM Level 2 Events</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-Conformance'>1</a>,
|
||||||
|
<a class='index-inst'
|
||||||
|
href='references.html#DOMEvents-inf'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-Conformance'>DOM Level 2 HTML</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-Conformance'>1</a>,
|
||||||
|
<a class='index-inst' href='core.html#ID-BBACDC08'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-E067D597'>3</a>, <a
|
||||||
|
class='index-inst' href='references.html#DOMHTML-inf'>4</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-Conformance'>DOM Level 2 Range</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-Conformance'>1</a>,
|
||||||
|
<a class='index-inst'
|
||||||
|
href='references.html#DOMRange-inf'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-Conformance'>DOM Level 2 Style
|
||||||
|
Sheets</a> <a class='index-inst'
|
||||||
|
href='introduction.html#ID-Conformance'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='references.html#DOMStyleSheets-inf'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-Conformance'>DOM Level 2 Traversal</a>
|
||||||
|
<a class='index-inst'
|
||||||
|
href='introduction.html#ID-Conformance'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='references.html#DOMTraversal-inf'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-Conformance'>DOM Level 2 Views</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-Conformance'>1</a>,
|
||||||
|
<a class='index-inst'
|
||||||
|
href='references.html#DOMViews-inf'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-17189187'>DOMException</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-102161490'>DOMImplementation</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#DOMString'>DOMString</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>DOMSTRING_SIZE_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#DOMTimeStamp'>DOMTimeStamp</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>ECMAScript</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C3082'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-249F15BA'>2</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-ECMAScript'>3</a>, <a
|
||||||
|
class='index-inst' href='references.html#ECMAScript'>4</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-745549614'>Element</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-745549614'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-1590626202'>2</a>, <a class='index-inst'
|
||||||
|
href='core.html#td-live'>3</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-5DFED1F0'>4</a>, <a class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>5</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-element'>6</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>ELEMENT_NODE</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1788794630'>entities</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-527DCFF2'>Entity</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>ENTITY_NODE</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>ENTITY_REFERENCE_NODE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-11C98490'>EntityReference</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-169727388'>firstChild</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-666EE0F9'>getAttribute</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-217A91B8'>getAttributeNode</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-ElGetAtNodeNS'>getAttributeNodeNS</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-ElGetAttrNS'>getAttributeNS</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-getElBId'>getElementById</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-A6C9094'>getElementsByTagName</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-A6C9094'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-1938918D'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-getElBTNNS'>getElementsByTagNameNS</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-getElBTNNS'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-A6C90942'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1074577549'>getNamedItem</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-getNamedItemNS'>getNamedItemNS</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-ElHasAttr'>hasAttribute</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-ElHasAttrNS'>hasAttributeNS</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-NodeHasAttrs'>hasAttributes</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-810594187'>hasChildNodes</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-5CED94D7'>hasFeature</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>HIERARCHY_REQUEST_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C30824'>hosting implementation</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C30824'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='glossary.html#dt-implementation'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>HTML</a> <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C3082'>1</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-HTML'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='glossary.html#dt-HTML'>HTML4.0</a> <a class='index-inst'
|
||||||
|
href='glossary.html#dt-HTML'>1</a>, <a class='index-inst'
|
||||||
|
href='references.html#HTML40'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1B793EBA'>implementation</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Core-Document-importNode'>importNode</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>INDEX_SIZE_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1312295772'>information item</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-1312295772'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-infoitem'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C30821'>Infoset</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C30821'>1</a>, <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C30822'>2</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-infoitem'>3</a>, <a
|
||||||
|
class='index-inst' href='references.html#InfoSet'>4</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1CED5498'>inheritance</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-1CED5498'>1</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-inheritance'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-952280727'>insertBefore</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-3EDB695F'>insertData</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>interface</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C3082'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-interface'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-Core-DocType-internalSubset'>internalSubset</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>INUSE_ATTRIBUTE_ERR</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>INVALID_ACCESS_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>INVALID_CHARACTER_ERR</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>INVALID_MODIFICATION_ERR</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>INVALID_STATE_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-C74D1578'>ISO/IEC 10646</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-C74D1578'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-16-bit-unit'>2</a>, <a
|
||||||
|
class='index-inst' href='references.html#ISO10646'>3</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Level-2-Core-Node-supports'>isSupported</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-844377136'>item</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-844377136'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-349467F9'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>Java</a> <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C3082'>1</a>, <a class='index-inst'
|
||||||
|
href='references.html#Java'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>JavaIDL</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C3082'>1</a>, <a
|
||||||
|
class='index-inst' href='references.html#JavaIDL'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>JavaScript</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C3082'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-ECMAScript'>2</a>, <a
|
||||||
|
class='index-inst' href='references.html#JavaScript'>3</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>JScript</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C3082'>1</a>, <a
|
||||||
|
class='index-inst' href='references.html#JScript'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>language binding</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C3082'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-lang-binding'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-61AD09FB'>lastChild</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-203510337'>length</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-203510337'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-6D0FB19E'>2</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-7D61178C'>3</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref' href='core.html#td-live'>live</a>
|
||||||
|
<a class='index-inst' href='core.html#td-live'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-536297177'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-1780488922'>3</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-DocCrElNS'>local name</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-DocCrElNS'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-DocCrAttrNS'>2</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-getElBTNNS'>3</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-getNamedItemNS'>4</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-removeNamedItemNS'>5</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-ElGetAttrNS'>6</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-ElRemAtNS'>7</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-ElGetAtNodeNS'>8</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-ElSetAtNodeNS'>9</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-A6C90942'>10</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-ElHasAttrNS'>11</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-localname'>12</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-NodeNSLocalN'>localName</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-Conformance'>method</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-Conformance'>1</a>,
|
||||||
|
<a class='index-inst' href='glossary.html#dt-method'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>MIDL</a> <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C3082'>1</a>, <a class='index-inst'
|
||||||
|
href='references.html#MSIDL'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C30821'>model</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C30821'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-model'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1112119403'>name</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-1112119403'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-1844763134'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1780488922'>NamedNodeMap</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Namespaces-Considerations'>namespace prefix</a> <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-392B75AE'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-NodeNSPrefix'>3</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-527DCFF2'>4</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-11C98490'>5</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='glossary.html#dt-namespaceprefix'>6</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Namespaces-Considerations'>namespace URI</a> <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Level-2-Core-DOM-createDocument'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-DocCrElNS'>3</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-DocCrAttrNS'>4</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-getElBTNNS'>5</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-NodeNSname'>6</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-getNamedItemNS'>7</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-removeNamedItemNS'>8</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-ElGetAttrNS'>9</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-ElSetAttrNS'>10</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-ElRemAtNS'>11</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-ElGetAtNodeNS'>12</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-ElSetAtNodeNS'>13</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-A6C90942'>14</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-ElHasAttrNS'>15</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-11C98490'>16</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-namespaceURI'>17</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>NAMESPACE_ERR</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Namespaces-Considerations'>Namespaces</a> <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Level-2-Core-DOM-createDocument'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-DocCrElNS'>3</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-NodeNSname'>4</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-NodeNSPrefix'>5</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-localname'>6</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-namespaceprefix'>7</a>,
|
||||||
|
<a class='index-inst' href='glossary.html#dt-namespaceURI'>8</a>,
|
||||||
|
<a class='index-inst' href='glossary.html#dt-qualifiedname'>9</a>,
|
||||||
|
<a class='index-inst' href='glossary.html#dt-XML-namespace'>10</a>,
|
||||||
|
<a class='index-inst' href='references.html#Namespaces'>11</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-NodeNSname'>namespaceURI</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-6AC54C2F'>nextSibling</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>NO_DATA_ALLOWED_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>NO_MODIFICATION_ALLOWED_ERR</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1950641247'>Node</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-536297177'>NodeList</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-F68D095'>nodeName</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-111237558'>nodeType</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-F68D080'>nodeValue</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-normalize'>normalize</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>NOT_FOUND_ERR</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>NOT_SUPPORTED_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-5431D1B9'>Notation</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>NOTATION_NODE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-6ABAEB38'>notationName</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-D46829EF'>notations</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C30821'>object model</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C30821'>1</a>, <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C30822'>2</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-object-model'>3</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>OMGIDL</a> <a
|
||||||
|
class='index-inst' href='introduction.html#ID-E7C3082'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-C74D1578'>2</a>, <a
|
||||||
|
class='index-inst' href='references.html#OMGIDL'>3</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#node-ownerDoc'>ownerDocument</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Attr-ownerElement'>ownerElement</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1060184317'>parent</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-1060184317'>1</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-parent'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1060184317'>parentNode</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-NodeNSPrefix'>prefix</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-640FB3C8'>previousSibling</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>PROCESSING_INSTRUCTION_NODE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1004215813'>ProcessingInstruction</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-Core-DocType-publicId'>publicId</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-Core-DocType-publicId'>1</a>,
|
||||||
|
<a class='index-inst' href='core.html#ID-54F2B4D0'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-D7303025'>3</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Namespaces-Considerations'>qualified name</a> <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Level-2-Core-DOM-createDocType'>2</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Level-2-Core-DOM-createDocument'>3</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-DocCrElNS'>4</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-DocCrAttrNS'>5</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-NodeNSPrefix'>6</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-NodeNSLocalN'>7</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-ElSetAttrNS'>8</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-qualifiedname'>9</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-3A0ED0A4'>readonly node</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-3A0ED0A4'>1</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-5431D1B9'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-527DCFF2'>3</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-11C98490'>4</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-readonly-node'>5</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-6D6AC0F9'>removeAttribute</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-D589198'>removeAttributeNode</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-ElRemAtNS'>removeAttributeNS</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1734834066'>removeChild</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-D58B193'>removeNamedItem</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-removeNamedItemNS'>removeNamedItemNS</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-785887307'>replaceChild</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-E5CBA7FB'>replaceData</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='glossary.html#dt-XML-namespace'>RFC2396</a> <a
|
||||||
|
class='index-inst' href='glossary.html#dt-XML-namespace'>1</a>, <a
|
||||||
|
class='index-inst' href='references.html#URIRef'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref' href='core.html#i-Document'>root
|
||||||
|
node</a> <a class='index-inst' href='core.html#i-Document'>1</a>,
|
||||||
|
<a class='index-inst' href='glossary.html#dt-root-node'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-F68F082'>setAttribute</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-887236154'>setAttributeNode</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-ElSetAtNodeNS'>setAttributeNodeNS</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-ElSetAttrNS'>setAttributeNS</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1025163788'>setNamedItem</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-setNamedItemNS'>setNamedItemNS</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-B63ED1A3'>sibling</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-B63ED1A3'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-38853C1D'>2</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-sibling'>3</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-862529273'>specified</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-38853C1D'>splitText</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-5DFED1F0'>string comparison</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-5DFED1F0'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>2</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='glossary.html#dt-string-compare'>3</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-6531BCCF'>substringData</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>SYNTAX_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-Core-DocType-systemId'>systemId</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-Core-DocType-systemId'>1</a>,
|
||||||
|
<a class='index-inst' href='core.html#ID-E8AAB1D0'>2</a>, <a
|
||||||
|
class='index-inst' href='core.html#ID-D7C29F3E'>3</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-104682815'>tagName</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1478689192'>target</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1312295772'>Text</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1841493061'>TEXT_NODE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-1478689192'>token</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-1478689192'>1</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-token'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-637646024'>tokenized</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-637646024'>1</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-tokenized'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-C74D1578'>Unicode</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-C74D1578'>1</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-16-bit-unit'>2</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-string-compare'>3</a>, <a class='index-inst'
|
||||||
|
href='references.html#Unicode'>4</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-221662474'>value</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-B63ED1A3'>well-formed document</a> <a
|
||||||
|
class='index-inst' href='core.html#ID-B63ED1A3'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-well-formed'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-258A00AF'>WRONG_DOCUMENT_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>XML</a> <a class='index-inst'
|
||||||
|
href='introduction.html#ID-E7C3082'>1</a>, <a class='index-inst'
|
||||||
|
href='core.html#ID-5431D1B9'>2</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-XML'>3</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-element'>4</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-well-formed'>5</a>, <a class='index-inst'
|
||||||
|
href='glossary.html#dt-XML-name'>6</a>, <a class='index-inst'
|
||||||
|
href='references.html#XML'>7</a></td>
|
||||||
|
<td width='30%'><a class='noxref' href='core.html#ID-5CED94D7'>XML
|
||||||
|
name</a> <a class='index-inst' href='core.html#ID-5CED94D7'>1</a>,
|
||||||
|
<a class='index-inst' href='glossary.html#dt-XML-name'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#Namespaces-Considerations'>XML namespace</a> <a
|
||||||
|
class='index-inst'
|
||||||
|
href='core.html#Namespaces-Considerations'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-XML-namespace'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='core.html#ID-normalize'>XPointer</a> <a class='index-inst'
|
||||||
|
href='core.html#ID-normalize'>1</a>, <a class='index-inst'
|
||||||
|
href='references.html#XPointer'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 Index -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='references.html'>previous</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
1015
java/external/xdocs/dom/core/ecma-script-binding.html
vendored
Normal file
1015
java/external/xdocs/dom/core/ecma-script-binding.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
220
java/external/xdocs/dom/core/expanded-toc.html
vendored
Normal file
220
java/external/xdocs/dom/core/expanded-toc.html
vendored
Normal file
@ -0,0 +1,220 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:42:27 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Expanded Table of Contents</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='copyright-notice.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='Overview.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='Overview.html'>previous</a> <a accesskey='n'
|
||||||
|
href='copyright-notice.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="TOC" name='TOC'></a>
|
||||||
|
|
||||||
|
<h1 id='TOC-h1' class='div1'>Expanded Table of Contents</h1>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='expanded-toc.html'>Expanded Table of Contents</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='copyright-notice.html'>Copyright Notice</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='copyright-notice.html#Copyright-notice-document'>W3C Document
|
||||||
|
Copyright Notice and License</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='copyright-notice.html#Copyright-notice-software'>W3C Software
|
||||||
|
Copyright Notice and License</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='introduction.html'>What is the Document Object Model?</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='introduction.html#ID-E7C3082'>Introduction</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='introduction.html#ID-E7C30821'>What the Document Object Model
|
||||||
|
is</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='introduction.html#ID-E7C30822'>What the Document Object Model
|
||||||
|
is not</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='introduction.html#ID-E7C30823'>Where the Document Object
|
||||||
|
Model came from</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='introduction.html#ID-E7C30824'>Entities and the DOM
|
||||||
|
Core</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='introduction.html#ID-Conformance'>Conformance</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='introduction.html#ID-E7C30826'>DOM Interfaces and DOM
|
||||||
|
Implementations</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref' href='core.html'>1.
|
||||||
|
Document Object Model Core</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='core.html#ID-1590626201'>1.1. Overview of the DOM Core
|
||||||
|
Interfaces</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='core.html#ID-1590626202'>1.1.1. The DOM Structure
|
||||||
|
Model</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='core.html#ID-249F15BA'>1.1.2. Memory Management</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='core.html#ID-45A944CB'>1.1.3. Naming Conventions</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='core.html#ID-1CED5498'>1.1.4. Inheritance vs. Flattened Views
|
||||||
|
of the API</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='core.html#ID-C74D1578'>1.1.5. The DOMString type</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='core.html#Core-DOMTimeStamp'>1.1.6. The DOMTimeStamp
|
||||||
|
type</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='core.html#ID-5DFED1F0'>1.1.7. String comparisons in the
|
||||||
|
DOM</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='core.html#Namespaces-Considerations'>1.1.8. XML
|
||||||
|
Namespaces</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='core.html#ID-BBACDC08'>1.2. Fundamental Interfaces</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='core.html#ID-E067D597'>1.3. Extended Interfaces</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='changes.html'>Appendix A: Changes</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='changes.html#DOMLevel1to2Changes'>A.1. Changes between DOM
|
||||||
|
Level 1 Core and DOM Level 2 Core</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='changes.html#DOMLevel1Changes'>A.1.1. Changes to DOM Level 1
|
||||||
|
Core interfaces and exceptions</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='changes.html#DOMLevel2Addons'>A.1.2. New features</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref' href='i18n.html'>Appendix
|
||||||
|
B: Accessing code point boundaries</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='i18n.html#i18n-introduction'>B.1. Introduction</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='i18n.html#i18n-methods'>B.2. Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='idl-definitions.html'>Appendix C: IDL Definitions</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='java-binding.html'>Appendix D: Java Language Binding</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='ecma-script-binding.html'>Appendix E: ECMAScript Language
|
||||||
|
Binding</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='acknowledgements.html'>Appendix F: Acknowledgements</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='acknowledgements.html#Productions'>F.1. Production
|
||||||
|
Systems</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='glossary.html'>Glossary</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='references.html'>References</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='references.html#References-Normative'>1. Normative
|
||||||
|
references</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='references.html#References-Informative'>2. Informative
|
||||||
|
references</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='def-index.html'>Index</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 TOC -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='Overview.html'>previous</a> <a
|
||||||
|
accesskey='n' href='copyright-notice.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
356
java/external/xdocs/dom/core/glossary.html
vendored
Normal file
356
java/external/xdocs/dom/core/glossary.html
vendored
Normal file
@ -0,0 +1,356 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:25 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Glossary</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='references.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='acknowledgements.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='acknowledgements.html'>previous</a> <a accesskey='n'
|
||||||
|
href='references.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="glossary" name='glossary'></a>
|
||||||
|
|
||||||
|
<h1 id='role-glossary' class='glossary'>Glossary</h1>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><i>Editors</i></dt>
|
||||||
|
|
||||||
|
<dd>Arnaud Le Hors, IBM</dd>
|
||||||
|
|
||||||
|
<dd>Lauren Wood, SoftQuad Software Inc.</dd>
|
||||||
|
|
||||||
|
<dd>Robert S. Sutor, IBM (for DOM Level 1)</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<p>Several of the following term definitions have been borrowed or
|
||||||
|
modified from similar definitions in other W3C or standards
|
||||||
|
documents. See the links within the definitions for more
|
||||||
|
information.</p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b><a id="dt-16-bit-unit" name='dt-16-bit-unit'>16-bit
|
||||||
|
unit</a></b></dt>
|
||||||
|
|
||||||
|
<dd>The base unit of a <a
|
||||||
|
href='core.html#DOMString'><code>DOMString</code></a>. This
|
||||||
|
indicates that indexing on a <a class='noxref'
|
||||||
|
href='core.html#DOMString'><code>DOMString</code></a> occurs in
|
||||||
|
units of 16 bits. This must not be misunderstood to mean that a <a
|
||||||
|
class='noxref'
|
||||||
|
href='core.html#DOMString'><code>DOMString</code></a> can store
|
||||||
|
arbitrary 16-bit units. A <a class='noxref'
|
||||||
|
href='core.html#DOMString'><code>DOMString</code></a> is a
|
||||||
|
character string encoded in UTF-16; this means that the
|
||||||
|
restrictions of UTF-16 as well as the other relevant restrictions
|
||||||
|
on character strings must be maintained. A single character, for
|
||||||
|
example in the form of a numeric character reference, may
|
||||||
|
correspond to one or two 16-bit units.<br />
|
||||||
|
For more information, see [<a class='noxref'
|
||||||
|
href='references.html#Unicode'>Unicode</a>] and [<a class='noxref'
|
||||||
|
href='references.html#ISO10646'>ISO/IEC 10646</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-ancestor" name='dt-ancestor'>ancestor</a></b></dt>
|
||||||
|
|
||||||
|
<dd>An <i>ancestor</i> node of any node A is any node above A in a
|
||||||
|
tree model of a document, where "above" means "toward the
|
||||||
|
root."</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-API" name='dt-API'>API</a></b></dt>
|
||||||
|
|
||||||
|
<dd>An <i>API</i> is an application programming interface, a set of
|
||||||
|
functions or <i>methods</i> used to access some functionality.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-child" name='dt-child'>child</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>child</i> is an immediate <i>descendant</i> node of a
|
||||||
|
node.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-application" name='dt-application'>client
|
||||||
|
application</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A [client] application is any software that uses the Document
|
||||||
|
Object Model programming interfaces provided by the hosting
|
||||||
|
implementation to accomplish useful work. Some examples of client
|
||||||
|
applications are scripts within an HTML or XML document.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-COM" name='dt-COM'>COM</a></b></dt>
|
||||||
|
|
||||||
|
<dd><i>COM</i> is Microsoft's Component Object Model [<a
|
||||||
|
class='noxref' href='references.html#COM'>COM</a>], a technology
|
||||||
|
for building applications from binary software components.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-convenience"
|
||||||
|
name='dt-convenience'>convenience</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>convenience method</i> is an operation on an object that
|
||||||
|
could be accomplished by a program consisting of more basic
|
||||||
|
operations on the object. Convenience <i>methods</i> are usually
|
||||||
|
provided to make the API easier and simpler to use or to allow
|
||||||
|
specific programs to create more optimized implementations for
|
||||||
|
common operations. A similar definition holds for a <i>convenience
|
||||||
|
property</i>.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-datamodel" name='dt-datamodel'>data
|
||||||
|
model</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>data model</i> is a collection of descriptions of data
|
||||||
|
structures and their contained fields, together with the operations
|
||||||
|
or functions that manipulate them.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-descendant"
|
||||||
|
name='dt-descendant'>descendant</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>descendant</i> node of any node A is any node below A in a
|
||||||
|
tree model of a document, where "above" means "toward the
|
||||||
|
root."</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-ECMAScript"
|
||||||
|
name='dt-ECMAScript'>ECMAScript</a></b></dt>
|
||||||
|
|
||||||
|
<dd>The programming language defined by the ECMA-262 standard [<a
|
||||||
|
class='noxref' href='references.html#ECMAScript'>ECMAScript</a>].
|
||||||
|
As stated in the standard, the originating technology for
|
||||||
|
ECMAScript was JavaScript [<a class='noxref'
|
||||||
|
href='references.html#JavaScript'>JavaScript</a>]. Note that in the
|
||||||
|
ECMAScript Language binding, the word "property" is used in the
|
||||||
|
same sense as the IDL term "attribute."</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-element" name='dt-element'>element</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Each document contains one or more elements, the boundaries of
|
||||||
|
which are either delimited by start-tags and end-tags, or, for
|
||||||
|
empty elements by an empty-element tag. Each element has a type,
|
||||||
|
identified by name, and may have a set of attributes. Each
|
||||||
|
attribute has a name and a value. See <a
|
||||||
|
href='http://www.w3.org/TR/1998/REC-xml-19980210#sec-logical-struct'>
|
||||||
|
<em>Logical Structures</em></a> in XML [<a class='noxref'
|
||||||
|
href='references.html#XML'>XML</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-infoitem" name='dt-infoitem'>information
|
||||||
|
item</a></b></dt>
|
||||||
|
|
||||||
|
<dd>An information item is an abstract representation of some
|
||||||
|
component of an XML document. See the [<a class='noxref'
|
||||||
|
href='references.html#InfoSet'>Infoset</a>] for details.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-implementation" name='dt-implementation'>hosting
|
||||||
|
implementation</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A [hosting] implementation is a software module that provides
|
||||||
|
an implementation of the DOM interfaces so that a client
|
||||||
|
application can use them. Some examples of hosting implementations
|
||||||
|
are browsers, editors and document repositories.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-HTML" name='dt-HTML'>HTML</a></b></dt>
|
||||||
|
|
||||||
|
<dd>The HyperText Markup Language (<i>HTML</i>) is a simple markup
|
||||||
|
language used to create hypertext documents that are portable from
|
||||||
|
one platform to another. HTML documents are SGML documents with
|
||||||
|
generic semantics that are appropriate for representing information
|
||||||
|
from a wide range of applications. [<a class='noxref'
|
||||||
|
href='references.html#HTML40'>HTML4.0</a>]</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-inheritance"
|
||||||
|
name='dt-inheritance'>inheritance</a></b></dt>
|
||||||
|
|
||||||
|
<dd>In object-oriented programming, the ability to create new
|
||||||
|
classes (or interfaces) that contain all the methods and properties
|
||||||
|
of another class (or interface), plus additional methods and
|
||||||
|
properties. If class (or interface) D inherits from class (or
|
||||||
|
interface) B, then D is said to be <i>derived</i> from B. B is said
|
||||||
|
to be a <i>base</i> class (or interface) for D. Some programming
|
||||||
|
languages allow for multiple inheritance, that is, inheritance from
|
||||||
|
more than one class or interface.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-interface"
|
||||||
|
name='dt-interface'>interface</a></b></dt>
|
||||||
|
|
||||||
|
<dd>An <i>interface</i> is a declaration of a set of <i>methods</i>
|
||||||
|
with no information given about their implementation. In object
|
||||||
|
systems that support interfaces and inheritance, interfaces can
|
||||||
|
usually inherit from one another.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-lang-binding" name='dt-lang-binding'>language
|
||||||
|
binding</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A programming <i>language binding</i> for an IDL specification
|
||||||
|
is an implementation of the interfaces in the specification for the
|
||||||
|
given language. For example, a Java language binding for the
|
||||||
|
Document Object Model IDL specification would implement the
|
||||||
|
concrete Java classes that provide the functionality exposed by the
|
||||||
|
interfaces.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-localname" name='dt-localname'>local
|
||||||
|
name</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>local name</i> is the local part of a <i>qualified
|
||||||
|
name</i>. This is called the local part in Namespaces in XML [<a
|
||||||
|
class='noxref'
|
||||||
|
href='references.html#Namespaces'>Namespaces</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-method" name='dt-method'>method</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>method</i> is an operation or function that is associated
|
||||||
|
with an object and is allowed to manipulate the object's data.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-model" name='dt-model'>model</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>model</i> is the actual data representation for the
|
||||||
|
information at hand. Examples are the structural model and the
|
||||||
|
style model representing the parse structure and the style
|
||||||
|
information associated with a document. The model might be a tree,
|
||||||
|
or a directed graph, or something else.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-namespaceprefix"
|
||||||
|
name='dt-namespaceprefix'>namespace prefix</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>namespace prefix</i> is a string that associates an
|
||||||
|
element or attribute name with a <i>namespace URI</i> in XML. See
|
||||||
|
namespace prefix in Namespaces in XML [<a class='noxref'
|
||||||
|
href='references.html#Namespaces'>Namespaces</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-namespaceURI" name='dt-namespaceURI'>namespace
|
||||||
|
URI</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>namespace URI</i> is a URI that identifies an <i>XML
|
||||||
|
namespace</i>. Strictly speaking, this actually is a <i>namespace
|
||||||
|
URI reference</i>. This is called the namespace name in Namespaces
|
||||||
|
in XML [<a class='noxref'
|
||||||
|
href='references.html#Namespaces'>Namespaces</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-object-model" name='dt-object-model'>object
|
||||||
|
model</a></b></dt>
|
||||||
|
|
||||||
|
<dd>An <i>object model</i> is a collection of descriptions of
|
||||||
|
classes or interfaces, together with their member data, member
|
||||||
|
functions, and class-static operations.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-parent" name='dt-parent'>parent</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>parent</i> is an immediate <i>ancestor</i> node of a
|
||||||
|
node.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-qualifiedname" name='dt-qualifiedname'>qualified
|
||||||
|
name</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>qualified name</i> is the name of an element or attribute
|
||||||
|
defined as the concatenation of a <i>local name</i> (as defined in
|
||||||
|
this specification), optionally preceded by a <i>namespace
|
||||||
|
prefix</i> and colon character. See <a
|
||||||
|
href='http://www.w3.org/TR/1999/REC-xml-names-19990114/#ns-qualnames'>
|
||||||
|
<em>Qualified Names</em></a> in Namespaces in XML [<a
|
||||||
|
class='noxref'
|
||||||
|
href='references.html#Namespaces'>Namespaces</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-readonly-node" name='dt-readonly-node'>readonly
|
||||||
|
node</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>readonly node</i> is a node that is immutable. This means
|
||||||
|
its list of children, its content, and its attributes, when it is
|
||||||
|
an element, cannot be changed in any way. However, a readonly node
|
||||||
|
can possibly be moved, when it is not itself contained in a
|
||||||
|
readonly node.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-root-node" name='dt-root-node'>root
|
||||||
|
node</a></b></dt>
|
||||||
|
|
||||||
|
<dd>The <i>root node</i> is the unique node that is not a
|
||||||
|
<i>child</i> of any other node. All other nodes are children or
|
||||||
|
other descendants of the root node.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-sibling" name='dt-sibling'>sibling</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Two nodes are <i>siblings</i> if and only if they have the same
|
||||||
|
<i>parent</i> node.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-string-compare" name='dt-string-compare'>string
|
||||||
|
comparison</a></b></dt>
|
||||||
|
|
||||||
|
<dd>When string matching is required, it is to occur as though the
|
||||||
|
comparison was between 2 sequences of code points from the Unicode
|
||||||
|
3.0 standard [<a class='noxref'
|
||||||
|
href='references.html#Unicode'>Unicode</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-token" name='dt-token'>token</a></b></dt>
|
||||||
|
|
||||||
|
<dd>An information item such as an XML Name which has been <a
|
||||||
|
href='glossary.html#dt-tokenized'><em>tokenized</em></a>.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-tokenized"
|
||||||
|
name='dt-tokenized'>tokenized</a></b></dt>
|
||||||
|
|
||||||
|
<dd>The description given to various information items (for
|
||||||
|
example, attribute values of various types, but not including the
|
||||||
|
StringType CDATA) after having been processed by the XML processor.
|
||||||
|
The process includes stripping leading and trailing white space,
|
||||||
|
and replacing multiple space characters by one. See the definition
|
||||||
|
of tokenized type.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-well-formed" name='dt-well-formed'>well-formed
|
||||||
|
document</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A document is <i>well-formed</i> if it is tag valid and
|
||||||
|
entities are limited to single elements (i.e., single sub-trees).
|
||||||
|
See <a
|
||||||
|
href='http://www.w3.org/TR/1998/REC-xml-19980210#sec-well-formed'><em>
|
||||||
|
Well-Formed XML Documents</em></a> in XML [<a class='noxref'
|
||||||
|
href='references.html#XML'>XML</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-XML" name='dt-XML'>XML</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Extensible Markup Language (<i>XML</i>) is an extremely simple
|
||||||
|
dialect of SGML. The goal is to enable generic SGML to be served,
|
||||||
|
received, and processed on the Web in the way that is now possible
|
||||||
|
with HTML. XML [<a class='noxref'
|
||||||
|
href='references.html#XML'>XML</a>] has been designed for ease of
|
||||||
|
implementation and for interoperability with both SGML and
|
||||||
|
HTML.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-XML-name" name='dt-XML-name'>XML name</a></b></dt>
|
||||||
|
|
||||||
|
<dd>See <a
|
||||||
|
href='http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name'><em>XML
|
||||||
|
name</em></a> in the XML specification [<a class='noxref'
|
||||||
|
href='references.html#XML'>XML</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-XML-namespace" name='dt-XML-namespace'>XML
|
||||||
|
namespace</a></b></dt>
|
||||||
|
|
||||||
|
<dd>An <i>XML namespace</i> is a collection of names, identified by
|
||||||
|
a URI reference [<a class='noxref'
|
||||||
|
href='references.html#URIRef'>RFC2396</a>], which are used in XML
|
||||||
|
documents as element types and attribute names. [<a class='noxref'
|
||||||
|
href='references.html#Namespaces'>Namespaces</a>]</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 glossary -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='acknowledgements.html'>previous</a>
|
||||||
|
<a accesskey='n' href='references.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
303
java/external/xdocs/dom/core/i18n.html
vendored
Normal file
303
java/external/xdocs/dom/core/i18n.html
vendored
Normal file
@ -0,0 +1,303 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:02 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Accessing code point boundaries</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='idl-definitions.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='changes.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='changes.html'>previous</a> <a accesskey='n'
|
||||||
|
href='idl-definitions.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="i18n" name='i18n'></a>
|
||||||
|
|
||||||
|
<h1 id='i18n-h1' class='adiv1'>Appendix B: Accessing code point
|
||||||
|
boundaries</h1>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dd>Mark Davis, IBM</dd>
|
||||||
|
|
||||||
|
<dd>Lauren Wood, SoftQuad Software Inc.</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<div class='noprint'>
|
||||||
|
<h2 id='table-of-contents'>Table of contents</h2>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='#i18n-introduction'>2.1. Introduction</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref' href='#i18n-methods'>2.2.
|
||||||
|
Methods</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline4'><a
|
||||||
|
href='#i18n-methods-StringExtend'>StringExtend</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div2'><a id="i18n-introduction"
|
||||||
|
name='i18n-introduction'></a>
|
||||||
|
|
||||||
|
<h2 id='i18n-introduction-h2' class='adiv2'>B.1: Introduction</h2>
|
||||||
|
|
||||||
|
<p>This appendix is an informative, not a normative, part of the
|
||||||
|
Level 2 DOM specification.</p>
|
||||||
|
|
||||||
|
<p>Characters are represented in Unicode by numbers called <i>code
|
||||||
|
points</i> (also called <i>scalar values</i>). These numbers can
|
||||||
|
range from 0 up to 1,114,111 = 10FFFF<sub>16</sub> (although some
|
||||||
|
of these values are illegal). Each code point can be directly
|
||||||
|
encoded with a 32-bit code unit. This encoding is termed UCS-4 (or
|
||||||
|
UTF-32). The DOM specification, however, uses UTF-16, in which the
|
||||||
|
most frequent characters (which have values less than
|
||||||
|
FFFF<sub>16</sub>) are represented by a single 16-bit code unit,
|
||||||
|
while characters above FFFF<sub>16</sub> use a special pair of code
|
||||||
|
units called a <i>surrogate pair</i>. For more information, see [<a
|
||||||
|
class='noxref' href='references.html#Unicode'>Unicode</a>] or the
|
||||||
|
Unicode Web site.</p>
|
||||||
|
|
||||||
|
<p>While indexing by code points as opposed to code units is not
|
||||||
|
common in programs, some specifications such as XPath (and
|
||||||
|
therefore XSLT and XPointer) use code point indices. For
|
||||||
|
interfacing with such formats it is recommended that the
|
||||||
|
programming language provide string processing methods for
|
||||||
|
converting code point indices to code unit indices and back. Some
|
||||||
|
languages do not provide these functions natively; for these it is
|
||||||
|
recommended that the native <code>String</code> type that is bound
|
||||||
|
to <a href='core.html#DOMString'><code>DOMString</code></a> be
|
||||||
|
extended to enable this conversion. An example of how such an API
|
||||||
|
might look is supplied below.</p>
|
||||||
|
|
||||||
|
<p><b>Note:</b> Since these methods are supplied as an illustrative
|
||||||
|
example of the type of functionality that is required, the names of
|
||||||
|
the methods, exceptions, and interface may differ from those given
|
||||||
|
here.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 i18n-introduction -->
|
||||||
|
<div class='div2'><a id="i18n-methods" name='i18n-methods'></a>
|
||||||
|
|
||||||
|
<h2 id='i18n-methods-h2' class='adiv2'>B.2: Methods</h2>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b>Interface <i><a id="i18n-methods-StringExtend"
|
||||||
|
name='i18n-methods-StringExtend'>StringExtend</a></i></b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<p>Extensions to a language's native String class or interface</p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><br />
|
||||||
|
<b>IDL Definition</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<div class='idl-code'>
|
||||||
|
<pre>
|
||||||
|
interface StringExtend {
|
||||||
|
int findOffset16(in int offset32)
|
||||||
|
raises(StringIndexOutOfBoundsException);
|
||||||
|
int findOffset32(in int offset16)
|
||||||
|
raises(StringIndexOutOfBoundsException);
|
||||||
|
};
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt><b>Methods</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><code class='method-name'><a
|
||||||
|
id="i18n-methods-StringExtend-findOffset16"
|
||||||
|
name='i18n-methods-StringExtend-findOffset16'>findOffset16</a></code></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<div class='method'>Returns the UTF-16 offset that corresponds to a
|
||||||
|
UTF-32 offset. Used for random access.
|
||||||
|
|
||||||
|
<p><b>Note:</b> You can always round-trip from a UTF-32 offset to a
|
||||||
|
UTF-16 offset and back. You can round-trip from a UTF-16 offset to
|
||||||
|
a UTF-32 offset and back if and only if the offset16 is not in the
|
||||||
|
middle of a surrogate pair. Unmatched surrogates count as a single
|
||||||
|
UTF-16 value.</p>
|
||||||
|
|
||||||
|
<div class='parameters'><b>Parameters</b>
|
||||||
|
|
||||||
|
<div class='paramtable'>
|
||||||
|
<dl>
|
||||||
|
<dt><code class='parameter-name'>offset32</code> of type
|
||||||
|
<code>int</code></dt>
|
||||||
|
|
||||||
|
<dd>UTF-32 offset.<br />
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- parameters -->
|
||||||
|
<div class='return'><b>Return Value</b>
|
||||||
|
|
||||||
|
<div class='returntable'>
|
||||||
|
<table
|
||||||
|
summary='Layout table: the first cell contains the type of the return value, the second contains a short description'
|
||||||
|
border='0'>
|
||||||
|
<tr>
|
||||||
|
<td valign='top'>
|
||||||
|
<p><code>int</code></p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>UTF-16 offset</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- return -->
|
||||||
|
<div class='exceptions'><b>Exceptions</b>
|
||||||
|
|
||||||
|
<div class='exceptiontable'>
|
||||||
|
<table
|
||||||
|
summary='Layout table: the first cell contains the type of the exception, the second contains the specific error code and a short description'
|
||||||
|
border='0'>
|
||||||
|
<tr>
|
||||||
|
<td valign='top'>
|
||||||
|
<p><code>StringIndexOutOfBoundsException</code></p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>if <code>offset32</code> is out of bounds.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- exceptions -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- method -->
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt><code class='method-name'><a
|
||||||
|
id="i18n-methods-StringExtend-findOffset32"
|
||||||
|
name='i18n-methods-StringExtend-findOffset32'>findOffset32</a></code></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<div class='method'>Returns the UTF-32 offset corresponding to a
|
||||||
|
UTF-16 offset. Used for random access. To find the UTF-32 length of
|
||||||
|
a string, use:
|
||||||
|
|
||||||
|
<div class='eg'>
|
||||||
|
<pre>
|
||||||
|
len32 = findOffset32(source, source.length());
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p><b>Note:</b> If the UTF-16 offset is into the middle of a
|
||||||
|
surrogate pair, then the UTF-32 offset of the <em>end</em> of the
|
||||||
|
pair is returned; that is, the index of the char after the end of
|
||||||
|
the pair. You can always round-trip from a UTF-32 offset to a
|
||||||
|
UTF-16 offset and back. You can round-trip from a UTF-16 offset to
|
||||||
|
a UTF-32 offset and back if and only if the offset16 is not in the
|
||||||
|
middle of a surrogate pair. Unmatched surrogates count as a single
|
||||||
|
UTF-16 value.</p>
|
||||||
|
|
||||||
|
<div class='parameters'><b>Parameters</b>
|
||||||
|
|
||||||
|
<div class='paramtable'>
|
||||||
|
<dl>
|
||||||
|
<dt><code class='parameter-name'>offset16</code> of type
|
||||||
|
<code>int</code></dt>
|
||||||
|
|
||||||
|
<dd>UTF-16 offset<br />
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- parameters -->
|
||||||
|
<div class='return'><b>Return Value</b>
|
||||||
|
|
||||||
|
<div class='returntable'>
|
||||||
|
<table
|
||||||
|
summary='Layout table: the first cell contains the type of the return value, the second contains a short description'
|
||||||
|
border='0'>
|
||||||
|
<tr>
|
||||||
|
<td valign='top'>
|
||||||
|
<p><code>int</code></p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>UTF-32 offset</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- return -->
|
||||||
|
<div class='exceptions'><b>Exceptions</b>
|
||||||
|
|
||||||
|
<div class='exceptiontable'>
|
||||||
|
<table
|
||||||
|
summary='Layout table: the first cell contains the type of the exception, the second contains the specific error code and a short description'
|
||||||
|
border='0'>
|
||||||
|
<tr>
|
||||||
|
<td valign='top'>
|
||||||
|
<p><code>StringIndexOutOfBoundsException</code></p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>if offset16 is out of bounds.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- exceptions -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- method -->
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 i18n-methods --></div>
|
||||||
|
|
||||||
|
<!-- div1 i18n -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='changes.html'>previous</a> <a
|
||||||
|
accesskey='n' href='idl-definitions.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
367
java/external/xdocs/dom/core/idl-definitions.html
vendored
Normal file
367
java/external/xdocs/dom/core/idl-definitions.html
vendored
Normal file
@ -0,0 +1,367 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:02 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>IDL Definitions</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='java-binding.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='i18n.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='i18n.html'>previous</a> <a accesskey='n'
|
||||||
|
href='java-binding.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="idl" name='idl'></a>
|
||||||
|
|
||||||
|
<h1 id='idl-h1' class='adiv1'>Appendix C: IDL Definitions</h1>
|
||||||
|
|
||||||
|
<p>This appendix contains the complete OMG IDL [<a class='noxref'
|
||||||
|
href='references.html#OMGIDL'>OMGIDL</a>] for the Level 2 Document
|
||||||
|
Object Model Core definitions.</p>
|
||||||
|
|
||||||
|
<p>The IDL files are also available as: <a
|
||||||
|
href='idl.zip'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/idl.zip</a></p>
|
||||||
|
|
||||||
|
<h3 id='idl-dom.idl'><a href='idl/dom.idl'>dom.idl</a>:</h3>
|
||||||
|
|
||||||
|
<div class='idl-code'>
|
||||||
|
<pre>
|
||||||
|
// File: dom.idl
|
||||||
|
|
||||||
|
#ifndef _DOM_IDL_
|
||||||
|
#define _DOM_IDL_
|
||||||
|
|
||||||
|
#pragma prefix "w3c.org"
|
||||||
|
module dom
|
||||||
|
{
|
||||||
|
|
||||||
|
valuetype DOMString sequence<unsigned short>;
|
||||||
|
|
||||||
|
typedef unsigned long long DOMTimeStamp;
|
||||||
|
|
||||||
|
interface DocumentType;
|
||||||
|
interface Document;
|
||||||
|
interface NodeList;
|
||||||
|
interface NamedNodeMap;
|
||||||
|
interface Element;
|
||||||
|
|
||||||
|
exception DOMException {
|
||||||
|
unsigned short code;
|
||||||
|
};
|
||||||
|
// ExceptionCode
|
||||||
|
const unsigned short INDEX_SIZE_ERR = 1;
|
||||||
|
const unsigned short DOMSTRING_SIZE_ERR = 2;
|
||||||
|
const unsigned short HIERARCHY_REQUEST_ERR = 3;
|
||||||
|
const unsigned short WRONG_DOCUMENT_ERR = 4;
|
||||||
|
const unsigned short INVALID_CHARACTER_ERR = 5;
|
||||||
|
const unsigned short NO_DATA_ALLOWED_ERR = 6;
|
||||||
|
const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
|
||||||
|
const unsigned short NOT_FOUND_ERR = 8;
|
||||||
|
const unsigned short NOT_SUPPORTED_ERR = 9;
|
||||||
|
const unsigned short INUSE_ATTRIBUTE_ERR = 10;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short INVALID_STATE_ERR = 11;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short SYNTAX_ERR = 12;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short INVALID_MODIFICATION_ERR = 13;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short NAMESPACE_ERR = 14;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short INVALID_ACCESS_ERR = 15;
|
||||||
|
|
||||||
|
|
||||||
|
interface DOMImplementation {
|
||||||
|
boolean hasFeature(in DOMString feature,
|
||||||
|
in DOMString version);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
DocumentType createDocumentType(in DOMString qualifiedName,
|
||||||
|
in DOMString publicId,
|
||||||
|
in DOMString systemId)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Document createDocument(in DOMString namespaceURI,
|
||||||
|
in DOMString qualifiedName,
|
||||||
|
in DocumentType doctype)
|
||||||
|
raises(DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Node {
|
||||||
|
|
||||||
|
// NodeType
|
||||||
|
const unsigned short ELEMENT_NODE = 1;
|
||||||
|
const unsigned short ATTRIBUTE_NODE = 2;
|
||||||
|
const unsigned short TEXT_NODE = 3;
|
||||||
|
const unsigned short CDATA_SECTION_NODE = 4;
|
||||||
|
const unsigned short ENTITY_REFERENCE_NODE = 5;
|
||||||
|
const unsigned short ENTITY_NODE = 6;
|
||||||
|
const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
|
||||||
|
const unsigned short COMMENT_NODE = 8;
|
||||||
|
const unsigned short DOCUMENT_NODE = 9;
|
||||||
|
const unsigned short DOCUMENT_TYPE_NODE = 10;
|
||||||
|
const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
|
||||||
|
const unsigned short NOTATION_NODE = 12;
|
||||||
|
|
||||||
|
readonly attribute DOMString nodeName;
|
||||||
|
attribute DOMString nodeValue;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
// raises(DOMException) on retrieval
|
||||||
|
|
||||||
|
readonly attribute unsigned short nodeType;
|
||||||
|
readonly attribute Node parentNode;
|
||||||
|
readonly attribute NodeList childNodes;
|
||||||
|
readonly attribute Node firstChild;
|
||||||
|
readonly attribute Node lastChild;
|
||||||
|
readonly attribute Node previousSibling;
|
||||||
|
readonly attribute Node nextSibling;
|
||||||
|
readonly attribute NamedNodeMap attributes;
|
||||||
|
// Modified in DOM Level 2:
|
||||||
|
readonly attribute Document ownerDocument;
|
||||||
|
Node insertBefore(in Node newChild,
|
||||||
|
in Node refChild)
|
||||||
|
raises(DOMException);
|
||||||
|
Node replaceChild(in Node newChild,
|
||||||
|
in Node oldChild)
|
||||||
|
raises(DOMException);
|
||||||
|
Node removeChild(in Node oldChild)
|
||||||
|
raises(DOMException);
|
||||||
|
Node appendChild(in Node newChild)
|
||||||
|
raises(DOMException);
|
||||||
|
boolean hasChildNodes();
|
||||||
|
Node cloneNode(in boolean deep);
|
||||||
|
// Modified in DOM Level 2:
|
||||||
|
void normalize();
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
boolean isSupported(in DOMString feature,
|
||||||
|
in DOMString version);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString namespaceURI;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
attribute DOMString prefix;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString localName;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
boolean hasAttributes();
|
||||||
|
};
|
||||||
|
|
||||||
|
interface NodeList {
|
||||||
|
Node item(in unsigned long index);
|
||||||
|
readonly attribute unsigned long length;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface NamedNodeMap {
|
||||||
|
Node getNamedItem(in DOMString name);
|
||||||
|
Node setNamedItem(in Node arg)
|
||||||
|
raises(DOMException);
|
||||||
|
Node removeNamedItem(in DOMString name)
|
||||||
|
raises(DOMException);
|
||||||
|
Node item(in unsigned long index);
|
||||||
|
readonly attribute unsigned long length;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Node getNamedItemNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Node setNamedItemNS(in Node arg)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Node removeNamedItemNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName)
|
||||||
|
raises(DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface CharacterData : Node {
|
||||||
|
attribute DOMString data;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
// raises(DOMException) on retrieval
|
||||||
|
|
||||||
|
readonly attribute unsigned long length;
|
||||||
|
DOMString substringData(in unsigned long offset,
|
||||||
|
in unsigned long count)
|
||||||
|
raises(DOMException);
|
||||||
|
void appendData(in DOMString arg)
|
||||||
|
raises(DOMException);
|
||||||
|
void insertData(in unsigned long offset,
|
||||||
|
in DOMString arg)
|
||||||
|
raises(DOMException);
|
||||||
|
void deleteData(in unsigned long offset,
|
||||||
|
in unsigned long count)
|
||||||
|
raises(DOMException);
|
||||||
|
void replaceData(in unsigned long offset,
|
||||||
|
in unsigned long count,
|
||||||
|
in DOMString arg)
|
||||||
|
raises(DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Attr : Node {
|
||||||
|
readonly attribute DOMString name;
|
||||||
|
readonly attribute boolean specified;
|
||||||
|
attribute DOMString value;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute Element ownerElement;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Element : Node {
|
||||||
|
readonly attribute DOMString tagName;
|
||||||
|
DOMString getAttribute(in DOMString name);
|
||||||
|
void setAttribute(in DOMString name,
|
||||||
|
in DOMString value)
|
||||||
|
raises(DOMException);
|
||||||
|
void removeAttribute(in DOMString name)
|
||||||
|
raises(DOMException);
|
||||||
|
Attr getAttributeNode(in DOMString name);
|
||||||
|
Attr setAttributeNode(in Attr newAttr)
|
||||||
|
raises(DOMException);
|
||||||
|
Attr removeAttributeNode(in Attr oldAttr)
|
||||||
|
raises(DOMException);
|
||||||
|
NodeList getElementsByTagName(in DOMString name);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
DOMString getAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
void setAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString qualifiedName,
|
||||||
|
in DOMString value)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
void removeAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Attr getAttributeNodeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Attr setAttributeNodeNS(in Attr newAttr)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
NodeList getElementsByTagNameNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
boolean hasAttribute(in DOMString name);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
boolean hasAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Text : CharacterData {
|
||||||
|
Text splitText(in unsigned long offset)
|
||||||
|
raises(DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Comment : CharacterData {
|
||||||
|
};
|
||||||
|
|
||||||
|
interface CDATASection : Text {
|
||||||
|
};
|
||||||
|
|
||||||
|
interface DocumentType : Node {
|
||||||
|
readonly attribute DOMString name;
|
||||||
|
readonly attribute NamedNodeMap entities;
|
||||||
|
readonly attribute NamedNodeMap notations;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString publicId;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString systemId;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString internalSubset;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Notation : Node {
|
||||||
|
readonly attribute DOMString publicId;
|
||||||
|
readonly attribute DOMString systemId;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Entity : Node {
|
||||||
|
readonly attribute DOMString publicId;
|
||||||
|
readonly attribute DOMString systemId;
|
||||||
|
readonly attribute DOMString notationName;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface EntityReference : Node {
|
||||||
|
};
|
||||||
|
|
||||||
|
interface ProcessingInstruction : Node {
|
||||||
|
readonly attribute DOMString target;
|
||||||
|
attribute DOMString data;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
interface DocumentFragment : Node {
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Document : Node {
|
||||||
|
readonly attribute DocumentType doctype;
|
||||||
|
readonly attribute DOMImplementation implementation;
|
||||||
|
readonly attribute Element documentElement;
|
||||||
|
Element createElement(in DOMString tagName)
|
||||||
|
raises(DOMException);
|
||||||
|
DocumentFragment createDocumentFragment();
|
||||||
|
Text createTextNode(in DOMString data);
|
||||||
|
Comment createComment(in DOMString data);
|
||||||
|
CDATASection createCDATASection(in DOMString data)
|
||||||
|
raises(DOMException);
|
||||||
|
ProcessingInstruction createProcessingInstruction(in DOMString target,
|
||||||
|
in DOMString data)
|
||||||
|
raises(DOMException);
|
||||||
|
Attr createAttribute(in DOMString name)
|
||||||
|
raises(DOMException);
|
||||||
|
EntityReference createEntityReference(in DOMString name)
|
||||||
|
raises(DOMException);
|
||||||
|
NodeList getElementsByTagName(in DOMString tagname);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Node importNode(in Node importedNode,
|
||||||
|
in boolean deep)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Element createElementNS(in DOMString namespaceURI,
|
||||||
|
in DOMString qualifiedName)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Attr createAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString qualifiedName)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
NodeList getElementsByTagNameNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Element getElementById(in DOMString elementId);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _DOM_IDL_
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 idl -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='i18n.html'>previous</a> <a
|
||||||
|
accesskey='n' href='java-binding.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
320
java/external/xdocs/dom/core/idl/dom.idl
vendored
Normal file
320
java/external/xdocs/dom/core/idl/dom.idl
vendored
Normal file
@ -0,0 +1,320 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/dom.idl
|
||||||
|
|
||||||
|
#ifndef _DOM_IDL_
|
||||||
|
#define _DOM_IDL_
|
||||||
|
|
||||||
|
#pragma prefix "w3c.org"
|
||||||
|
module dom
|
||||||
|
{
|
||||||
|
|
||||||
|
valuetype DOMString sequence<unsigned short>;
|
||||||
|
|
||||||
|
typedef unsigned long long DOMTimeStamp;
|
||||||
|
|
||||||
|
interface DocumentType;
|
||||||
|
interface Document;
|
||||||
|
interface NodeList;
|
||||||
|
interface NamedNodeMap;
|
||||||
|
interface Element;
|
||||||
|
|
||||||
|
exception DOMException {
|
||||||
|
unsigned short code;
|
||||||
|
};
|
||||||
|
// ExceptionCode
|
||||||
|
const unsigned short INDEX_SIZE_ERR = 1;
|
||||||
|
const unsigned short DOMSTRING_SIZE_ERR = 2;
|
||||||
|
const unsigned short HIERARCHY_REQUEST_ERR = 3;
|
||||||
|
const unsigned short WRONG_DOCUMENT_ERR = 4;
|
||||||
|
const unsigned short INVALID_CHARACTER_ERR = 5;
|
||||||
|
const unsigned short NO_DATA_ALLOWED_ERR = 6;
|
||||||
|
const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
|
||||||
|
const unsigned short NOT_FOUND_ERR = 8;
|
||||||
|
const unsigned short NOT_SUPPORTED_ERR = 9;
|
||||||
|
const unsigned short INUSE_ATTRIBUTE_ERR = 10;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short INVALID_STATE_ERR = 11;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short SYNTAX_ERR = 12;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short INVALID_MODIFICATION_ERR = 13;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short NAMESPACE_ERR = 14;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
const unsigned short INVALID_ACCESS_ERR = 15;
|
||||||
|
|
||||||
|
|
||||||
|
interface DOMImplementation {
|
||||||
|
boolean hasFeature(in DOMString feature,
|
||||||
|
in DOMString version);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
DocumentType createDocumentType(in DOMString qualifiedName,
|
||||||
|
in DOMString publicId,
|
||||||
|
in DOMString systemId)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Document createDocument(in DOMString namespaceURI,
|
||||||
|
in DOMString qualifiedName,
|
||||||
|
in DocumentType doctype)
|
||||||
|
raises(DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Node {
|
||||||
|
|
||||||
|
// NodeType
|
||||||
|
const unsigned short ELEMENT_NODE = 1;
|
||||||
|
const unsigned short ATTRIBUTE_NODE = 2;
|
||||||
|
const unsigned short TEXT_NODE = 3;
|
||||||
|
const unsigned short CDATA_SECTION_NODE = 4;
|
||||||
|
const unsigned short ENTITY_REFERENCE_NODE = 5;
|
||||||
|
const unsigned short ENTITY_NODE = 6;
|
||||||
|
const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
|
||||||
|
const unsigned short COMMENT_NODE = 8;
|
||||||
|
const unsigned short DOCUMENT_NODE = 9;
|
||||||
|
const unsigned short DOCUMENT_TYPE_NODE = 10;
|
||||||
|
const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
|
||||||
|
const unsigned short NOTATION_NODE = 12;
|
||||||
|
|
||||||
|
readonly attribute DOMString nodeName;
|
||||||
|
attribute DOMString nodeValue;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
// raises(DOMException) on retrieval
|
||||||
|
|
||||||
|
readonly attribute unsigned short nodeType;
|
||||||
|
readonly attribute Node parentNode;
|
||||||
|
readonly attribute NodeList childNodes;
|
||||||
|
readonly attribute Node firstChild;
|
||||||
|
readonly attribute Node lastChild;
|
||||||
|
readonly attribute Node previousSibling;
|
||||||
|
readonly attribute Node nextSibling;
|
||||||
|
readonly attribute NamedNodeMap attributes;
|
||||||
|
// Modified in DOM Level 2:
|
||||||
|
readonly attribute Document ownerDocument;
|
||||||
|
Node insertBefore(in Node newChild,
|
||||||
|
in Node refChild)
|
||||||
|
raises(DOMException);
|
||||||
|
Node replaceChild(in Node newChild,
|
||||||
|
in Node oldChild)
|
||||||
|
raises(DOMException);
|
||||||
|
Node removeChild(in Node oldChild)
|
||||||
|
raises(DOMException);
|
||||||
|
Node appendChild(in Node newChild)
|
||||||
|
raises(DOMException);
|
||||||
|
boolean hasChildNodes();
|
||||||
|
Node cloneNode(in boolean deep);
|
||||||
|
// Modified in DOM Level 2:
|
||||||
|
void normalize();
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
boolean isSupported(in DOMString feature,
|
||||||
|
in DOMString version);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString namespaceURI;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
attribute DOMString prefix;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString localName;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
boolean hasAttributes();
|
||||||
|
};
|
||||||
|
|
||||||
|
interface NodeList {
|
||||||
|
Node item(in unsigned long index);
|
||||||
|
readonly attribute unsigned long length;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface NamedNodeMap {
|
||||||
|
Node getNamedItem(in DOMString name);
|
||||||
|
Node setNamedItem(in Node arg)
|
||||||
|
raises(DOMException);
|
||||||
|
Node removeNamedItem(in DOMString name)
|
||||||
|
raises(DOMException);
|
||||||
|
Node item(in unsigned long index);
|
||||||
|
readonly attribute unsigned long length;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Node getNamedItemNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Node setNamedItemNS(in Node arg)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Node removeNamedItemNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName)
|
||||||
|
raises(DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface CharacterData : Node {
|
||||||
|
attribute DOMString data;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
// raises(DOMException) on retrieval
|
||||||
|
|
||||||
|
readonly attribute unsigned long length;
|
||||||
|
DOMString substringData(in unsigned long offset,
|
||||||
|
in unsigned long count)
|
||||||
|
raises(DOMException);
|
||||||
|
void appendData(in DOMString arg)
|
||||||
|
raises(DOMException);
|
||||||
|
void insertData(in unsigned long offset,
|
||||||
|
in DOMString arg)
|
||||||
|
raises(DOMException);
|
||||||
|
void deleteData(in unsigned long offset,
|
||||||
|
in unsigned long count)
|
||||||
|
raises(DOMException);
|
||||||
|
void replaceData(in unsigned long offset,
|
||||||
|
in unsigned long count,
|
||||||
|
in DOMString arg)
|
||||||
|
raises(DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Attr : Node {
|
||||||
|
readonly attribute DOMString name;
|
||||||
|
readonly attribute boolean specified;
|
||||||
|
attribute DOMString value;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute Element ownerElement;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Element : Node {
|
||||||
|
readonly attribute DOMString tagName;
|
||||||
|
DOMString getAttribute(in DOMString name);
|
||||||
|
void setAttribute(in DOMString name,
|
||||||
|
in DOMString value)
|
||||||
|
raises(DOMException);
|
||||||
|
void removeAttribute(in DOMString name)
|
||||||
|
raises(DOMException);
|
||||||
|
Attr getAttributeNode(in DOMString name);
|
||||||
|
Attr setAttributeNode(in Attr newAttr)
|
||||||
|
raises(DOMException);
|
||||||
|
Attr removeAttributeNode(in Attr oldAttr)
|
||||||
|
raises(DOMException);
|
||||||
|
NodeList getElementsByTagName(in DOMString name);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
DOMString getAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
void setAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString qualifiedName,
|
||||||
|
in DOMString value)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
void removeAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Attr getAttributeNodeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Attr setAttributeNodeNS(in Attr newAttr)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
NodeList getElementsByTagNameNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
boolean hasAttribute(in DOMString name);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
boolean hasAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Text : CharacterData {
|
||||||
|
Text splitText(in unsigned long offset)
|
||||||
|
raises(DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Comment : CharacterData {
|
||||||
|
};
|
||||||
|
|
||||||
|
interface CDATASection : Text {
|
||||||
|
};
|
||||||
|
|
||||||
|
interface DocumentType : Node {
|
||||||
|
readonly attribute DOMString name;
|
||||||
|
readonly attribute NamedNodeMap entities;
|
||||||
|
readonly attribute NamedNodeMap notations;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString publicId;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString systemId;
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
readonly attribute DOMString internalSubset;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Notation : Node {
|
||||||
|
readonly attribute DOMString publicId;
|
||||||
|
readonly attribute DOMString systemId;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Entity : Node {
|
||||||
|
readonly attribute DOMString publicId;
|
||||||
|
readonly attribute DOMString systemId;
|
||||||
|
readonly attribute DOMString notationName;
|
||||||
|
};
|
||||||
|
|
||||||
|
interface EntityReference : Node {
|
||||||
|
};
|
||||||
|
|
||||||
|
interface ProcessingInstruction : Node {
|
||||||
|
readonly attribute DOMString target;
|
||||||
|
attribute DOMString data;
|
||||||
|
// raises(DOMException) on setting
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
interface DocumentFragment : Node {
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Document : Node {
|
||||||
|
readonly attribute DocumentType doctype;
|
||||||
|
readonly attribute DOMImplementation implementation;
|
||||||
|
readonly attribute Element documentElement;
|
||||||
|
Element createElement(in DOMString tagName)
|
||||||
|
raises(DOMException);
|
||||||
|
DocumentFragment createDocumentFragment();
|
||||||
|
Text createTextNode(in DOMString data);
|
||||||
|
Comment createComment(in DOMString data);
|
||||||
|
CDATASection createCDATASection(in DOMString data)
|
||||||
|
raises(DOMException);
|
||||||
|
ProcessingInstruction createProcessingInstruction(in DOMString target,
|
||||||
|
in DOMString data)
|
||||||
|
raises(DOMException);
|
||||||
|
Attr createAttribute(in DOMString name)
|
||||||
|
raises(DOMException);
|
||||||
|
EntityReference createEntityReference(in DOMString name)
|
||||||
|
raises(DOMException);
|
||||||
|
NodeList getElementsByTagName(in DOMString tagname);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Node importNode(in Node importedNode,
|
||||||
|
in boolean deep)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Element createElementNS(in DOMString namespaceURI,
|
||||||
|
in DOMString qualifiedName)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Attr createAttributeNS(in DOMString namespaceURI,
|
||||||
|
in DOMString qualifiedName)
|
||||||
|
raises(DOMException);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
NodeList getElementsByTagNameNS(in DOMString namespaceURI,
|
||||||
|
in DOMString localName);
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
Element getElementById(in DOMString elementId);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _DOM_IDL_
|
||||||
|
|
||||||
BIN
java/external/xdocs/dom/core/images/REC.gif
vendored
Normal file
BIN
java/external/xdocs/dom/core/images/REC.gif
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 903 B |
BIN
java/external/xdocs/dom/core/images/table.gif
vendored
Normal file
BIN
java/external/xdocs/dom/core/images/table.gif
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
BIN
java/external/xdocs/dom/core/images/w3c_home.gif
vendored
Normal file
BIN
java/external/xdocs/dom/core/images/w3c_home.gif
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 988 B |
512
java/external/xdocs/dom/core/introduction.html
vendored
Normal file
512
java/external/xdocs/dom/core/introduction.html
vendored
Normal file
@ -0,0 +1,512 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:42:28 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>What is the Document Object Model?</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='core.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='copyright-notice.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='copyright-notice.html'>previous</a> <a accesskey='n'
|
||||||
|
href='core.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="Introduction" name='Introduction'></a>
|
||||||
|
|
||||||
|
<h1 id='Introduction-h1' class='div1'>What is the Document Object
|
||||||
|
Model?</h1>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><i>Editors</i></dt>
|
||||||
|
|
||||||
|
<dd>Philippe Le Hégaret, W3C</dd>
|
||||||
|
|
||||||
|
<dd>Lauren Wood, SoftQuad Software Inc., WG Chair</dd>
|
||||||
|
|
||||||
|
<dd>Jonathan Robie, Texcel (for DOM Level 1)</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<div class='div2'><a id="ID-E7C3082" name='ID-E7C3082'></a>
|
||||||
|
|
||||||
|
<h2 id='ID-E7C3082-h2' class='div2'>Introduction</h2>
|
||||||
|
|
||||||
|
<p>The Document Object Model (DOM) is an application programming
|
||||||
|
interface (<a href='glossary.html#dt-API'><em>API</em></a>) for
|
||||||
|
valid <a href='glossary.html#dt-HTML'><em>HTML</em></a> and
|
||||||
|
well-formed <a href='glossary.html#dt-XML'><em>XML</em></a>
|
||||||
|
documents. It defines the logical structure of documents and the
|
||||||
|
way a document is accessed and manipulated. In the DOM
|
||||||
|
specification, the term "document" is used in the broad sense -
|
||||||
|
increasingly, XML is being used as a way of representing many
|
||||||
|
different kinds of information that may be stored in diverse
|
||||||
|
systems, and much of this would traditionally be seen as data
|
||||||
|
rather than as documents. Nevertheless, XML presents this data as
|
||||||
|
documents, and the DOM may be used to manage this data.</p>
|
||||||
|
|
||||||
|
<p>With the Document Object Model, programmers can build documents,
|
||||||
|
navigate their structure, and add, modify, or delete elements and
|
||||||
|
content. Anything found in an HTML or XML document can be accessed,
|
||||||
|
changed, deleted, or added using the Document Object Model, with a
|
||||||
|
few exceptions - in particular, the DOM <a
|
||||||
|
href='glossary.html#dt-interface'><em>interfaces</em></a> for the
|
||||||
|
XML internal and external subsets have not yet been specified.</p>
|
||||||
|
|
||||||
|
<p>As a W3C specification, one important objective for the Document
|
||||||
|
Object Model is to provide a standard programming interface that
|
||||||
|
can be used in a wide variety of environments and <a
|
||||||
|
href='glossary.html#dt-application'><em>applications</em></a>. The
|
||||||
|
DOM is designed to be used with any programming language. In order
|
||||||
|
to provide a precise, language-independent specification of the DOM
|
||||||
|
interfaces, we have chosen to define the specifications in Object
|
||||||
|
Management Group (OMG) IDL [<a class='noxref'
|
||||||
|
href='references.html#OMGIDL'>OMGIDL</a>], as defined in the CORBA
|
||||||
|
2.3.1 specification [<a class='noxref'
|
||||||
|
href='references.html#CORBA'>CORBA</a>]. In addition to the OMG IDL
|
||||||
|
specification, we provide <a
|
||||||
|
href='glossary.html#dt-lang-binding'><em>language bindings</em></a>
|
||||||
|
for Java [<a class='noxref' href='references.html#Java'>Java</a>]
|
||||||
|
and ECMAScript [<a class='noxref'
|
||||||
|
href='references.html#ECMAScript'>ECMAScript</a>] (an
|
||||||
|
industry-standard scripting language based on JavaScript [<a
|
||||||
|
class='noxref' href='references.html#JavaScript'>JavaScript</a>]
|
||||||
|
and JScript [<a class='noxref'
|
||||||
|
href='references.html#JScript'>JScript</a>]).</p>
|
||||||
|
|
||||||
|
<p><b>Note:</b> OMG IDL is used only as a language-independent and
|
||||||
|
implementation-neutral way to specify <a
|
||||||
|
href='glossary.html#dt-interface'><em>interfaces</em></a>. Various
|
||||||
|
other IDLs could have been used ([<a class='noxref'
|
||||||
|
href='references.html#COM'>COM</a>], [<a class='noxref'
|
||||||
|
href='references.html#JavaIDL'>JavaIDL</a>], [<a class='noxref'
|
||||||
|
href='references.html#MSIDL'>MIDL</a>], ...). In general, IDLs are
|
||||||
|
designed for specific computing environments. The Document Object
|
||||||
|
Model can be implemented in any computing environment, and does not
|
||||||
|
require the object binding runtimes generally associated with such
|
||||||
|
IDLs.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 ID-E7C3082 -->
|
||||||
|
<div class='div2'><a id="ID-E7C30821" name='ID-E7C30821'></a>
|
||||||
|
|
||||||
|
<h2 id='ID-E7C30821-h2' class='div2'>What the Document Object Model
|
||||||
|
is</h2>
|
||||||
|
|
||||||
|
<p>The DOM is a programming <a
|
||||||
|
href='glossary.html#dt-API'><em>API</em></a> for documents. It is
|
||||||
|
based on an object structure that closely resembles the structure
|
||||||
|
of the documents it <a
|
||||||
|
href='glossary.html#dt-model'><em>models</em></a>. For instance,
|
||||||
|
consider this table, taken from an HTML document:</p>
|
||||||
|
|
||||||
|
<div class='code-block'>
|
||||||
|
<pre>
|
||||||
|
<TABLE>
|
||||||
|
<TBODY>
|
||||||
|
<TR>
|
||||||
|
<TD>Shady Grove</TD>
|
||||||
|
<TD>Aeolian</TD>
|
||||||
|
</TR>
|
||||||
|
<TR>
|
||||||
|
<TD>Over the River, Charlie</TD>
|
||||||
|
<TD>Dorian</TD>
|
||||||
|
</TR>
|
||||||
|
</TBODY>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>A graphical representation of the DOM of the example table
|
||||||
|
is:<br />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div align='center'>
|
||||||
|
<hr width='90%' size='2' />
|
||||||
|
<img src='./images/table.gif'
|
||||||
|
alt='graphical representation of the DOM of the example table' />
|
||||||
|
|
||||||
|
<hr width='90%' size='2' />
|
||||||
|
<b>graphical representation of the DOM of the example table</b>
|
||||||
|
|
||||||
|
<hr width='90%' size='2' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>In the DOM, documents have a logical structure which is very
|
||||||
|
much like a tree; to be more precise, which is like a "forest" or
|
||||||
|
"grove", which can contain more than one tree. Each document
|
||||||
|
contains zero or one doctype nodes, one root element node, and zero
|
||||||
|
or more comments or processing instructions; the root element
|
||||||
|
serves as the root of the element tree for the document. However,
|
||||||
|
the DOM does not specify that documents must be
|
||||||
|
<em>implemented</em> as a tree or a grove, nor does it specify how
|
||||||
|
the relationships among objects be implemented. The DOM is a
|
||||||
|
logical model that may be implemented in any convenient manner. In
|
||||||
|
this specification, we use the term <em>structure model</em> to
|
||||||
|
describe the tree-like representation of a document. We also use
|
||||||
|
the term "tree" when referring to the arrangement of those
|
||||||
|
information items which can be reached by using "tree-walking"
|
||||||
|
methods; (this does not include attributes). One important property
|
||||||
|
of DOM structure models is <em>structural isomorphism</em>: if any
|
||||||
|
two Document Object Model implementations are used to create a
|
||||||
|
representation of the same document, they will create the same
|
||||||
|
structure model, in accordance with the XML Information Set [<a
|
||||||
|
class='noxref' href='references.html#InfoSet'>Infoset</a>].</p>
|
||||||
|
|
||||||
|
<p><b>Note:</b> There may be some variations depending on the
|
||||||
|
parser being used to build the DOM. For instance, the DOM may not
|
||||||
|
contain whitespaces in element content if the parser discards
|
||||||
|
them.</p>
|
||||||
|
|
||||||
|
<p>The name "Document Object Model" was chosen because it is an "<a
|
||||||
|
href='glossary.html#dt-object-model'><em>object model</em></a>" in
|
||||||
|
the traditional object oriented design sense: documents are modeled
|
||||||
|
using objects, and the model encompasses not only the structure of
|
||||||
|
a document, but also the behavior of a document and the objects of
|
||||||
|
which it is composed. In other words, the nodes in the above
|
||||||
|
diagram do not represent a data structure, they represent objects,
|
||||||
|
which have functions and identity. As an object model, the DOM
|
||||||
|
identifies:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>the interfaces and objects used to represent and manipulate a
|
||||||
|
document</li>
|
||||||
|
|
||||||
|
<li>the semantics of these interfaces and objects - including both
|
||||||
|
behavior and attributes</li>
|
||||||
|
|
||||||
|
<li>the relationships and collaborations among these interfaces and
|
||||||
|
objects</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>The structure of SGML documents has traditionally been
|
||||||
|
represented by an abstract <a
|
||||||
|
href='glossary.html#dt-datamodel'><em>data model</em></a>, not by
|
||||||
|
an object model. In an abstract <a
|
||||||
|
href='glossary.html#dt-datamodel'><em>data model</em></a>, the
|
||||||
|
model is centered around the data. In object oriented programming
|
||||||
|
languages, the data itself is encapsulated in objects that hide the
|
||||||
|
data, protecting it from direct external manipulation. The
|
||||||
|
functions associated with these objects determine how the objects
|
||||||
|
may be manipulated, and they are part of the object model.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 ID-E7C30821 -->
|
||||||
|
<div class='div2'><a id="ID-E7C30822" name='ID-E7C30822'></a>
|
||||||
|
|
||||||
|
<h2 id='ID-E7C30822-h2' class='div2'>What the Document Object Model
|
||||||
|
is not</h2>
|
||||||
|
|
||||||
|
<p>This section is designed to give a more precise understanding of
|
||||||
|
the DOM by distinguishing it from other systems that may seem to be
|
||||||
|
like it.</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>The Document Object Model is not a binary specification. DOM
|
||||||
|
programs written in the same language binding will be source code
|
||||||
|
compatible across platforms, but the DOM does not define any form
|
||||||
|
of binary interoperability.</li>
|
||||||
|
|
||||||
|
<li>The Document Object Model is not a way of persisting objects to
|
||||||
|
XML or HTML. Instead of specifying how objects may be represented
|
||||||
|
in XML, the DOM specifies how XML and HTML documents are
|
||||||
|
represented as objects, so that they may be used in object oriented
|
||||||
|
programs.</li>
|
||||||
|
|
||||||
|
<li>The Document Object Model is not a set of data structures; it
|
||||||
|
is an <a href='glossary.html#dt-object-model'><em>object
|
||||||
|
model</em></a> that specifies interfaces. Although this document
|
||||||
|
contains diagrams showing parent/child relationships, these are
|
||||||
|
logical relationships defined by the programming interfaces, not
|
||||||
|
representations of any particular internal data structures.</li>
|
||||||
|
|
||||||
|
<li>The Document Object Model does not define what information in a
|
||||||
|
document is relevant or how information in a document is
|
||||||
|
structured. For XML, this is specified by the W3C XML Information
|
||||||
|
Set [<a class='noxref' href='references.html#InfoSet'>Infoset</a>].
|
||||||
|
The DOM is simply an <a
|
||||||
|
href='glossary.html#dt-API'><em>API</em></a> to this information
|
||||||
|
set.</li>
|
||||||
|
|
||||||
|
<li>The Document Object Model, despite its name, is not a
|
||||||
|
competitor to the Component Object Model (COM). COM, like CORBA, is
|
||||||
|
a language independent way to specify interfaces and objects; the
|
||||||
|
DOM is a set of interfaces and objects designed for managing HTML
|
||||||
|
and XML documents. The DOM may be implemented using
|
||||||
|
language-independent systems like COM or CORBA; it may also be
|
||||||
|
implemented using language-specific bindings like the Java or
|
||||||
|
ECMAScript bindings specified in this document.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 ID-E7C30822 -->
|
||||||
|
<div class='div2'><a id="ID-E7C30823" name='ID-E7C30823'></a>
|
||||||
|
|
||||||
|
<h2 id='ID-E7C30823-h2' class='div2'>Where the Document Object
|
||||||
|
Model came from</h2>
|
||||||
|
|
||||||
|
<p>The DOM originated as a specification to allow JavaScript
|
||||||
|
scripts and Java programs to be portable among Web browsers.
|
||||||
|
"Dynamic HTML" was the immediate ancestor of the Document Object
|
||||||
|
Model, and it was originally thought of largely in terms of
|
||||||
|
browsers. However, when the DOM Working Group was formed at W3C, it
|
||||||
|
was also joined by vendors in other domains, including HTML or XML
|
||||||
|
editors and document repositories. Several of these vendors had
|
||||||
|
worked with SGML before XML was developed; as a result, the DOM has
|
||||||
|
been influenced by SGML Groves and the HyTime standard. Some of
|
||||||
|
these vendors had also developed their own object models for
|
||||||
|
documents in order to provide an API for SGML/XML editors or
|
||||||
|
document repositories, and these object models have also influenced
|
||||||
|
the DOM.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 ID-E7C30823 -->
|
||||||
|
<div class='div2'><a id="ID-E7C30824" name='ID-E7C30824'></a>
|
||||||
|
|
||||||
|
<h2 id='ID-E7C30824-h2' class='div2'>Entities and the DOM Core</h2>
|
||||||
|
|
||||||
|
<p>In the fundamental DOM interfaces, there are no objects
|
||||||
|
representing entities. Numeric character references, and references
|
||||||
|
to the pre-defined entities in HTML and XML, are replaced by the
|
||||||
|
single character that makes up the entity's replacement. For
|
||||||
|
example, in:</p>
|
||||||
|
|
||||||
|
<div class='code-block'>
|
||||||
|
<pre>
|
||||||
|
<p>This is a dog &amp; a cat</p>
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>the "&amp;" will be replaced by the character "&", and
|
||||||
|
the text in the P element will form a single continuous sequence of
|
||||||
|
characters. Since numeric character references and pre-defined
|
||||||
|
entities are not recognized as such in CDATA sections, or in the
|
||||||
|
SCRIPT and STYLE elements in HTML, they are not replaced by the
|
||||||
|
single character they appear to refer to. If the example above were
|
||||||
|
enclosed in a CDATA section, the "&amp;" would not be replaced
|
||||||
|
by "&"; neither would the <p> be recognized as a start
|
||||||
|
tag. The representation of general entities, both internal and
|
||||||
|
external, are defined within the extended (XML) interfaces of DOM
|
||||||
|
Level 1 [<a class='noxref' href='references.html#DOM-Level-1'>DOM
|
||||||
|
Level 1</a>].</p>
|
||||||
|
|
||||||
|
<p>Note: When a DOM representation of a document is serialized as
|
||||||
|
XML or HTML text, applications will need to check each character in
|
||||||
|
text data to see if it needs to be escaped using a numeric or
|
||||||
|
pre-defined entity. Failing to do so could result in invalid HTML
|
||||||
|
or XML. Also, <a
|
||||||
|
href='glossary.html#dt-implementation'><em>implementations</em></a>
|
||||||
|
should be aware of the fact that serialization into a character
|
||||||
|
encoding ("charset") that does not fully cover ISO 10646 may fail
|
||||||
|
if there are characters in markup or CDATA sections that are not
|
||||||
|
present in the encoding.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 ID-E7C30824 -->
|
||||||
|
<div class='div2'><a id="ID-Conformance" name='ID-Conformance'></a>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id='ID-Conformance-h2' class='div2'>Conformance</h2>
|
||||||
|
|
||||||
|
<p>This section explains the different levels of conformance to DOM
|
||||||
|
Level 2. DOM Level 2 consists of 14 modules. It is possible to
|
||||||
|
conform to DOM Level 2, or to a DOM Level 2 module.</p>
|
||||||
|
|
||||||
|
<p>An implementation is DOM Level 2 conformant if it supports the
|
||||||
|
Core module defined in this document (see <a
|
||||||
|
href='core.html#ID-BBACDC08'>Fundamental Interfaces</a>). An
|
||||||
|
implementation conforms to a DOM Level 2 module if it supports all
|
||||||
|
the interfaces for that module and the associated semantics.</p>
|
||||||
|
|
||||||
|
<p>Here is the complete list of DOM Level 2.0 modules and the
|
||||||
|
features used by them. Feature names are case-insensitive.</p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b>Core module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='core.html#ID-BBACDC08'><em>"Core"</em></a>.</dd>
|
||||||
|
|
||||||
|
<dt><b>XML module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='core.html#ID-E067D597'><em>"XML"</em></a>.</dd>
|
||||||
|
|
||||||
|
<dt><b>HTML module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature "HTML". (see [<a class='noxref'
|
||||||
|
href='references.html#DOMHTML-inf'>DOM Level 2 HTML</a>]).
|
||||||
|
|
||||||
|
<p><b>Note:</b> At time of publication, this DOM Level 2 module is
|
||||||
|
not yet a W3C Recommendation.</p>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt><b>Views module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Views/views.html'><em>"Views"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMViews-inf'>DOM Level
|
||||||
|
2 Views</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>Style Sheets module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html'><em>"StyleSheets"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMStyleSheets-inf'>DOM
|
||||||
|
Level 2 Style Sheets</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>CSS module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Style/css.html'><em>"CSS"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMCSS-inf'>DOM Level 2
|
||||||
|
CSS</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>CSS2 module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Style/css.html'><em>"CSS2"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMCSS-inf'>DOM Level 2
|
||||||
|
CSS</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>Events module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Events/events.html'><em>"Events"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMEvents-inf'>DOM
|
||||||
|
Level 2 Events</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>User interface Events module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Events/events.html'><em>"UIEvents"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMEvents-inf'>DOM
|
||||||
|
Level 2 Events</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>Mouse Events module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Events/events.html'><em>"MouseEvents"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMEvents-inf'>DOM
|
||||||
|
Level 2 Events</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>Mutation Events module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Events/events.html'><em>"MutationEvents"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMEvents-inf'>DOM
|
||||||
|
Level 2 Events</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>HTML Events module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Events/events.html'><em>"HTMLEvents"</em></a>
|
||||||
|
in [<a class='noxref' href='references.html#DOMEvents-inf'>DOM
|
||||||
|
Level 2 Events</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>Range module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html'>
|
||||||
|
<em>"Range"</em></a> in [<a class='noxref'
|
||||||
|
href='references.html#DOMRange-inf'>DOM Level 2 Range</a>].</dd>
|
||||||
|
|
||||||
|
<dt><b>Traversal module</b></dt>
|
||||||
|
|
||||||
|
<dd>defines the feature <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html'>
|
||||||
|
<em>"Traversal"</em></a> in [<a class='noxref'
|
||||||
|
href='references.html#DOMTraversal-inf'>DOM Level 2
|
||||||
|
Traversal</a>].</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<p>A DOM implementation must not return <code>"true"</code> to the
|
||||||
|
<code>hasFeature(feature, version)</code> <a
|
||||||
|
href='glossary.html#dt-method'><em>method</em></a> of the <a
|
||||||
|
href='core.html#ID-102161490'><code>DOMImplementation</code></a>
|
||||||
|
interface for that feature unless the implementation conforms to
|
||||||
|
that module. The <code>version</code> number for all features used
|
||||||
|
in DOM Level 2.0 is "2.0".</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 ID-Conformance -->
|
||||||
|
<div class='div2'><a id="ID-E7C30826" name='ID-E7C30826'></a>
|
||||||
|
|
||||||
|
<h2 id='ID-E7C30826-h2' class='div2'>DOM Interfaces and DOM
|
||||||
|
Implementations</h2>
|
||||||
|
|
||||||
|
<p>The DOM specifies interfaces which may be used to manage XML or
|
||||||
|
HTML documents. It is important to realize that these interfaces
|
||||||
|
are an abstraction - much like "abstract base classes" in C++, they
|
||||||
|
are a means of specifying a way to access and manipulate an
|
||||||
|
application's internal representation of a document. Interfaces do
|
||||||
|
not imply a particular concrete implementation. Each DOM
|
||||||
|
application is free to maintain documents in any convenient
|
||||||
|
representation, as long as the interfaces shown in this
|
||||||
|
specification are supported. Some DOM implementations will be
|
||||||
|
existing programs that use the DOM interfaces to access software
|
||||||
|
written long before the DOM specification existed. Therefore, the
|
||||||
|
DOM is designed to avoid implementation dependencies; in
|
||||||
|
particular,</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>Attributes defined in the IDL do not imply concrete objects
|
||||||
|
which must have specific data members - in the language bindings,
|
||||||
|
they are translated to a pair of get()/set() functions, not to a
|
||||||
|
data member. Read-only attributes have only a get() function in the
|
||||||
|
language bindings.</li>
|
||||||
|
|
||||||
|
<li>DOM applications may provide additional interfaces and objects
|
||||||
|
not found in this specification and still be considered DOM
|
||||||
|
conformant.</li>
|
||||||
|
|
||||||
|
<li>Because we specify interfaces and not the actual objects that
|
||||||
|
are to be created, the DOM cannot know what constructors to call
|
||||||
|
for an implementation. In general, DOM users call the createX()
|
||||||
|
methods on the Document class to create document structures, and
|
||||||
|
DOM implementations create their own internal representations of
|
||||||
|
these structures in their implementations of the createX()
|
||||||
|
functions.</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<p>The Level 1 interfaces were extended to provide both Level 1 and
|
||||||
|
Level 2 functionality.</p>
|
||||||
|
|
||||||
|
<p>DOM implementations in languages other than Java or ECMAScript
|
||||||
|
may choose bindings that are appropriate and natural for their
|
||||||
|
language and run time environment. For example, some systems may
|
||||||
|
need to create a Document2 class which inherits from Document and
|
||||||
|
contains the new methods and attributes.</p>
|
||||||
|
|
||||||
|
<p>DOM Level 2 does not specify multithreading mechanisms.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 ID-E7C30826 --></div>
|
||||||
|
|
||||||
|
<!-- div1 Introduction -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='copyright-notice.html'>previous</a>
|
||||||
|
<a accesskey='n' href='core.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
555
java/external/xdocs/dom/core/java-binding.html
vendored
Normal file
555
java/external/xdocs/dom/core/java-binding.html
vendored
Normal file
@ -0,0 +1,555 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:07 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Java Language Binding</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='ecma-script-binding.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='idl-definitions.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='idl-definitions.html'>previous</a> <a accesskey='n'
|
||||||
|
href='ecma-script-binding.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="java-binding" name='java-binding'></a>
|
||||||
|
|
||||||
|
<h1 id='java-binding-h1' class='adiv1'>Appendix D: Java Language
|
||||||
|
Binding</h1>
|
||||||
|
|
||||||
|
<p>This appendix contains the complete Java Language [<a
|
||||||
|
class='noxref' href='references.html#Java'>Java</a>] binding for
|
||||||
|
the Level 2 Document Object Model Core.</p>
|
||||||
|
|
||||||
|
<p>The Java files are also available as <a
|
||||||
|
href='java-binding.zip'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/java-binding.zip</a></p>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.DOMException'>
|
||||||
|
org/w3c/dom/DOMException.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public class DOMException extends RuntimeException {
|
||||||
|
public DOMException(short code, String message) {
|
||||||
|
super(message);
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
public short code;
|
||||||
|
// ExceptionCode
|
||||||
|
public static final short INDEX_SIZE_ERR = 1;
|
||||||
|
public static final short DOMSTRING_SIZE_ERR = 2;
|
||||||
|
public static final short HIERARCHY_REQUEST_ERR = 3;
|
||||||
|
public static final short WRONG_DOCUMENT_ERR = 4;
|
||||||
|
public static final short INVALID_CHARACTER_ERR = 5;
|
||||||
|
public static final short NO_DATA_ALLOWED_ERR = 6;
|
||||||
|
public static final short NO_MODIFICATION_ALLOWED_ERR = 7;
|
||||||
|
public static final short NOT_FOUND_ERR = 8;
|
||||||
|
public static final short NOT_SUPPORTED_ERR = 9;
|
||||||
|
public static final short INUSE_ATTRIBUTE_ERR = 10;
|
||||||
|
public static final short INVALID_STATE_ERR = 11;
|
||||||
|
public static final short SYNTAX_ERR = 12;
|
||||||
|
public static final short INVALID_MODIFICATION_ERR = 13;
|
||||||
|
public static final short NAMESPACE_ERR = 14;
|
||||||
|
public static final short INVALID_ACCESS_ERR = 15;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.DOMImplementation'>
|
||||||
|
org/w3c/dom/DOMImplementation.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface DOMImplementation {
|
||||||
|
public boolean hasFeature(String feature,
|
||||||
|
String version);
|
||||||
|
|
||||||
|
public DocumentType createDocumentType(String qualifiedName,
|
||||||
|
String publicId,
|
||||||
|
String systemId)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Document createDocument(String namespaceURI,
|
||||||
|
String qualifiedName,
|
||||||
|
DocumentType doctype)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.DocumentFragment'>
|
||||||
|
org/w3c/dom/DocumentFragment.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface DocumentFragment extends Node {
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.Document'>org/w3c/dom/Document.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface Document extends Node {
|
||||||
|
public DocumentType getDoctype();
|
||||||
|
|
||||||
|
public DOMImplementation getImplementation();
|
||||||
|
|
||||||
|
public Element getDocumentElement();
|
||||||
|
|
||||||
|
public Element createElement(String tagName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public DocumentFragment createDocumentFragment();
|
||||||
|
|
||||||
|
public Text createTextNode(String data);
|
||||||
|
|
||||||
|
public Comment createComment(String data);
|
||||||
|
|
||||||
|
public CDATASection createCDATASection(String data)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public ProcessingInstruction createProcessingInstruction(String target,
|
||||||
|
String data)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Attr createAttribute(String name)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public EntityReference createEntityReference(String name)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public NodeList getElementsByTagName(String tagname);
|
||||||
|
|
||||||
|
public Node importNode(Node importedNode,
|
||||||
|
boolean deep)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Element createElementNS(String namespaceURI,
|
||||||
|
String qualifiedName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Attr createAttributeNS(String namespaceURI,
|
||||||
|
String qualifiedName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public NodeList getElementsByTagNameNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
public Element getElementById(String elementId);
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.Node'>org/w3c/dom/Node.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface Node {
|
||||||
|
// NodeType
|
||||||
|
public static final short ELEMENT_NODE = 1;
|
||||||
|
public static final short ATTRIBUTE_NODE = 2;
|
||||||
|
public static final short TEXT_NODE = 3;
|
||||||
|
public static final short CDATA_SECTION_NODE = 4;
|
||||||
|
public static final short ENTITY_REFERENCE_NODE = 5;
|
||||||
|
public static final short ENTITY_NODE = 6;
|
||||||
|
public static final short PROCESSING_INSTRUCTION_NODE = 7;
|
||||||
|
public static final short COMMENT_NODE = 8;
|
||||||
|
public static final short DOCUMENT_NODE = 9;
|
||||||
|
public static final short DOCUMENT_TYPE_NODE = 10;
|
||||||
|
public static final short DOCUMENT_FRAGMENT_NODE = 11;
|
||||||
|
public static final short NOTATION_NODE = 12;
|
||||||
|
|
||||||
|
public String getNodeName();
|
||||||
|
|
||||||
|
public String getNodeValue()
|
||||||
|
throws DOMException;
|
||||||
|
public void setNodeValue(String nodeValue)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public short getNodeType();
|
||||||
|
|
||||||
|
public Node getParentNode();
|
||||||
|
|
||||||
|
public NodeList getChildNodes();
|
||||||
|
|
||||||
|
public Node getFirstChild();
|
||||||
|
|
||||||
|
public Node getLastChild();
|
||||||
|
|
||||||
|
public Node getPreviousSibling();
|
||||||
|
|
||||||
|
public Node getNextSibling();
|
||||||
|
|
||||||
|
public NamedNodeMap getAttributes();
|
||||||
|
|
||||||
|
public Document getOwnerDocument();
|
||||||
|
|
||||||
|
public Node insertBefore(Node newChild,
|
||||||
|
Node refChild)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Node replaceChild(Node newChild,
|
||||||
|
Node oldChild)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Node removeChild(Node oldChild)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Node appendChild(Node newChild)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public boolean hasChildNodes();
|
||||||
|
|
||||||
|
public Node cloneNode(boolean deep);
|
||||||
|
|
||||||
|
public void normalize();
|
||||||
|
|
||||||
|
public boolean isSupported(String feature,
|
||||||
|
String version);
|
||||||
|
|
||||||
|
public String getNamespaceURI();
|
||||||
|
|
||||||
|
public String getPrefix();
|
||||||
|
public void setPrefix(String prefix)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public String getLocalName();
|
||||||
|
|
||||||
|
public boolean hasAttributes();
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.NodeList'>org/w3c/dom/NodeList.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface NodeList {
|
||||||
|
public Node item(int index);
|
||||||
|
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.NamedNodeMap'>
|
||||||
|
org/w3c/dom/NamedNodeMap.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface NamedNodeMap {
|
||||||
|
public Node getNamedItem(String name);
|
||||||
|
|
||||||
|
public Node setNamedItem(Node arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Node removeNamedItem(String name)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Node item(int index);
|
||||||
|
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
public Node getNamedItemNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
public Node setNamedItemNS(Node arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Node removeNamedItemNS(String namespaceURI,
|
||||||
|
String localName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.CharacterData'>
|
||||||
|
org/w3c/dom/CharacterData.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface CharacterData extends Node {
|
||||||
|
public String getData()
|
||||||
|
throws DOMException;
|
||||||
|
public void setData(String data)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public int getLength();
|
||||||
|
|
||||||
|
public String substringData(int offset,
|
||||||
|
int count)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public void appendData(String arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public void insertData(int offset,
|
||||||
|
String arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public void deleteData(int offset,
|
||||||
|
int count)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public void replaceData(int offset,
|
||||||
|
int count,
|
||||||
|
String arg)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.Attr'>org/w3c/dom/Attr.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface Attr extends Node {
|
||||||
|
public String getName();
|
||||||
|
|
||||||
|
public boolean getSpecified();
|
||||||
|
|
||||||
|
public String getValue();
|
||||||
|
public void setValue(String value)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Element getOwnerElement();
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.Element'>org/w3c/dom/Element.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface Element extends Node {
|
||||||
|
public String getTagName();
|
||||||
|
|
||||||
|
public String getAttribute(String name);
|
||||||
|
|
||||||
|
public void setAttribute(String name,
|
||||||
|
String value)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public void removeAttribute(String name)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Attr getAttributeNode(String name);
|
||||||
|
|
||||||
|
public Attr setAttributeNode(Attr newAttr)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Attr removeAttributeNode(Attr oldAttr)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public NodeList getElementsByTagName(String name);
|
||||||
|
|
||||||
|
public String getAttributeNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
public void setAttributeNS(String namespaceURI,
|
||||||
|
String qualifiedName,
|
||||||
|
String value)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public void removeAttributeNS(String namespaceURI,
|
||||||
|
String localName)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public Attr getAttributeNodeNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
public Attr setAttributeNodeNS(Attr newAttr)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
public NodeList getElementsByTagNameNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
public boolean hasAttribute(String name);
|
||||||
|
|
||||||
|
public boolean hasAttributeNS(String namespaceURI,
|
||||||
|
String localName);
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.Text'>org/w3c/dom/Text.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface Text extends CharacterData {
|
||||||
|
public Text splitText(int offset)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.Comment'>org/w3c/dom/Comment.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface Comment extends CharacterData {
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.CDATASection'>
|
||||||
|
org/w3c/dom/CDATASection.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface CDATASection extends Text {
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.DocumentType'>
|
||||||
|
org/w3c/dom/DocumentType.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface DocumentType extends Node {
|
||||||
|
public String getName();
|
||||||
|
|
||||||
|
public NamedNodeMap getEntities();
|
||||||
|
|
||||||
|
public NamedNodeMap getNotations();
|
||||||
|
|
||||||
|
public String getPublicId();
|
||||||
|
|
||||||
|
public String getSystemId();
|
||||||
|
|
||||||
|
public String getInternalSubset();
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.Notation'>org/w3c/dom/Notation.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface Notation extends Node {
|
||||||
|
public String getPublicId();
|
||||||
|
|
||||||
|
public String getSystemId();
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.Entity'>org/w3c/dom/Entity.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface Entity extends Node {
|
||||||
|
public String getPublicId();
|
||||||
|
|
||||||
|
public String getSystemId();
|
||||||
|
|
||||||
|
public String getNotationName();
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.EntityReference'>
|
||||||
|
org/w3c/dom/EntityReference.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface EntityReference extends Node {
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.ProcessingInstruction'>
|
||||||
|
org/w3c/dom/ProcessingInstruction.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom;
|
||||||
|
|
||||||
|
public interface ProcessingInstruction extends Node {
|
||||||
|
public String getTarget();
|
||||||
|
|
||||||
|
public String getData();
|
||||||
|
public void setData(String data)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 java-binding -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='idl-definitions.html'>previous</a> <a
|
||||||
|
accesskey='n' href='ecma-script-binding.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
260
java/external/xdocs/dom/core/references.html
vendored
Normal file
260
java/external/xdocs/dom/core/references.html
vendored
Normal file
@ -0,0 +1,260 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:26 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>References</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='def-index.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='glossary.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='glossary.html'>previous</a> <a accesskey='n'
|
||||||
|
href='def-index.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="References" name='References'></a>
|
||||||
|
|
||||||
|
<h1 id='role-references' class='references'>References</h1>
|
||||||
|
|
||||||
|
<p>For the latest version of any W3C specification please consult
|
||||||
|
the list of <a href='http://www.w3.org/TR'>W3C Technical
|
||||||
|
Reports</a> available at http://www.w3.org/TR.</p>
|
||||||
|
|
||||||
|
<div class='div2'><a id="References-Normative"
|
||||||
|
name='References-Normative'></a>
|
||||||
|
|
||||||
|
<h2 id='References-Normative-h2' class='adiv2'>H.1: Normative
|
||||||
|
references</h2>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b><a id="Charmod" name='Charmod'>Charmod</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/1999/WD-charmod-19991129'>Character
|
||||||
|
Model for the World Wide Web</a>, November 1999. Available at
|
||||||
|
http://www.w3.org/TR/1999/WD-charmod-19991129</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="ECMAScript" name='ECMAScript'>ECMAScript</a></b></dt>
|
||||||
|
|
||||||
|
<dd>ECMA (European Computer Manufacturers Association) <a
|
||||||
|
href='http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM'>ECMAScript
|
||||||
|
Language Specification</a>. Available at
|
||||||
|
http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="HTML40" name='HTML40'>HTML4.0</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/1998/REC-html40-19980424'>HTML 4.0
|
||||||
|
Specification</a>, April 1998. Available at
|
||||||
|
http://www.w3.org/TR/1998/REC-html40-19980424</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="ISO10646" name='ISO10646'>ISO/IEC 10646</a></b></dt>
|
||||||
|
|
||||||
|
<dd>ISO (International Organization for Standardization). ISO/IEC
|
||||||
|
10646-1:2000 (E). Information technology - Universal Multiple-Octet
|
||||||
|
Coded Character Set (UCS) - Part 1: Architecture and Basic
|
||||||
|
Multilingual Plane. [Geneva]: International Organization for
|
||||||
|
Standardization.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="Java" name='Java'>Java</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Sun Microsystems Inc. <a
|
||||||
|
href='http://java.sun.com/docs/books/jls'>The Java Language
|
||||||
|
Specification</a>, James Gosling, Bill Joy, and Guy Steele,
|
||||||
|
September 1996. Available at
|
||||||
|
http://java.sun.com/docs/books/jls</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="Namespaces" name='Namespaces'>Namespaces</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/1999/REC-xml-names-19990114'>Namespaces
|
||||||
|
in XML</a>, January 1999. Available at
|
||||||
|
http://www.w3.org/TR/1999/REC-xml-names-19990114</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="OMGIDL" name='OMGIDL'>OMGIDL</a></b></dt>
|
||||||
|
|
||||||
|
<dd>OMG (<a href='http://www.omg.org/'>Object Management Group</a>)
|
||||||
|
IDL (Interface Definition Language) defined in The Common Object
|
||||||
|
Request Broker: Architecture and Specification, version 2.3.1,
|
||||||
|
October 1999. Available from http://www.omg.org/</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="URIRef" name='URIRef'>RFC2396</a></b></dt>
|
||||||
|
|
||||||
|
<dd>IETF (Internet Engineering Task Force) <a
|
||||||
|
href='http://www.ietf.org/rfc/rfc2396.txt'>RFC 2396: Uniform
|
||||||
|
Resource Identifiers (URI): Generic Syntax</a>, eds. T.
|
||||||
|
Berners-Lee, R. Fielding, L. Masinter. August 1998. Available at
|
||||||
|
http://www.ietf.org/rfc/rfc2396.txt</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="Unicode" name='Unicode'>Unicode</a></b></dt>
|
||||||
|
|
||||||
|
<dd>The Unicode Consortium. <a
|
||||||
|
href='http://www.unicode.org/unicode/standard/versions/Unicode3.0.html'>
|
||||||
|
The Unicode Standard, Version 3.0.</a>, February 2000. Available at
|
||||||
|
http://www.unicode.org/unicode/standard/versions/Unicode3.0.html.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="XML" name='XML'>XML</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/1998/REC-xml-19980210'>Extensible Markup
|
||||||
|
Language (XML) 1.0</a>, February 1998. Available at
|
||||||
|
http://www.w3.org/TR/1998/REC-xml-19980210</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 References-Normative -->
|
||||||
|
<div class='div2'><a id="References-Informative"
|
||||||
|
name='References-Informative'></a>
|
||||||
|
|
||||||
|
<h2 id='References-Informative-h2' class='adiv2'>H.2: Informative
|
||||||
|
references</h2>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b><a id="DOMCSS-inf" name='DOMCSS-inf'>DOM Level 2
|
||||||
|
CSS</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Style/css'>Document Object
|
||||||
|
Model Level 2 CSS</a>. Available at
|
||||||
|
http://www.w3.org/TR/DOM-Level-2-Style/css</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="COM" name='COM'>COM</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Microsoft Corp. <a href='http://www.microsoft.com/com'>The
|
||||||
|
Component Object Model</a>. Available at
|
||||||
|
http://www.microsoft.com/com</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="CORBA" name='CORBA'>CORBA</a></b></dt>
|
||||||
|
|
||||||
|
<dd>OMG (<a href='http://www.omg.org/'>Object Management Group</a>)
|
||||||
|
The Common Object Request Broker: Architecture and Specification,
|
||||||
|
version 2.3.1, October 1999. Available from
|
||||||
|
http://www.omg.org/</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="DOM-Level-1" name='DOM-Level-1'>DOM Level
|
||||||
|
1</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/REC-DOM-Level-1'>DOM Level 1
|
||||||
|
Specification</a>, October 1998. Available at
|
||||||
|
http://www.w3.org/TR/REC-DOM-Level-1</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="DOMHTML-inf" name='DOMHTML-inf'>DOM Level 2
|
||||||
|
HTML</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-HTML'>Document Object Model
|
||||||
|
Level 2 HTML Specification</a>. Available at
|
||||||
|
http://www.w3.org/TR/DOM-Level-2-HTML</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="DOMEvents-inf" name='DOMEvents-inf'>DOM Level 2
|
||||||
|
Events</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Events'>Document Object
|
||||||
|
Model Level 2 Events Specification</a>. Available at
|
||||||
|
http://www.w3.org/TR/DOM-Level-2-Events</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="InfoSet" name='InfoSet'>Infoset</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/xml-infoset'>XML Information Set</a>,
|
||||||
|
December 1999. Available at http://www.w3.org/TR/xml-infoset</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="JavaIDL" name='JavaIDL'>JavaIDL</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Sun Microsystems Inc. <a
|
||||||
|
href='http://java.sun.com/products/jdk/1.2/docs/guide/idl'>Java
|
||||||
|
IDL</a>. Available at
|
||||||
|
http://java.sun.com/products/jdk/1.2/docs/guide/idl</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="JavaScript" name='JavaScript'>JavaScript</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Netscape Communications Corp. <a
|
||||||
|
href='http://developer.netscape.com/tech/javascript/resources.html'>
|
||||||
|
JavaScript Resources</a>. Available at
|
||||||
|
http://developer.netscape.com/tech/javascript/resources.html</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="JScript" name='JScript'>JScript</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Microsoft Corp. <a
|
||||||
|
href='http://msdn.microsoft.com/scripting/default.htm'>JScript
|
||||||
|
Resources</a>. Available at
|
||||||
|
http://msdn.microsoft.com/scripting/default.htm</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="MSIDL" name='MSIDL'>MIDL</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Microsoft Corp. <a
|
||||||
|
href='http://msdn.microsoft.com/library/psdk/midl/mi-laref_1r1h.htm'>
|
||||||
|
MIDL Language Reference</a>. Available at
|
||||||
|
http://msdn.microsoft.com/library/psdk/midl/mi-laref_1r1h.htm</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="DOMStyleSheets-inf" name='DOMStyleSheets-inf'>DOM
|
||||||
|
Level 2 Style Sheets</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Style/stylesheets'>Document
|
||||||
|
Object Model Level 2 Style Sheets</a>. Available at
|
||||||
|
http://www.w3.org/TR/DOM-Level-2-Style/stylesheets</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="DOMTraversal-inf" name='DOMTraversal-inf'>DOM Level 2
|
||||||
|
Traversal</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal'>Document
|
||||||
|
Object Model Level 2 Traversal</a>. Available at
|
||||||
|
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="DOMRange-inf" name='DOMRange-inf'>DOM Level 2
|
||||||
|
Range</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html'>
|
||||||
|
Document Object Model Level 2 Range</a>. Available at
|
||||||
|
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="DOMViews-inf" name='DOMViews-inf'>DOM Level 2
|
||||||
|
Views</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Views'>Document Object Model
|
||||||
|
Level 2 Views Specification</a>. Available at
|
||||||
|
http://www.w3.org/TR/DOM-Level-2-Views</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="XPointer" name='XPointer'>XPointer</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/xptr'>XML Pointer Language
|
||||||
|
(XPointer)</a>, June 2000. Available at
|
||||||
|
http://www.w3.org/TR/xptr</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 References-Informative --></div>
|
||||||
|
|
||||||
|
<!-- div1 References -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='glossary.html'>previous</a> <a
|
||||||
|
accesskey='n' href='def-index.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
75
java/external/xdocs/dom/core/spec.css
vendored
Normal file
75
java/external/xdocs/dom/core/spec.css
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
H4 {
|
||||||
|
text-align: left;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #0050B2;
|
||||||
|
}
|
||||||
|
.idl-code {
|
||||||
|
font-family: monospace;
|
||||||
|
border: 1px solid black;
|
||||||
|
white-space: pre;
|
||||||
|
color: black;
|
||||||
|
background-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
.java-code {
|
||||||
|
font-family: monospace;
|
||||||
|
border: 1px solid black;
|
||||||
|
white-space: pre;
|
||||||
|
color: black;
|
||||||
|
background-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.code-block {
|
||||||
|
font-family: monospace;
|
||||||
|
border: 1px solid black;
|
||||||
|
white-space: pre;
|
||||||
|
color: black;
|
||||||
|
background-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.ecma-block {
|
||||||
|
border: 1px solid black;
|
||||||
|
color: black;
|
||||||
|
background-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.interface-name {
|
||||||
|
font-weight: bold
|
||||||
|
}
|
||||||
|
|
||||||
|
.attribute-name {
|
||||||
|
color: black;
|
||||||
|
background-color: #FFFFD2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.constant-name {
|
||||||
|
color: black;
|
||||||
|
background-color: #DDFFD2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.method-name {
|
||||||
|
color: black;
|
||||||
|
background-color: #D9E6F8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.parameter-name {
|
||||||
|
color: black;
|
||||||
|
background-color: #FEE6F8;
|
||||||
|
}
|
||||||
|
|
||||||
|
UL.toc, OL.toc {list-style: none}
|
||||||
|
DIV.toc UL UL, DIV.toc OL OL {margin-left: 0}
|
||||||
|
DIV.toc UL UL UL, DIV.toc OL OL OL {margin-left: 1em}
|
||||||
|
DIV.toc UL UL UL UL, DIV.toc OL OL OL OL {margin-left: 0}
|
||||||
|
LI.tocline1 {font-weight: bold}
|
||||||
|
LI.tocline2 {font-weight: normal}
|
||||||
|
LI.tocline4 {font-style: italic}
|
||||||
|
|
||||||
|
code { font-family: monospace }
|
||||||
|
|
||||||
|
div.paramtable { margin-left: 1em }
|
||||||
|
div.returntable { margin-left: 1em }
|
||||||
|
div.exceptiontable { margin-left: 1em }
|
||||||
100
java/external/xdocs/dom/events/COPYRIGHT.html
vendored
Normal file
100
java/external/xdocs/dom/events/COPYRIGHT.html
vendored
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||||
|
<title>W3C IPR SOFTWARE NOTICE</title>
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000">
|
||||||
|
<h1>
|
||||||
|
W3C IPR SOFTWARE NOTICE
|
||||||
|
</h1>
|
||||||
|
<h3>
|
||||||
|
Copyright © 2000 <loc href="http://www.w3.org/">World Wide Web
|
||||||
|
Consortium</loc>, (<loc href="http://www.lcs.mit.edu/">Massachusetts
|
||||||
|
Institute of Technology</loc>, <loc href="http://www.inria.fr/">Institut
|
||||||
|
National de Recherche en Informatique et en Automatique</loc>, <loc
|
||||||
|
href="http://www.keio.ac.jp/">Keio University</loc>). All Rights
|
||||||
|
Reserved.
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
The DOM bindings are published under the W3C Software Copyright Notice
|
||||||
|
and License. The software license requires "Notice of any changes or
|
||||||
|
modifications to the W3C files, including the date changes were made."
|
||||||
|
Consequently, modified versions of the DOM bindings must document that
|
||||||
|
they do not conform to the W3C standard; in the case of the IDL binding,
|
||||||
|
the pragma prefix can no longer be 'w3c.org'; in the case of the Java
|
||||||
|
binding, the package names can no longer be in the 'org.w3c' package.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>Note:</b> The original version of the W3C Software Copyright Notice
|
||||||
|
and License could be found at <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>http://www.w3.org/Consortium/Legal/copyright-software-19980720</a>
|
||||||
|
</p>
|
||||||
|
<h3>
|
||||||
|
Copyright © 1994-2000 <a href="http://www.w3.org/">World Wide Web
|
||||||
|
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||||
|
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||||
|
National de Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||||
|
Reserved. http://www.w3.org/Consortium/Legal/
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
This W3C work (including software, documents, or other related items) is
|
||||||
|
being provided by the copyright holders under the following license. By
|
||||||
|
obtaining, using and/or copying this work, you (the licensee) agree that
|
||||||
|
you have read, understood, and will comply with the following terms and
|
||||||
|
conditions:
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Permission to use, copy, and modify this software and its documentation,
|
||||||
|
with or without modification, for any purpose and without fee or
|
||||||
|
royalty is hereby granted, provided that you include the following on ALL
|
||||||
|
copies of the software and documentation or portions thereof, including
|
||||||
|
modifications, that you make:
|
||||||
|
</p>
|
||||||
|
<ol>
|
||||||
|
<li>
|
||||||
|
The full text of this NOTICE in a location viewable to users of the
|
||||||
|
redistributed or derivative work.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Any pre-existing intellectual property disclaimers, notices, or terms
|
||||||
|
and conditions. If none exist, a short notice of the following form
|
||||||
|
(hypertext is preferred, text is permitted) should be used within the
|
||||||
|
body of any redistributed or derivative code: "Copyright ©
|
||||||
|
[$date-of-software] <a href="http://www.w3.org/">World Wide Web
|
||||||
|
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||||
|
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||||
|
National de Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||||
|
Reserved. http://www.w3.org/Consortium/Legal/"
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Notice of any changes or modifications to the W3C files, including the
|
||||||
|
date changes were made. (We recommend you provide URIs to the location
|
||||||
|
from which the code is derived.)
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
<p>
|
||||||
|
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
|
||||||
|
HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
|
||||||
|
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
|
||||||
|
DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
|
||||||
|
TRADEMARKS OR OTHER RIGHTS.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
||||||
|
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
|
||||||
|
DOCUMENTATION.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The name and trademarks of copyright holders may NOT be used in
|
||||||
|
advertising or publicity pertaining to the software without specific,
|
||||||
|
written prior permission. Title to copyright in this software and any
|
||||||
|
associated documentation will at all times remain with copyright
|
||||||
|
holders.
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
195
java/external/xdocs/dom/events/Overview.html
vendored
Normal file
195
java/external/xdocs/dom/events/Overview.html
vendored
Normal file
@ -0,0 +1,195 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:56 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Document Object Model (DOM) Level 2 Events
|
||||||
|
Specification</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='expanded-toc.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='n'
|
||||||
|
href='expanded-toc.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='head'>
|
||||||
|
<p><a href='http://www.w3.org/'><img height='48' width='72'
|
||||||
|
alt='W3C' src='./images/w3c_home.gif' /></a></p>
|
||||||
|
|
||||||
|
<h1 id='title'>Document Object Model (DOM) Level 2 Events
|
||||||
|
Specification</h1>
|
||||||
|
|
||||||
|
<h2 id='version'>Version 1.0</h2>
|
||||||
|
|
||||||
|
<!-- REC-DOM-Level-2-Events-20001113
|
||||||
|
-->
|
||||||
|
<h2 id='W3C-doctype'>W3C Recommendation <i>13 November,
|
||||||
|
2000</i></h2>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>This version:</dt>
|
||||||
|
|
||||||
|
<dd><a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113</a><br />
|
||||||
|
(<a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/DOM2-Events.ps'>
|
||||||
|
PostScript file</a> , <a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/DOM2-Events.pdf'>
|
||||||
|
PDF file</a> , <a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/DOM2-Events.txt'>
|
||||||
|
plain text</a> , <a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/DOM2-Events.zip'>
|
||||||
|
ZIP file</a>)</dd>
|
||||||
|
|
||||||
|
<dt>Latest version:</dt>
|
||||||
|
|
||||||
|
<dd><a
|
||||||
|
href='http://www.w3.org/TR/DOM-Level-2-Events'>http://www.w3.org/TR/DOM-Level-2-Events</a></dd>
|
||||||
|
|
||||||
|
<dt>Previous version:</dt>
|
||||||
|
|
||||||
|
<dd><a
|
||||||
|
href='http://www.w3.org/TR/2000/PR-DOM-Level-2-Events-20000927'>http://www.w3.org/TR/2000/PR-DOM-Level-2-Events-20000927</a></dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Editors:</dt>
|
||||||
|
|
||||||
|
<dd>Tom Pixley, <i>Netscape Communications Corp.</i></dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<p class='copyright'>Copyright © 2000 <a
|
||||||
|
href='http://www.w3.org/'><abbr
|
||||||
|
title='World Wide Web Consortium'>W3C</abbr></a><sup>®</sup>
|
||||||
|
(<a href='http://www.lcs.mit.edu/'><abbr
|
||||||
|
title='Massachusetts Institute of Technology'>MIT</abbr></a>, <a
|
||||||
|
href='http://www.inria.fr/'><abbr lang='fr'
|
||||||
|
title='Institut National de Recherche en Informatique et Automatique'>
|
||||||
|
INRIA</abbr></a>, <a href='http://www.keio.ac.jp/'>Keio</a>), All
|
||||||
|
Rights Reserved. W3C <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>
|
||||||
|
liability</a>, <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>
|
||||||
|
trademark</a>, <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-documents-19990405'>
|
||||||
|
document use</a> and <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>
|
||||||
|
software licensing</a> rules apply.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr title='separator from header' />
|
||||||
|
<h2 id='abstract'>Abstract</h2>
|
||||||
|
|
||||||
|
<div class='abstract'>
|
||||||
|
<p>This specification defines the Document Object Model Level 2
|
||||||
|
Events, a platform- and language-neutral interface that gives to
|
||||||
|
programs and scripts a generic event system. The Document Object
|
||||||
|
Model Level 2 Events builds on the Document Object Model Level 2
|
||||||
|
Core [<a class='noxref' href='references.html#DOMCore'>DOM Level 2
|
||||||
|
Core</a>] and on Document Object Model Level 2 Views [<a
|
||||||
|
class='noxref' href='references.html#DOMViews'>DOM Level 2
|
||||||
|
Views</a>].</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 id='status'>Status of this document</h2>
|
||||||
|
|
||||||
|
<div class='status'>
|
||||||
|
<p><em>This section describes the status of this document at the
|
||||||
|
time of its publication. Other documents may supersede this
|
||||||
|
document. The latest status of this document series is maintained
|
||||||
|
at the W3C.</em></p>
|
||||||
|
|
||||||
|
<p>This document has been reviewed by W3C Members and other
|
||||||
|
interested parties and has been endorsed by the Director as a <a
|
||||||
|
href='http://www.w3.org/Consortium/Process/Process-19991111/tr.html#RecsW3C'>
|
||||||
|
W3C Recommendation</a>. It is a stable document and may be used as
|
||||||
|
reference material or cited as a normative reference from another
|
||||||
|
document. W3C's role in making the Recommendation is to draw
|
||||||
|
attention to the specification and to promote its widespread
|
||||||
|
deployment. This enhances the functionality and interoperability of
|
||||||
|
the Web.</p>
|
||||||
|
|
||||||
|
<p>This document has been produced as part of the <a
|
||||||
|
href='http://www.w3.org/DOM/Activity.html'>W3C DOM Activity</a>.
|
||||||
|
The authors of this document are the DOM Working Group members.
|
||||||
|
Different modules of the Document Object Model have different
|
||||||
|
editors.</p>
|
||||||
|
|
||||||
|
<p>Please send general comments about this document to the public
|
||||||
|
mailing list <a href='mailto:www-dom@w3.org'>www-dom@w3.org</a>. An
|
||||||
|
<a href='http://lists.w3.org/Archives/Public/www-dom/'>archive</a>
|
||||||
|
is available at http://lists.w3.org/Archives/Public/www-dom/.</p>
|
||||||
|
|
||||||
|
<p>The English version of this specification is the only normative
|
||||||
|
version. Information about <a
|
||||||
|
href='http://www.w3.org/2000/11/DOM-Level-2-translations'>translations</a>
|
||||||
|
of this document is available at
|
||||||
|
http://www.w3.org/2000/11/DOM-Level-2-translations.</p>
|
||||||
|
|
||||||
|
<p>The <a href='http://www.w3.org/2000/11/DOM-Level-2-errata'>list
|
||||||
|
of known errors</a> in this document is available at
|
||||||
|
http://www.w3.org/2000/11/DOM-Level-2-errata</p>
|
||||||
|
|
||||||
|
<p>A list of <a href='http://www.w3.org/TR/'>current W3C
|
||||||
|
Recommendations and other technical documents</a> can be found at
|
||||||
|
http://www.w3.org/TR.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 id='table-of-contents'><a id="contents" name='contents'>Table
|
||||||
|
of contents</a></h2>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='expanded-toc.html'>Expanded Table of Contents</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='copyright-notice.html'>Copyright Notice</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref' href='events.html'>1.
|
||||||
|
Document Object Model Events</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='idl-definitions.html'>Appendix A: IDL Definitions</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='java-binding.html'>Appendix B: Java Language Binding</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='ecma-script-binding.html'>Appendix C: ECMAScript Language
|
||||||
|
Binding</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='acknowledgements.html'>Appendix D: Acknowledgements</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='glossary.html'>Glossary</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='references.html'>References</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='def-index.html'>Index</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='n' href='expanded-toc.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
94
java/external/xdocs/dom/events/W3C-REC.css
vendored
Normal file
94
java/external/xdocs/dom/events/W3C-REC.css
vendored
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
/* This is an SSI script. Policy:
|
||||||
|
(1) Use CVS
|
||||||
|
(2) send e-mail to w3t-comm@w3.org if you edit this
|
||||||
|
*/
|
||||||
|
/* Style for a "Recommendation" */
|
||||||
|
|
||||||
|
/*
|
||||||
|
This is an SSI script. Policy:
|
||||||
|
(1) Use CVS
|
||||||
|
(2) send e-mail to w3t-comm@w3.org if you edit this
|
||||||
|
|
||||||
|
Acknowledgments:
|
||||||
|
|
||||||
|
- 'background-color' doesn't work on Mac IE 3, but 'background'
|
||||||
|
does (Susan Lesch <lesch@macvirus.com>)
|
||||||
|
|
||||||
|
- 'smaller' leads to illegible text in both Mac IE and Mac NS,
|
||||||
|
'small' is better: works in Mac NS, but is always 12pt in Mac IE
|
||||||
|
3 (Susan Lesch <lesch@macvirus.com>)
|
||||||
|
|
||||||
|
$Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 2em 1em 2em 70px;
|
||||||
|
font-family: sans-serif;
|
||||||
|
color: black;
|
||||||
|
background: white;
|
||||||
|
background-position: top left;
|
||||||
|
background-attachment: fixed;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td { /* ns 4 */
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 { text-align: left }
|
||||||
|
h1, h2, h3 { color: #005A9C }
|
||||||
|
h1 { font: 170% sans-serif }
|
||||||
|
h2 { font: 140% sans-serif }
|
||||||
|
h3 { font: 120% sans-serif }
|
||||||
|
h4 { font: bold 100% sans-serif }
|
||||||
|
h5 { font: italic 100% sans-serif }
|
||||||
|
h6 { font: small-caps 100% sans-serif }
|
||||||
|
|
||||||
|
.hide { display: none }
|
||||||
|
|
||||||
|
div.head { margin-bottom: 1em }
|
||||||
|
div.head h1 { margin-top: 2em; clear: both }
|
||||||
|
div.head table { margin-left: 2em; margin-top: 2em }
|
||||||
|
div.head img { color: white; border: none } /* remove border from top image */
|
||||||
|
|
||||||
|
p.copyright { font-size: small }
|
||||||
|
p.copyright small { font-size: small }
|
||||||
|
|
||||||
|
@media screen { /* hide from IE3 */
|
||||||
|
a:hover { background: #ffa }
|
||||||
|
}
|
||||||
|
|
||||||
|
pre { margin-left: 2em }
|
||||||
|
/*
|
||||||
|
p {
|
||||||
|
margin-top: 0.6em;
|
||||||
|
margin-bottom: 0.6em;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
dt, dd { margin-top: 0; margin-bottom: 0 } /* opera 3.50 */
|
||||||
|
dt { font-weight: bold }
|
||||||
|
|
||||||
|
pre, code { font-family: monospace } /* navigator 4 requires this */
|
||||||
|
|
||||||
|
ul.toc {
|
||||||
|
list-style: disc; /* Mac NS has problem with 'none' */
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media aural {
|
||||||
|
h1, h2, h3 { stress: 20; richness: 90 }
|
||||||
|
.hide { speak: none }
|
||||||
|
p.copyright { volume: x-soft; speech-rate: x-fast }
|
||||||
|
dt { pause-before: 20% }
|
||||||
|
pre { speak-punctuation: code }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Things (icons) that should only show up in projection mode */
|
||||||
|
.projection { display: none }
|
||||||
|
@media projection { .projection { display: inline } }
|
||||||
|
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-image: url(http://www.w3.org/StyleSheets/TR/logo-REC);
|
||||||
|
}
|
||||||
|
|
||||||
101
java/external/xdocs/dom/events/acknowledgements.html
vendored
Normal file
101
java/external/xdocs/dom/events/acknowledgements.html
vendored
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:44:27 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Acknowledgements</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='glossary.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='ecma-script-binding.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='ecma-script-binding.html'>previous</a> <a
|
||||||
|
accesskey='n' href='glossary.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="contributors" name='contributors'></a>
|
||||||
|
|
||||||
|
<h1 id='contributors-h1' class='adiv1'>Appendix D:
|
||||||
|
Acknowledgements</h1>
|
||||||
|
|
||||||
|
<p>Many people contributed to this specification, including members
|
||||||
|
of the DOM Working Group and the DOM Interest Group. We especially
|
||||||
|
thank the following:</p>
|
||||||
|
|
||||||
|
<p>Lauren Wood (SoftQuad Software Inc., <em>chair</em>), Andrew
|
||||||
|
Watson (Object Management Group), Andy Heninger (IBM), Arnaud Le
|
||||||
|
Hors (W3C and IBM), Ben Chang (Oracle), Bill Smith (Sun), Bill Shea
|
||||||
|
(Merrill Lynch), Bob Sutor (IBM), Chris Lovett (Microsoft), Chris
|
||||||
|
Wilson (Microsoft), David Brownell (Sun), David Singer (IBM), Don
|
||||||
|
Park (invited), Eric Vasilik (Microsoft), Gavin Nicol (INSO), Ian
|
||||||
|
Jacobs (W3C), James Clark (invited), James Davidson (Sun), Jared
|
||||||
|
Sorensen (Novell), Joe Kesselman (IBM), Joe Lapp (webMethods), Joe
|
||||||
|
Marini (Macromedia), Johnny Stenback (Netscape), Jonathan Marsh
|
||||||
|
(Microsoft), Jonathan Robie (Texcel Research and Software AG), Kim
|
||||||
|
Adamson-Sharpe (SoftQuad Software Inc.), Laurence Cable (Sun), Mark
|
||||||
|
Davis (IBM), Mark Scardina (Oracle), Martin Dürst (W3C), Mick
|
||||||
|
Goulish (Software AG), Mike Champion (Arbortext and Software AG),
|
||||||
|
Miles Sabin (Cromwell Media), Patti Lutsky (Arbortext), Paul Grosso
|
||||||
|
(Arbortext), Peter Sharpe (SoftQuad Software Inc.), Phil Karlton
|
||||||
|
(Netscape), Philippe Le Hégaret (W3C, <em>W3C team
|
||||||
|
contact</em>), Ramesh Lekshmynarayanan (Merrill Lynch), Ray Whitmer
|
||||||
|
(iMall, Excite@Home and Netscape), Rich Rollman (Microsoft), Rick
|
||||||
|
Gessner (Netscape), Scott Isaacs (Microsoft), Sharon Adler (INSO),
|
||||||
|
Steve Byrne (JavaSoft), Tim Bray (invited), Tom Pixley (Netscape),
|
||||||
|
Vidur Apparao (Netscape), Vinod Anupam (Lucent).</p>
|
||||||
|
|
||||||
|
<p>Thanks to all those who have helped to improve this
|
||||||
|
specification by sending suggestions and corrections.</p>
|
||||||
|
|
||||||
|
<div class='div2'><a id="Productions" name='Productions'></a>
|
||||||
|
|
||||||
|
<h2 id='Productions-h2' class='adiv2'>D.1: Production Systems</h2>
|
||||||
|
|
||||||
|
<p>This specification was written in XML. The HTML, OMG IDL, Java
|
||||||
|
and ECMA Script bindings were all produced automatically.</p>
|
||||||
|
|
||||||
|
<p>Thanks to Joe English, author of <a
|
||||||
|
href='http://www.flightlab.com/cost'>cost</a>, which was used as
|
||||||
|
the basis for producing DOM Level 1. Thanks also to Gavin Nicol,
|
||||||
|
who wrote the scripts which run on top of cost. Arnaud Le Hors and
|
||||||
|
Philippe Le Hégaret maintained the scripts.</p>
|
||||||
|
|
||||||
|
<p>For DOM Level 2, we used <a
|
||||||
|
href='http://xml.apache.org/xerces-j'>Xerces</a> as the basis DOM
|
||||||
|
implementation and wish to thank the authors. Philippe Le
|
||||||
|
Hégaret and Arnaud Le Hors wrote the <a
|
||||||
|
href='http://dev.w3.org/cvsweb/java/classes/org/w3c/tools/specgenerator/'>
|
||||||
|
Java programs</a> which are the DOM application.</p>
|
||||||
|
|
||||||
|
<p>Thanks also to Jan Kärrman, author of <a
|
||||||
|
href='http://www.tdb.uu.se/~jan/html2ps.html'>html2ps</a>, which we
|
||||||
|
use in creating the PostScript version of the specification.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 Productions --></div>
|
||||||
|
|
||||||
|
<!-- div1 contributors -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='ecma-script-binding.html'>previous</a>
|
||||||
|
<a accesskey='n' href='glossary.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
229
java/external/xdocs/dom/events/copyright-notice.html
vendored
Normal file
229
java/external/xdocs/dom/events/copyright-notice.html
vendored
Normal file
@ -0,0 +1,229 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:57 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Copyright Notice</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='events.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='expanded-toc.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='expanded-toc.html'>previous</a> <a accesskey='n'
|
||||||
|
href='events.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="Copyright-Notice"
|
||||||
|
name='Copyright-Notice'></a>
|
||||||
|
|
||||||
|
<h1 id='Copyright-Notice-h1' class='div1'>Copyright Notice</h1>
|
||||||
|
|
||||||
|
<p><b>Copyright © 2000 <a href='http://www.w3.org/'>World Wide
|
||||||
|
Web Consortium</a>, (<a
|
||||||
|
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
|
||||||
|
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
|
||||||
|
Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved.</b></p>
|
||||||
|
|
||||||
|
<p>This document is published under the <a
|
||||||
|
href='copyright-notice.html#Copyright-notice-document'>W3C Document
|
||||||
|
Copyright Notice and License</a>. The bindings within this document
|
||||||
|
are published under the <a
|
||||||
|
href='copyright-notice.html#Copyright-notice-software'>W3C Software
|
||||||
|
Copyright Notice and License</a>. The software license requires
|
||||||
|
"Notice of any changes or modifications to the W3C files, including
|
||||||
|
the date changes were made." Consequently, modified versions of the
|
||||||
|
DOM bindings must document that they do not conform to the W3C
|
||||||
|
standard; in the case of the IDL definitions, the pragma prefix can
|
||||||
|
no longer be 'w3c.org'; in the case of the Java Language binding,
|
||||||
|
the package names can no longer be in the 'org.w3c' package.</p>
|
||||||
|
|
||||||
|
<div class='div2'><a id="Copyright-notice-document"
|
||||||
|
name='Copyright-notice-document'></a>
|
||||||
|
|
||||||
|
<hr width='50' align='center' title='Area separator' />
|
||||||
|
<h2 id='Copyright-notice-document-h2' class='div2'>W3C Document
|
||||||
|
Copyright Notice and License</h2>
|
||||||
|
|
||||||
|
<p><b>Note:</b> This section is a copy of the W3C Document Notice
|
||||||
|
and License and could be found at <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-documents-19990405'>
|
||||||
|
http://www.w3.org/Consortium/Legal/copyright-documents-19990405</a>.</p>
|
||||||
|
|
||||||
|
<p><b>Copyright © 1994-2000 <a href='http://www.w3.org/'>World
|
||||||
|
Wide Web Consortium</a>, (<a
|
||||||
|
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
|
||||||
|
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
|
||||||
|
Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved.</b></p>
|
||||||
|
|
||||||
|
<p><b>http://www.w3.org/Consortium/Legal/</b></p>
|
||||||
|
|
||||||
|
<p>Public documents on the W3C site are provided by the copyright
|
||||||
|
holders under the following license. The software or Document Type
|
||||||
|
Definitions (DTDs) associated with W3C specifications are governed
|
||||||
|
by the <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-software.html'>Software
|
||||||
|
Notice</a>. By using and/or copying this document, or the W3C
|
||||||
|
document from which this statement is linked, you (the licensee)
|
||||||
|
agree that you have read, understood, and will comply with the
|
||||||
|
following terms and conditions:</p>
|
||||||
|
|
||||||
|
<p>Permission to use, copy, and distribute the contents of this
|
||||||
|
document, or the W3C document from which this statement is linked,
|
||||||
|
in any medium for any purpose and without fee or royalty is hereby
|
||||||
|
granted, provided that you include the following on <em>ALL</em>
|
||||||
|
copies of the document, or portions thereof, that you use:</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>A link or URL to the original W3C document.</li>
|
||||||
|
|
||||||
|
<li>The pre-existing copyright notice of the original author, or if
|
||||||
|
it doesn't exist, a notice of the form: "Copyright ©
|
||||||
|
[$date-of-document] <a href='http://www.w3.org/'>World Wide Web
|
||||||
|
Consortium</a>, (<a href='http://www.lcs.mit.edu/'>Massachusetts
|
||||||
|
Institute of Technology</a>, <a
|
||||||
|
href='http://www.inria.fr/'>Institut National de Recherche en
|
||||||
|
Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved. http://www.w3.org/Consortium/Legal/" (Hypertext is
|
||||||
|
preferred, but a textual representation is permitted.)</li>
|
||||||
|
|
||||||
|
<li><em>If it exists</em>, the STATUS of the W3C document.</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<p>When space permits, inclusion of the full text of this
|
||||||
|
<b>NOTICE</b> should be provided. We request that authorship
|
||||||
|
attribution be provided in any software, documents, or other items
|
||||||
|
or products that you create pursuant to the implementation of the
|
||||||
|
contents of this document, or any portion thereof.</p>
|
||||||
|
|
||||||
|
<p>No right to create modifications or derivatives of W3C documents
|
||||||
|
is granted pursuant to this license. However, if additional
|
||||||
|
requirements (documented in the <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/IPR-FAQ.html'>Copyright
|
||||||
|
FAQ</a>) are satisfied, the right to create modifications or
|
||||||
|
derivatives is sometimes granted by the W3C to individuals
|
||||||
|
complying with those requirements.</p>
|
||||||
|
|
||||||
|
<p>THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
|
||||||
|
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT
|
||||||
|
NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS
|
||||||
|
OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
|
||||||
|
IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
|
||||||
|
PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
|
||||||
|
|
||||||
|
<p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
|
||||||
|
DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS
|
||||||
|
THEREOF.</p>
|
||||||
|
|
||||||
|
<p>The name and trademarks of copyright holders may NOT be used in
|
||||||
|
advertising or publicity pertaining to this document or its
|
||||||
|
contents without specific, written prior permission. Title to
|
||||||
|
copyright in this document will at all times remain with copyright
|
||||||
|
holders.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 Copyright-notice-document -->
|
||||||
|
<div class='div2'><a id="Copyright-notice-software"
|
||||||
|
name='Copyright-notice-software'></a>
|
||||||
|
|
||||||
|
<hr width='50' align='center' title='Area separator' />
|
||||||
|
<h2 id='Copyright-notice-software-h2' class='div2'>W3C Software
|
||||||
|
Copyright Notice and License</h2>
|
||||||
|
|
||||||
|
<p><b>Note:</b> This section is a copy of the W3C Software
|
||||||
|
Copyright Notice and License and could be found at <a
|
||||||
|
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>
|
||||||
|
http://www.w3.org/Consortium/Legal/copyright-software-19980720</a></p>
|
||||||
|
|
||||||
|
<p><b>Copyright © 1994-2000 <a href='http://www.w3.org/'>World
|
||||||
|
Wide Web Consortium</a>, (<a
|
||||||
|
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
|
||||||
|
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
|
||||||
|
Recherche en Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved.</b></p>
|
||||||
|
|
||||||
|
<p><b>http://www.w3.org/Consortium/Legal/</b></p>
|
||||||
|
|
||||||
|
<p>This W3C work (including software, documents, or other related
|
||||||
|
items) is being provided by the copyright holders under the
|
||||||
|
following license. By obtaining, using and/or copying this work,
|
||||||
|
you (the licensee) agree that you have read, understood, and will
|
||||||
|
comply with the following terms and conditions:</p>
|
||||||
|
|
||||||
|
<p>Permission to use, copy, and modify this software and its
|
||||||
|
documentation, with or without modification, for any purpose and
|
||||||
|
without fee or royalty is hereby granted, provided that you include
|
||||||
|
the following on ALL copies of the software and documentation or
|
||||||
|
portions thereof, including modifications, that you make:</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>The full text of this NOTICE in a location viewable to users of
|
||||||
|
the redistributed or derivative work.</li>
|
||||||
|
|
||||||
|
<li>Any pre-existing intellectual property disclaimers. If none
|
||||||
|
exist, then a notice of the following form: "Copyright ©
|
||||||
|
[$date-of-software] <a href='http://www.w3.org/'>World Wide Web
|
||||||
|
Consortium</a>, (<a href='http://www.lcs.mit.edu/'>Massachusetts
|
||||||
|
Institute of Technology</a>, <a
|
||||||
|
href='http://www.inria.fr/'>Institut National de Recherche en
|
||||||
|
Informatique et en Automatique</a>, <a
|
||||||
|
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
|
||||||
|
Reserved. http://www.w3.org/Consortium/Legal/."</li>
|
||||||
|
|
||||||
|
<li>Notice of any changes or modifications to the W3C files,
|
||||||
|
including the date changes were made. (We recommend you provide
|
||||||
|
URIs to the location from which the code is derived.)</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<p>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
|
||||||
|
COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
|
||||||
|
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
|
||||||
|
USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD
|
||||||
|
PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
|
||||||
|
|
||||||
|
<p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
|
||||||
|
SOFTWARE OR DOCUMENTATION.</p>
|
||||||
|
|
||||||
|
<p>The name and trademarks of copyright holders may NOT be used in
|
||||||
|
advertising or publicity pertaining to the software without
|
||||||
|
specific, written prior permission. Title to copyright in this
|
||||||
|
software and any associated documentation will at all times remain
|
||||||
|
with copyright holders.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 Copyright-notice-software --></div>
|
||||||
|
|
||||||
|
<!-- div1 Copyright-Notice -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='expanded-toc.html'>previous</a> <a
|
||||||
|
accesskey='n' href='events.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
363
java/external/xdocs/dom/events/def-index.html
vendored
Normal file
363
java/external/xdocs/dom/events/def-index.html
vendored
Normal file
@ -0,0 +1,363 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:44:28 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Index</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='previous' href='references.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='references.html'>previous</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="Index" name='Index'></a>
|
||||||
|
|
||||||
|
<h1 id='role-index' class='index'>Index</h1>
|
||||||
|
|
||||||
|
<table
|
||||||
|
summary='the table contains all keywords used in this document'>
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-EventTarget-addEventListener'>addEventListener</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent-attrChangeType'>ADDITION</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-altKey'>altKey</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-overview-terminology'>ancestor</a> <a
|
||||||
|
class='index-inst'
|
||||||
|
href='events.html#Events-overview-terminology'>1</a>, <a
|
||||||
|
class='index-inst' href='events.html#Events-flow-capture'>2</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-ancestor'>3</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-eventPhaseType'>AT_TARGET</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent-attrChange'>attrChange</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent-attrName'>attrName</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-canBubble'>bubbles</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-eventPhaseType'>BUBBLING_PHASE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-button'>button</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-canCancel'>cancelable</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-eventPhaseType'>CAPTURING_PHASE</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-eventgroupings-mutationevents'>child</a>
|
||||||
|
<a class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-mutationevents'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-child'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-clientX'>clientX</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-clientY'>clientY</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-DocumentEvent-createEvent'>createEvent</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-ctrlKey'>ctrlKey</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-currentTarget'>currentTarget</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-flow-capture'>descendant</a> <a
|
||||||
|
class='index-inst' href='events.html#Events-flow-capture'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-descendant'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-UIEvent-detail'>detail</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-EventTarget-dispatchEvent'>dispatchEvent</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-DocumentEvent'>DocumentEvent</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-overview'>DOM Level 0</a> <a
|
||||||
|
class='index-inst' href='events.html#Events-overview'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-uievents'>2</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-mouseevents'>3</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-htmlevents'>4</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-DOM-Level-0'>5</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-overview'>DOM Level 2 Core</a> <a
|
||||||
|
class='index-inst' href='events.html#Events-overview'>1</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-uievents'>2</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-mouseevents'>3</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-mutationevents'>4</a>, <a
|
||||||
|
class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-htmlevents'>5</a>, <a
|
||||||
|
class='index-inst' href='references.html#DOMCore'>6</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-eventgroupings-uievents'>DOM Level 2
|
||||||
|
Views</a> <a class='index-inst'
|
||||||
|
href='events.html#Events-eventgroupings-uievents'>1</a>, <a
|
||||||
|
class='index-inst' href='references.html#DOMViews'>2</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='references.html#ECMAScript'>ECMAScript</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event'>Event</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-EventException'>EventException</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-EventListener'>EventListener</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-eventPhase'>eventPhase</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-EventTarget'>EventTarget</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-EventListener-handleEvent'>handleEvent</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-initEvent'>initEvent</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-initMouseEvent'>initMouseEvent</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-initMutationEvent'>initMutationEvent</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-initUIEvent'>initUIEvent</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='references.html#Java'>Java</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-metaKey'>metaKey</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent-attrChangeType'>MODIFICATION</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent'>MouseEvent</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent'>MutationEvent</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent-newValue'>newValue</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='references.html#OMGIDL'>OMGIDL</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-preventDefault'>preventDefault</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent-prevValue'>prevValue</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent-relatedNode'>relatedNode</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-relatedTarget'>relatedTarget</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MutationEvent-attrChangeType'>REMOVAL</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-EventTarget-removeEventListener'>removeEventListener</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-screenX'>screenX</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-screenY'>screenY</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-MouseEvent-shiftKey'>shiftKey</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-flow-capture'>sibling</a> <a
|
||||||
|
class='index-inst' href='events.html#Events-flow-capture'>1</a>, <a
|
||||||
|
class='index-inst' href='glossary.html#dt-sibling'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-stopPropagation'>stopPropagation</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-target'>target</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-timeStamp'>timeStamp</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='glossary.html#dt-tokenized'>tokenized</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-type'>type</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-UIEvent'>UIEvent</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-EventException-EventExceptionCode'>UNSPECIFIED_EVENT_TYPE_ERR</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-UIEvent-view'>view</a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='glossary.html#dt-XML-name'>XML</a> <a class='index-inst'
|
||||||
|
href='glossary.html#dt-XML-name'>1</a>, <a class='index-inst'
|
||||||
|
href='references.html#XML'>2</a></td>
|
||||||
|
<td width='30%'><a class='noxref'
|
||||||
|
href='events.html#Events-Event-type'>XML name</a> <a
|
||||||
|
class='index-inst' href='events.html#Events-Event-type'>1</a>, <a
|
||||||
|
class='index-inst' href='events.html#Events-Event-initEvent'>2</a>,
|
||||||
|
<a class='index-inst' href='glossary.html#dt-XML-name'>3</a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 Index -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='references.html'>previous</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
472
java/external/xdocs/dom/events/ecma-script-binding.html
vendored
Normal file
472
java/external/xdocs/dom/events/ecma-script-binding.html
vendored
Normal file
@ -0,0 +1,472 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:44:26 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>ECMAScript Language Binding</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='acknowledgements.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='java-binding.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='java-binding.html'>previous</a> <a accesskey='n'
|
||||||
|
href='acknowledgements.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="ecma-binding" name='ecma-binding'></a>
|
||||||
|
|
||||||
|
<h1 id='ecma-binding-h1' class='adiv1'>Appendix C: ECMAScript
|
||||||
|
Language Binding</h1>
|
||||||
|
|
||||||
|
<p>This appendix contains the complete ECMAScript [<a
|
||||||
|
class='noxref' href='references.html#ECMAScript'>ECMAScript</a>]
|
||||||
|
binding for the Level 2 Document Object Model Events
|
||||||
|
definitions.</p>
|
||||||
|
|
||||||
|
<p><b>Note:</b> Exceptions handling is only supported by ECMAScript
|
||||||
|
implementation conformant with the Standard ECMA-262 3rd. Edition
|
||||||
|
([<a class='noxref'
|
||||||
|
href='references.html#ECMAScript'>ECMAScript</a>]).</p>
|
||||||
|
|
||||||
|
<div class='ecma-block'>
|
||||||
|
<dl>
|
||||||
|
<dt>Object <b>EventTarget</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>The <b>EventTarget</b> object has the following methods:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>addEventListener(type, listener, useCapture)</b></dt>
|
||||||
|
|
||||||
|
<dd>This method has no return value.<br />
|
||||||
|
The <b>type</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>listener</b> parameter is a <b>EventListener</b>
|
||||||
|
object.<br />
|
||||||
|
The <b>useCapture</b> parameter is of type <b>Boolean</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>removeEventListener(type, listener, useCapture)</b></dt>
|
||||||
|
|
||||||
|
<dd>This method has no return value.<br />
|
||||||
|
The <b>type</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>listener</b> parameter is a <b>EventListener</b>
|
||||||
|
object.<br />
|
||||||
|
The <b>useCapture</b> parameter is of type <b>Boolean</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>dispatchEvent(evt)</b></dt>
|
||||||
|
|
||||||
|
<dd>This method returns a <b>Boolean</b>.<br />
|
||||||
|
The <b>evt</b> parameter is a <b>Event</b> object.<br />
|
||||||
|
This method can raise a <b>EventException</b> object.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Object <b>EventListener</b></dt>
|
||||||
|
|
||||||
|
<dd>This is an ECMAScript function reference. This method has no
|
||||||
|
return value. The parameter is a <b>Event</b> object.</dd>
|
||||||
|
|
||||||
|
<dt>Prototype Object <b>Event</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>The <b>Event</b> class has the following constants:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>Event.CAPTURING_PHASE</b></dt>
|
||||||
|
|
||||||
|
<dd>This constant is of type <b>Number</b> and its value is
|
||||||
|
<b>1</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>Event.AT_TARGET</b></dt>
|
||||||
|
|
||||||
|
<dd>This constant is of type <b>Number</b> and its value is
|
||||||
|
<b>2</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>Event.BUBBLING_PHASE</b></dt>
|
||||||
|
|
||||||
|
<dd>This constant is of type <b>Number</b> and its value is
|
||||||
|
<b>3</b>.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Object <b>Event</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>The <b>Event</b> object has the following properties:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>type</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>target</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>EventTarget</b> object.</dd>
|
||||||
|
|
||||||
|
<dt><b>currentTarget</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>EventTarget</b> object.</dd>
|
||||||
|
|
||||||
|
<dt><b>eventPhase</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Number</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>bubbles</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Boolean</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>cancelable</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Boolean</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>timeStamp</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>Date</b> object.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>The <b>Event</b> object has the following methods:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>stopPropagation()</b></dt>
|
||||||
|
|
||||||
|
<dd>This method has no return value.</dd>
|
||||||
|
|
||||||
|
<dt><b>preventDefault()</b></dt>
|
||||||
|
|
||||||
|
<dd>This method has no return value.</dd>
|
||||||
|
|
||||||
|
<dt><b>initEvent(eventTypeArg, canBubbleArg,
|
||||||
|
cancelableArg)</b></dt>
|
||||||
|
|
||||||
|
<dd>This method has no return value.<br />
|
||||||
|
The <b>eventTypeArg</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>canBubbleArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>cancelableArg</b> parameter is of type <b>Boolean</b>.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Prototype Object <b>EventException</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>The <b>EventException</b> class has the following
|
||||||
|
constants:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>EventException.UNSPECIFIED_EVENT_TYPE_ERR</b></dt>
|
||||||
|
|
||||||
|
<dd>This constant is of type <b>Number</b> and its value is
|
||||||
|
<b>0</b>.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Object <b>EventException</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>The <b>EventException</b> object has the following
|
||||||
|
properties:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>code</b></dt>
|
||||||
|
|
||||||
|
<dd>This property is of type <b>Number</b>.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Object <b>DocumentEvent</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>The <b>DocumentEvent</b> object has the following methods:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>createEvent(eventType)</b></dt>
|
||||||
|
|
||||||
|
<dd>This method returns a <b>Event</b> object.<br />
|
||||||
|
The <b>eventType</b> parameter is of type <b>String</b>.<br />
|
||||||
|
This method can raise a <b>DOMException</b> object.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Object <b>UIEvent</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>UIEvent</b> has the all the properties and methods of the
|
||||||
|
<b>Event</b> object as well as the properties and methods defined
|
||||||
|
below.</dt>
|
||||||
|
|
||||||
|
<dt>The <b>UIEvent</b> object has the following properties:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>view</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>AbstractView</b> object.</dd>
|
||||||
|
|
||||||
|
<dt><b>detail</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>long</b> object.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>The <b>UIEvent</b> object has the following methods:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg,
|
||||||
|
detailArg)</b></dt>
|
||||||
|
|
||||||
|
<dd>This method has no return value.<br />
|
||||||
|
The <b>typeArg</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>canBubbleArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>cancelableArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>viewArg</b> parameter is a <b>AbstractView</b> object.<br />
|
||||||
|
The <b>detailArg</b> parameter is a <b>long</b> object.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Object <b>MouseEvent</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>MouseEvent</b> has the all the properties and methods of the
|
||||||
|
<b>UIEvent</b> object as well as the properties and methods defined
|
||||||
|
below.</dt>
|
||||||
|
|
||||||
|
<dt>The <b>MouseEvent</b> object has the following properties:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>screenX</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>long</b> object.</dd>
|
||||||
|
|
||||||
|
<dt><b>screenY</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>long</b> object.</dd>
|
||||||
|
|
||||||
|
<dt><b>clientX</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>long</b> object.</dd>
|
||||||
|
|
||||||
|
<dt><b>clientY</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>long</b> object.</dd>
|
||||||
|
|
||||||
|
<dt><b>ctrlKey</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Boolean</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>shiftKey</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Boolean</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>altKey</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Boolean</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>metaKey</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Boolean</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>button</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Number</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>relatedTarget</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>EventTarget</b> object.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>The <b>MouseEvent</b> object has the following methods:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>initMouseEvent(typeArg, canBubbleArg, cancelableArg,
|
||||||
|
viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg,
|
||||||
|
ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg,
|
||||||
|
relatedTargetArg)</b></dt>
|
||||||
|
|
||||||
|
<dd>This method has no return value.<br />
|
||||||
|
The <b>typeArg</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>canBubbleArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>cancelableArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>viewArg</b> parameter is a <b>AbstractView</b> object.<br />
|
||||||
|
The <b>detailArg</b> parameter is a <b>long</b> object.<br />
|
||||||
|
The <b>screenXArg</b> parameter is a <b>long</b> object.<br />
|
||||||
|
The <b>screenYArg</b> parameter is a <b>long</b> object.<br />
|
||||||
|
The <b>clientXArg</b> parameter is a <b>long</b> object.<br />
|
||||||
|
The <b>clientYArg</b> parameter is a <b>long</b> object.<br />
|
||||||
|
The <b>ctrlKeyArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>altKeyArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>shiftKeyArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>metaKeyArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>buttonArg</b> parameter is of type <b>Number</b>.<br />
|
||||||
|
The <b>relatedTargetArg</b> parameter is a <b>EventTarget</b>
|
||||||
|
object.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Prototype Object <b>MutationEvent</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>The <b>MutationEvent</b> class has the following
|
||||||
|
constants:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>MutationEvent.MODIFICATION</b></dt>
|
||||||
|
|
||||||
|
<dd>This constant is of type <b>Number</b> and its value is
|
||||||
|
<b>1</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>MutationEvent.ADDITION</b></dt>
|
||||||
|
|
||||||
|
<dd>This constant is of type <b>Number</b> and its value is
|
||||||
|
<b>2</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>MutationEvent.REMOVAL</b></dt>
|
||||||
|
|
||||||
|
<dd>This constant is of type <b>Number</b> and its value is
|
||||||
|
<b>3</b>.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>Object <b>MutationEvent</b></dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>MutationEvent</b> has the all the properties and methods of
|
||||||
|
the <b>Event</b> object as well as the properties and methods
|
||||||
|
defined below.</dt>
|
||||||
|
|
||||||
|
<dt>The <b>MutationEvent</b> object has the following
|
||||||
|
properties:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>relatedNode</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is a <b>Node</b> object.</dd>
|
||||||
|
|
||||||
|
<dt><b>prevValue</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>newValue</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>attrName</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
||||||
|
|
||||||
|
<dt><b>attrChange</b></dt>
|
||||||
|
|
||||||
|
<dd>This read-only property is of type <b>Number</b>.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>The <b>MutationEvent</b> object has the following methods:</dt>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt><b>initMutationEvent(typeArg, canBubbleArg, cancelableArg,
|
||||||
|
relatedNodeArg, prevValueArg, newValueArg, attrNameArg,
|
||||||
|
attrChangeArg)</b></dt>
|
||||||
|
|
||||||
|
<dd>This method has no return value.<br />
|
||||||
|
The <b>typeArg</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>canBubbleArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>cancelableArg</b> parameter is of type <b>Boolean</b>.<br />
|
||||||
|
The <b>relatedNodeArg</b> parameter is a <b>Node</b> object.<br />
|
||||||
|
The <b>prevValueArg</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>newValueArg</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>attrNameArg</b> parameter is of type <b>String</b>.<br />
|
||||||
|
The <b>attrChangeArg</b> parameter is of type <b>Number</b>.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ecma-block -->
|
||||||
|
<p>The following example will add an ECMAScript based EventListener
|
||||||
|
to the Node 'exampleNode':</p>
|
||||||
|
|
||||||
|
<div class='code-block'>
|
||||||
|
<pre>
|
||||||
|
// Given the Node 'exampleNode'
|
||||||
|
|
||||||
|
// Define the EventListener function
|
||||||
|
function clickHandler(evt)
|
||||||
|
{
|
||||||
|
// Function contents
|
||||||
|
}
|
||||||
|
|
||||||
|
// The following line will add a non-capturing 'click' listener
|
||||||
|
// to 'exampleNode'.
|
||||||
|
exampleNode.addEventListener("click", clickHandler, false);
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 ecma-binding -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='java-binding.html'>previous</a> <a
|
||||||
|
accesskey='n' href='acknowledgements.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
2715
java/external/xdocs/dom/events/events.html
vendored
Normal file
2715
java/external/xdocs/dom/events/events.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
192
java/external/xdocs/dom/events/expanded-toc.html
vendored
Normal file
192
java/external/xdocs/dom/events/expanded-toc.html
vendored
Normal file
@ -0,0 +1,192 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:43:56 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Expanded Table of Contents</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='copyright-notice.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='Overview.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='Overview.html'>previous</a> <a accesskey='n'
|
||||||
|
href='copyright-notice.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="TOC" name='TOC'></a>
|
||||||
|
|
||||||
|
<h1 id='TOC-h1' class='div1'>Expanded Table of Contents</h1>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='expanded-toc.html'>Expanded Table of Contents</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='copyright-notice.html'>Copyright Notice</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='copyright-notice.html#Copyright-notice-document'>W3C Document
|
||||||
|
Copyright Notice and License</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='copyright-notice.html#Copyright-notice-software'>W3C Software
|
||||||
|
Copyright Notice and License</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref' href='events.html'>1.
|
||||||
|
Document Object Model Events</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='events.html#Events-overview'>1.1. Overview of the DOM Level 2
|
||||||
|
Event Model</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-overview-terminology'>1.1.1.
|
||||||
|
Terminology</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='events.html#Events-flow'>1.2. Description of event flow</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-flow-basic'>1.2.1. Basic event
|
||||||
|
flow</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-flow-capture'>1.2.2. Event
|
||||||
|
capture</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-flow-bubbling'>1.2.3. Event
|
||||||
|
bubbling</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-flow-cancelation'>1.2.4. Event
|
||||||
|
cancelation</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='events.html#Events-registration'>1.3. Event listener
|
||||||
|
registration</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-Registration-interfaces'>1.3.1. Event
|
||||||
|
registration interfaces</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-registration-html40'>1.3.2. Interaction
|
||||||
|
with HTML 4.0 event listeners</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='events.html#Events-interface'>1.4. Event interface</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='events.html#Events-document'>1.5. DocumentEvent
|
||||||
|
interface</a></li>
|
||||||
|
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='events.html#Events-eventgroupings'>1.6. Event module
|
||||||
|
definitions</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-eventgroupings-uievents'>1.6.1. User
|
||||||
|
Interface event types</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-eventgroupings-mouseevents'>1.6.2. Mouse
|
||||||
|
event types</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-eventgroupings-keyevents'>1.6.3. Key
|
||||||
|
events</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-eventgroupings-mutationevents'>1.6.4.
|
||||||
|
Mutation event types</a></li>
|
||||||
|
|
||||||
|
<li class='tocline4'><a class='tocxref'
|
||||||
|
href='events.html#Events-eventgroupings-htmlevents'>1.6.5. HTML
|
||||||
|
event types</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='idl-definitions.html'>Appendix A: IDL Definitions</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='java-binding.html'>Appendix B: Java Language Binding</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='ecma-script-binding.html'>Appendix C: ECMAScript Language
|
||||||
|
Binding</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='acknowledgements.html'>Appendix D: Acknowledgements</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='acknowledgements.html#Productions'>D.1. Production
|
||||||
|
Systems</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='glossary.html'>Glossary</a></li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='references.html'>References</a>
|
||||||
|
|
||||||
|
<ul class='toc'>
|
||||||
|
<li class='tocline3'><a class='tocxref'
|
||||||
|
href='references.html#References-Normative'>1. Normative
|
||||||
|
references</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class='tocline2'><a class='tocxref'
|
||||||
|
href='def-index.html'>Index</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 TOC -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='Overview.html'>previous</a> <a
|
||||||
|
accesskey='n' href='copyright-notice.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
111
java/external/xdocs/dom/events/glossary.html
vendored
Normal file
111
java/external/xdocs/dom/events/glossary.html
vendored
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:44:27 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Glossary</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='references.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='acknowledgements.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='acknowledgements.html'>previous</a> <a accesskey='n'
|
||||||
|
href='references.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="glossary" name='glossary'></a>
|
||||||
|
|
||||||
|
<h1 id='role-glossary' class='glossary'>Glossary</h1>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><i>Editors</i></dt>
|
||||||
|
|
||||||
|
<dd>Arnaud Le Hors, IBM</dd>
|
||||||
|
|
||||||
|
<dd>Lauren Wood, SoftQuad Software Inc.</dd>
|
||||||
|
|
||||||
|
<dd>Robert S. Sutor, IBM (for DOM Level 1)</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<p>Several of the following term definitions have been borrowed or
|
||||||
|
modified from similar definitions in other W3C or standards
|
||||||
|
documents. See the links within the definitions for more
|
||||||
|
information.</p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b><a id="dt-ancestor" name='dt-ancestor'>ancestor</a></b></dt>
|
||||||
|
|
||||||
|
<dd>An <i>ancestor</i> node of any node A is any node above A in a
|
||||||
|
tree model of a document, where "above" means "toward the
|
||||||
|
root."</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-child" name='dt-child'>child</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>child</i> is an immediate <i>descendant</i> node of a
|
||||||
|
node.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-descendant"
|
||||||
|
name='dt-descendant'>descendant</a></b></dt>
|
||||||
|
|
||||||
|
<dd>A <i>descendant</i> node of any node A is any node below A in a
|
||||||
|
tree model of a document, where "above" means "toward the
|
||||||
|
root."</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-DOM-Level-0" name='dt-DOM-Level-0'>DOM Level
|
||||||
|
0</a></b></dt>
|
||||||
|
|
||||||
|
<dd>The term "<i>DOM Level 0</i>" refers to a mix (not formally
|
||||||
|
specified) of HTML document functionalities offered by Netscape
|
||||||
|
Navigator version 3.0 and Microsoft Internet Explorer version 3.0.
|
||||||
|
In some cases, attributes or <i>methods</i> have been included for
|
||||||
|
reasons of backward compatibility with "DOM Level 0".</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-sibling" name='dt-sibling'>sibling</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Two nodes are <i>siblings</i> if and only if they have the same
|
||||||
|
<i>parent</i> node.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-tokenized"
|
||||||
|
name='dt-tokenized'>tokenized</a></b></dt>
|
||||||
|
|
||||||
|
<dd>The description given to various information items (for
|
||||||
|
example, attribute values of various types, but not including the
|
||||||
|
StringType CDATA) after having been processed by the XML processor.
|
||||||
|
The process includes stripping leading and trailing white space,
|
||||||
|
and replacing multiple space characters by one. See the definition
|
||||||
|
of tokenized type.</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="dt-XML-name" name='dt-XML-name'>XML name</a></b></dt>
|
||||||
|
|
||||||
|
<dd>See <a
|
||||||
|
href='http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name'><em>XML
|
||||||
|
name</em></a> in the XML specification [<a class='noxref'
|
||||||
|
href='references.html#XML'>XML</a>].</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 glossary -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='acknowledgements.html'>previous</a>
|
||||||
|
<a accesskey='n' href='references.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
198
java/external/xdocs/dom/events/idl-definitions.html
vendored
Normal file
198
java/external/xdocs/dom/events/idl-definitions.html
vendored
Normal file
@ -0,0 +1,198 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:44:19 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>IDL Definitions</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='java-binding.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='events.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='events.html'>previous</a> <a accesskey='n'
|
||||||
|
href='java-binding.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="idl" name='idl'></a>
|
||||||
|
|
||||||
|
<h1 id='idl-h1' class='adiv1'>Appendix A: IDL Definitions</h1>
|
||||||
|
|
||||||
|
<p>This appendix contains the complete OMG IDL [<a class='noxref'
|
||||||
|
href='references.html#OMGIDL'>OMGIDL</a>] for the Level 2 Document
|
||||||
|
Object Model Events definitions.</p>
|
||||||
|
|
||||||
|
<p>The IDL files are also available as: <a
|
||||||
|
href='idl.zip'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/idl.zip</a></p>
|
||||||
|
|
||||||
|
<h3 id='idl-events.idl'><a
|
||||||
|
href='idl/events.idl'>events.idl</a>:</h3>
|
||||||
|
|
||||||
|
<div class='idl-code'>
|
||||||
|
<pre>
|
||||||
|
// File: events.idl
|
||||||
|
|
||||||
|
#ifndef _EVENTS_IDL_
|
||||||
|
#define _EVENTS_IDL_
|
||||||
|
|
||||||
|
#include "dom.idl"
|
||||||
|
#include "views.idl"
|
||||||
|
|
||||||
|
#pragma prefix "dom.w3c.org"
|
||||||
|
module events
|
||||||
|
{
|
||||||
|
|
||||||
|
typedef dom::DOMString DOMString;
|
||||||
|
typedef dom::DOMTimeStamp DOMTimeStamp;
|
||||||
|
typedef dom::Node Node;
|
||||||
|
|
||||||
|
interface EventListener;
|
||||||
|
interface Event;
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
exception EventException {
|
||||||
|
unsigned short code;
|
||||||
|
};
|
||||||
|
// EventExceptionCode
|
||||||
|
const unsigned short UNSPECIFIED_EVENT_TYPE_ERR = 0;
|
||||||
|
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface EventTarget {
|
||||||
|
void addEventListener(in DOMString type,
|
||||||
|
in EventListener listener,
|
||||||
|
in boolean useCapture);
|
||||||
|
void removeEventListener(in DOMString type,
|
||||||
|
in EventListener listener,
|
||||||
|
in boolean useCapture);
|
||||||
|
boolean dispatchEvent(in Event evt)
|
||||||
|
raises(EventException);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface EventListener {
|
||||||
|
void handleEvent(in Event evt);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface Event {
|
||||||
|
|
||||||
|
// PhaseType
|
||||||
|
const unsigned short CAPTURING_PHASE = 1;
|
||||||
|
const unsigned short AT_TARGET = 2;
|
||||||
|
const unsigned short BUBBLING_PHASE = 3;
|
||||||
|
|
||||||
|
readonly attribute DOMString type;
|
||||||
|
readonly attribute EventTarget target;
|
||||||
|
readonly attribute EventTarget currentTarget;
|
||||||
|
readonly attribute unsigned short eventPhase;
|
||||||
|
readonly attribute boolean bubbles;
|
||||||
|
readonly attribute boolean cancelable;
|
||||||
|
readonly attribute DOMTimeStamp timeStamp;
|
||||||
|
void stopPropagation();
|
||||||
|
void preventDefault();
|
||||||
|
void initEvent(in DOMString eventTypeArg,
|
||||||
|
in boolean canBubbleArg,
|
||||||
|
in boolean cancelableArg);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface DocumentEvent {
|
||||||
|
Event createEvent(in DOMString eventType)
|
||||||
|
raises(dom::DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface UIEvent : Event {
|
||||||
|
readonly attribute views::AbstractView view;
|
||||||
|
readonly attribute long detail;
|
||||||
|
void initUIEvent(in DOMString typeArg,
|
||||||
|
in boolean canBubbleArg,
|
||||||
|
in boolean cancelableArg,
|
||||||
|
in views::AbstractView viewArg,
|
||||||
|
in long detailArg);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface MouseEvent : UIEvent {
|
||||||
|
readonly attribute long screenX;
|
||||||
|
readonly attribute long screenY;
|
||||||
|
readonly attribute long clientX;
|
||||||
|
readonly attribute long clientY;
|
||||||
|
readonly attribute boolean ctrlKey;
|
||||||
|
readonly attribute boolean shiftKey;
|
||||||
|
readonly attribute boolean altKey;
|
||||||
|
readonly attribute boolean metaKey;
|
||||||
|
readonly attribute unsigned short button;
|
||||||
|
readonly attribute EventTarget relatedTarget;
|
||||||
|
void initMouseEvent(in DOMString typeArg,
|
||||||
|
in boolean canBubbleArg,
|
||||||
|
in boolean cancelableArg,
|
||||||
|
in views::AbstractView viewArg,
|
||||||
|
in long detailArg,
|
||||||
|
in long screenXArg,
|
||||||
|
in long screenYArg,
|
||||||
|
in long clientXArg,
|
||||||
|
in long clientYArg,
|
||||||
|
in boolean ctrlKeyArg,
|
||||||
|
in boolean altKeyArg,
|
||||||
|
in boolean shiftKeyArg,
|
||||||
|
in boolean metaKeyArg,
|
||||||
|
in unsigned short buttonArg,
|
||||||
|
in EventTarget relatedTargetArg);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface MutationEvent : Event {
|
||||||
|
|
||||||
|
// attrChangeType
|
||||||
|
const unsigned short MODIFICATION = 1;
|
||||||
|
const unsigned short ADDITION = 2;
|
||||||
|
const unsigned short REMOVAL = 3;
|
||||||
|
|
||||||
|
readonly attribute Node relatedNode;
|
||||||
|
readonly attribute DOMString prevValue;
|
||||||
|
readonly attribute DOMString newValue;
|
||||||
|
readonly attribute DOMString attrName;
|
||||||
|
readonly attribute unsigned short attrChange;
|
||||||
|
void initMutationEvent(in DOMString typeArg,
|
||||||
|
in boolean canBubbleArg,
|
||||||
|
in boolean cancelableArg,
|
||||||
|
in Node relatedNodeArg,
|
||||||
|
in DOMString prevValueArg,
|
||||||
|
in DOMString newValueArg,
|
||||||
|
in DOMString attrNameArg,
|
||||||
|
in unsigned short attrChangeArg);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _EVENTS_IDL_
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 idl -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='events.html'>previous</a> <a
|
||||||
|
accesskey='n' href='java-binding.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
150
java/external/xdocs/dom/events/idl/events.idl
vendored
Normal file
150
java/external/xdocs/dom/events/idl/events.idl
vendored
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2000 World Wide Web Consortium,
|
||||||
|
* (Massachusetts Institute of Technology, Institut National de
|
||||||
|
* Recherche en Informatique et en Automatique, Keio University). All
|
||||||
|
* Rights Reserved. This program is distributed under the W3C's Software
|
||||||
|
* Intellectual Property License. This program is distributed in the
|
||||||
|
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE.
|
||||||
|
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.idl
|
||||||
|
|
||||||
|
#ifndef _EVENTS_IDL_
|
||||||
|
#define _EVENTS_IDL_
|
||||||
|
|
||||||
|
#include "dom.idl"
|
||||||
|
#include "views.idl"
|
||||||
|
|
||||||
|
#pragma prefix "dom.w3c.org"
|
||||||
|
module events
|
||||||
|
{
|
||||||
|
|
||||||
|
typedef dom::DOMString DOMString;
|
||||||
|
typedef dom::DOMTimeStamp DOMTimeStamp;
|
||||||
|
typedef dom::Node Node;
|
||||||
|
|
||||||
|
interface EventListener;
|
||||||
|
interface Event;
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
exception EventException {
|
||||||
|
unsigned short code;
|
||||||
|
};
|
||||||
|
// EventExceptionCode
|
||||||
|
const unsigned short UNSPECIFIED_EVENT_TYPE_ERR = 0;
|
||||||
|
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface EventTarget {
|
||||||
|
void addEventListener(in DOMString type,
|
||||||
|
in EventListener listener,
|
||||||
|
in boolean useCapture);
|
||||||
|
void removeEventListener(in DOMString type,
|
||||||
|
in EventListener listener,
|
||||||
|
in boolean useCapture);
|
||||||
|
boolean dispatchEvent(in Event evt)
|
||||||
|
raises(EventException);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface EventListener {
|
||||||
|
void handleEvent(in Event evt);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface Event {
|
||||||
|
|
||||||
|
// PhaseType
|
||||||
|
const unsigned short CAPTURING_PHASE = 1;
|
||||||
|
const unsigned short AT_TARGET = 2;
|
||||||
|
const unsigned short BUBBLING_PHASE = 3;
|
||||||
|
|
||||||
|
readonly attribute DOMString type;
|
||||||
|
readonly attribute EventTarget target;
|
||||||
|
readonly attribute EventTarget currentTarget;
|
||||||
|
readonly attribute unsigned short eventPhase;
|
||||||
|
readonly attribute boolean bubbles;
|
||||||
|
readonly attribute boolean cancelable;
|
||||||
|
readonly attribute DOMTimeStamp timeStamp;
|
||||||
|
void stopPropagation();
|
||||||
|
void preventDefault();
|
||||||
|
void initEvent(in DOMString eventTypeArg,
|
||||||
|
in boolean canBubbleArg,
|
||||||
|
in boolean cancelableArg);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface DocumentEvent {
|
||||||
|
Event createEvent(in DOMString eventType)
|
||||||
|
raises(dom::DOMException);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface UIEvent : Event {
|
||||||
|
readonly attribute views::AbstractView view;
|
||||||
|
readonly attribute long detail;
|
||||||
|
void initUIEvent(in DOMString typeArg,
|
||||||
|
in boolean canBubbleArg,
|
||||||
|
in boolean cancelableArg,
|
||||||
|
in views::AbstractView viewArg,
|
||||||
|
in long detailArg);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface MouseEvent : UIEvent {
|
||||||
|
readonly attribute long screenX;
|
||||||
|
readonly attribute long screenY;
|
||||||
|
readonly attribute long clientX;
|
||||||
|
readonly attribute long clientY;
|
||||||
|
readonly attribute boolean ctrlKey;
|
||||||
|
readonly attribute boolean shiftKey;
|
||||||
|
readonly attribute boolean altKey;
|
||||||
|
readonly attribute boolean metaKey;
|
||||||
|
readonly attribute unsigned short button;
|
||||||
|
readonly attribute EventTarget relatedTarget;
|
||||||
|
void initMouseEvent(in DOMString typeArg,
|
||||||
|
in boolean canBubbleArg,
|
||||||
|
in boolean cancelableArg,
|
||||||
|
in views::AbstractView viewArg,
|
||||||
|
in long detailArg,
|
||||||
|
in long screenXArg,
|
||||||
|
in long screenYArg,
|
||||||
|
in long clientXArg,
|
||||||
|
in long clientYArg,
|
||||||
|
in boolean ctrlKeyArg,
|
||||||
|
in boolean altKeyArg,
|
||||||
|
in boolean shiftKeyArg,
|
||||||
|
in boolean metaKeyArg,
|
||||||
|
in unsigned short buttonArg,
|
||||||
|
in EventTarget relatedTargetArg);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Introduced in DOM Level 2:
|
||||||
|
interface MutationEvent : Event {
|
||||||
|
|
||||||
|
// attrChangeType
|
||||||
|
const unsigned short MODIFICATION = 1;
|
||||||
|
const unsigned short ADDITION = 2;
|
||||||
|
const unsigned short REMOVAL = 3;
|
||||||
|
|
||||||
|
readonly attribute Node relatedNode;
|
||||||
|
readonly attribute DOMString prevValue;
|
||||||
|
readonly attribute DOMString newValue;
|
||||||
|
readonly attribute DOMString attrName;
|
||||||
|
readonly attribute unsigned short attrChange;
|
||||||
|
void initMutationEvent(in DOMString typeArg,
|
||||||
|
in boolean canBubbleArg,
|
||||||
|
in boolean cancelableArg,
|
||||||
|
in Node relatedNodeArg,
|
||||||
|
in DOMString prevValueArg,
|
||||||
|
in DOMString newValueArg,
|
||||||
|
in DOMString attrNameArg,
|
||||||
|
in unsigned short attrChangeArg);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _EVENTS_IDL_
|
||||||
|
|
||||||
BIN
java/external/xdocs/dom/events/images/REC.gif
vendored
Normal file
BIN
java/external/xdocs/dom/events/images/REC.gif
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 903 B |
BIN
java/external/xdocs/dom/events/images/w3c_home.gif
vendored
Normal file
BIN
java/external/xdocs/dom/events/images/w3c_home.gif
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 988 B |
278
java/external/xdocs/dom/events/java-binding.html
vendored
Normal file
278
java/external/xdocs/dom/events/java-binding.html
vendored
Normal file
@ -0,0 +1,278 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:44:21 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Java Language Binding</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='ecma-script-binding.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='idl-definitions.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='idl-definitions.html'>previous</a> <a accesskey='n'
|
||||||
|
href='ecma-script-binding.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="java-binding" name='java-binding'></a>
|
||||||
|
|
||||||
|
<h1 id='java-binding-h1' class='adiv1'>Appendix B: Java Language
|
||||||
|
Binding</h1>
|
||||||
|
|
||||||
|
<p>This appendix contains the complete Java [<a class='noxref'
|
||||||
|
href='references.html#Java'>Java</a>] bindings for the Level 2
|
||||||
|
Document Object Model Events.</p>
|
||||||
|
|
||||||
|
<p>The Java files are also available as <a
|
||||||
|
href='java-binding.zip'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/java-binding.zip</a></p>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.events.EventException'>
|
||||||
|
org/w3c/dom/events/EventException.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
public class EventException extends RuntimeException {
|
||||||
|
public EventException(short code, String message) {
|
||||||
|
super(message);
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
public short code;
|
||||||
|
// EventExceptionCode
|
||||||
|
public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.events.EventTarget'>
|
||||||
|
org/w3c/dom/events/EventTarget.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
public interface EventTarget {
|
||||||
|
public void addEventListener(String type,
|
||||||
|
EventListener listener,
|
||||||
|
boolean useCapture);
|
||||||
|
|
||||||
|
public void removeEventListener(String type,
|
||||||
|
EventListener listener,
|
||||||
|
boolean useCapture);
|
||||||
|
|
||||||
|
public boolean dispatchEvent(Event evt)
|
||||||
|
throws EventException;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.events.EventListener'>
|
||||||
|
org/w3c/dom/events/EventListener.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
public interface EventListener {
|
||||||
|
public void handleEvent(Event evt);
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.events.Event'>
|
||||||
|
org/w3c/dom/events/Event.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
public interface Event {
|
||||||
|
// PhaseType
|
||||||
|
public static final short CAPTURING_PHASE = 1;
|
||||||
|
public static final short AT_TARGET = 2;
|
||||||
|
public static final short BUBBLING_PHASE = 3;
|
||||||
|
|
||||||
|
public String getType();
|
||||||
|
|
||||||
|
public EventTarget getTarget();
|
||||||
|
|
||||||
|
public EventTarget getCurrentTarget();
|
||||||
|
|
||||||
|
public short getEventPhase();
|
||||||
|
|
||||||
|
public boolean getBubbles();
|
||||||
|
|
||||||
|
public boolean getCancelable();
|
||||||
|
|
||||||
|
public long getTimeStamp();
|
||||||
|
|
||||||
|
public void stopPropagation();
|
||||||
|
|
||||||
|
public void preventDefault();
|
||||||
|
|
||||||
|
public void initEvent(String eventTypeArg,
|
||||||
|
boolean canBubbleArg,
|
||||||
|
boolean cancelableArg);
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.events.DocumentEvent'>
|
||||||
|
org/w3c/dom/events/DocumentEvent.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
import org.w3c.dom.DOMException;
|
||||||
|
|
||||||
|
public interface DocumentEvent {
|
||||||
|
public Event createEvent(String eventType)
|
||||||
|
throws DOMException;
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.events.UIEvent'>
|
||||||
|
org/w3c/dom/events/UIEvent.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
import org.w3c.dom.views.AbstractView;
|
||||||
|
|
||||||
|
public interface UIEvent extends Event {
|
||||||
|
public AbstractView getView();
|
||||||
|
|
||||||
|
public int getDetail();
|
||||||
|
|
||||||
|
public void initUIEvent(String typeArg,
|
||||||
|
boolean canBubbleArg,
|
||||||
|
boolean cancelableArg,
|
||||||
|
AbstractView viewArg,
|
||||||
|
int detailArg);
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.events.MouseEvent'>
|
||||||
|
org/w3c/dom/events/MouseEvent.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
import org.w3c.dom.views.AbstractView;
|
||||||
|
|
||||||
|
public interface MouseEvent extends UIEvent {
|
||||||
|
public int getScreenX();
|
||||||
|
|
||||||
|
public int getScreenY();
|
||||||
|
|
||||||
|
public int getClientX();
|
||||||
|
|
||||||
|
public int getClientY();
|
||||||
|
|
||||||
|
public boolean getCtrlKey();
|
||||||
|
|
||||||
|
public boolean getShiftKey();
|
||||||
|
|
||||||
|
public boolean getAltKey();
|
||||||
|
|
||||||
|
public boolean getMetaKey();
|
||||||
|
|
||||||
|
public short getButton();
|
||||||
|
|
||||||
|
public EventTarget getRelatedTarget();
|
||||||
|
|
||||||
|
public void initMouseEvent(String typeArg,
|
||||||
|
boolean canBubbleArg,
|
||||||
|
boolean cancelableArg,
|
||||||
|
AbstractView viewArg,
|
||||||
|
int detailArg,
|
||||||
|
int screenXArg,
|
||||||
|
int screenYArg,
|
||||||
|
int clientXArg,
|
||||||
|
int clientYArg,
|
||||||
|
boolean ctrlKeyArg,
|
||||||
|
boolean altKeyArg,
|
||||||
|
boolean shiftKeyArg,
|
||||||
|
boolean metaKeyArg,
|
||||||
|
short buttonArg,
|
||||||
|
EventTarget relatedTargetArg);
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 id='org.w3c.dom.events.MutationEvent'>
|
||||||
|
org/w3c/dom/events/MutationEvent.java:</h3>
|
||||||
|
|
||||||
|
<div class='java-code'>
|
||||||
|
<pre>
|
||||||
|
package org.w3c.dom.events;
|
||||||
|
|
||||||
|
import org.w3c.dom.Node;
|
||||||
|
|
||||||
|
public interface MutationEvent extends Event {
|
||||||
|
// attrChangeType
|
||||||
|
public static final short MODIFICATION = 1;
|
||||||
|
public static final short ADDITION = 2;
|
||||||
|
public static final short REMOVAL = 3;
|
||||||
|
|
||||||
|
public Node getRelatedNode();
|
||||||
|
|
||||||
|
public String getPrevValue();
|
||||||
|
|
||||||
|
public String getNewValue();
|
||||||
|
|
||||||
|
public String getAttrName();
|
||||||
|
|
||||||
|
public short getAttrChange();
|
||||||
|
|
||||||
|
public void initMutationEvent(String typeArg,
|
||||||
|
boolean canBubbleArg,
|
||||||
|
boolean cancelableArg,
|
||||||
|
Node relatedNodeArg,
|
||||||
|
String prevValueArg,
|
||||||
|
String newValueArg,
|
||||||
|
String attrNameArg,
|
||||||
|
short attrChangeArg);
|
||||||
|
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div1 java-binding -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='idl-definitions.html'>previous</a> <a
|
||||||
|
accesskey='n' href='ecma-script-binding.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
105
java/external/xdocs/dom/events/references.html
vendored
Normal file
105
java/external/xdocs/dom/events/references.html
vendored
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<!--
|
||||||
|
Generated: Thu Nov 09 17:44:27 EST 2000 jfouffa.w3.org
|
||||||
|
-->
|
||||||
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>References</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||||
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||||
|
<link rel='next' href='def-index.html' />
|
||||||
|
<link rel='contents' href='Overview.html#contents' />
|
||||||
|
<link rel='index' href='def-index.html' />
|
||||||
|
<link rel='previous' href='glossary.html' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='navbar' align='center'><a accesskey='p'
|
||||||
|
href='glossary.html'>previous</a> <a accesskey='n'
|
||||||
|
href='def-index.html'>next</a> <a accesskey='c'
|
||||||
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||||
|
href='def-index.html'>index</a>
|
||||||
|
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='noprint' style='text-align: right'>
|
||||||
|
<p style='font-family: monospace;font-size:small'>13 November,
|
||||||
|
2000</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='div1'><a id="References" name='References'></a>
|
||||||
|
|
||||||
|
<h1 id='role-references' class='references'>References</h1>
|
||||||
|
|
||||||
|
<p>For the latest version of any W3C specification please consult
|
||||||
|
the list of <a href='http://www.w3.org/TR'>W3C Technical
|
||||||
|
Reports</a> available at http://www.w3.org/TR.</p>
|
||||||
|
|
||||||
|
<div class='div2'><a id="References-Normative"
|
||||||
|
name='References-Normative'></a>
|
||||||
|
|
||||||
|
<h2 id='References-Normative-h2' class='adiv2'>F.1: Normative
|
||||||
|
references</h2>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt><b><a id="DOMCore" name='DOMCore'>DOM Level 2 Core</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document
|
||||||
|
Object Model Level 2 Core Specification</a>, November 2000.
|
||||||
|
Available at
|
||||||
|
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="ECMAScript" name='ECMAScript'>ECMAScript</a></b></dt>
|
||||||
|
|
||||||
|
<dd>ECMA (European Computer Manufacturers Association) <a
|
||||||
|
href='http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM'>ECMAScript
|
||||||
|
Language Specification</a>. Available at
|
||||||
|
http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="Java" name='Java'>Java</a></b></dt>
|
||||||
|
|
||||||
|
<dd>Sun Microsystems Inc. <a
|
||||||
|
href='http://java.sun.com/docs/books/jls'>The Java Language
|
||||||
|
Specification</a>, James Gosling, Bill Joy, and Guy Steele,
|
||||||
|
September 1996. Available at
|
||||||
|
http://java.sun.com/docs/books/jls</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="OMGIDL" name='OMGIDL'>OMGIDL</a></b></dt>
|
||||||
|
|
||||||
|
<dd>OMG (<a href='http://www.omg.org/'>Object Management Group</a>)
|
||||||
|
IDL (Interface Definition Language) defined in The Common Object
|
||||||
|
Request Broker: Architecture and Specification, version 2.3.1,
|
||||||
|
October 1999. Available from http://www.omg.org/</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="DOMViews" name='DOMViews'>DOM Level 2
|
||||||
|
Views</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113'>Document
|
||||||
|
Object Model Level 2 Views Specification</a>, November 2000.
|
||||||
|
Available at
|
||||||
|
http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113</dd>
|
||||||
|
|
||||||
|
<dt><b><a id="XML" name='XML'>XML</a></b></dt>
|
||||||
|
|
||||||
|
<dd>W3C (World Wide Web Consortium) <a
|
||||||
|
href='http://www.w3.org/TR/1998/REC-xml-19980210'>Extensible Markup
|
||||||
|
Language (XML) 1.0</a>, February 1998. Available at
|
||||||
|
http://www.w3.org/TR/1998/REC-xml-19980210</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- div2 References-Normative --></div>
|
||||||
|
|
||||||
|
<!-- div1 References -->
|
||||||
|
<div class='navbar' align='center'>
|
||||||
|
<hr title='Navigation area separator' />
|
||||||
|
<a accesskey='p' href='glossary.html'>previous</a> <a
|
||||||
|
accesskey='n' href='def-index.html'>next</a> <a
|
||||||
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||||
|
accesskey='i' href='def-index.html'>index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
75
java/external/xdocs/dom/events/spec.css
vendored
Normal file
75
java/external/xdocs/dom/events/spec.css
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
H4 {
|
||||||
|
text-align: left;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #0050B2;
|
||||||
|
}
|
||||||
|
.idl-code {
|
||||||
|
font-family: monospace;
|
||||||
|
border: 1px solid black;
|
||||||
|
white-space: pre;
|
||||||
|
color: black;
|
||||||
|
background-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
.java-code {
|
||||||
|
font-family: monospace;
|
||||||
|
border: 1px solid black;
|
||||||
|
white-space: pre;
|
||||||
|
color: black;
|
||||||
|
background-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.code-block {
|
||||||
|
font-family: monospace;
|
||||||
|
border: 1px solid black;
|
||||||
|
white-space: pre;
|
||||||
|
color: black;
|
||||||
|
background-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.ecma-block {
|
||||||
|
border: 1px solid black;
|
||||||
|
color: black;
|
||||||
|
background-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.interface-name {
|
||||||
|
font-weight: bold
|
||||||
|
}
|
||||||
|
|
||||||
|
.attribute-name {
|
||||||
|
color: black;
|
||||||
|
background-color: #FFFFD2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.constant-name {
|
||||||
|
color: black;
|
||||||
|
background-color: #DDFFD2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.method-name {
|
||||||
|
color: black;
|
||||||
|
background-color: #D9E6F8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.parameter-name {
|
||||||
|
color: black;
|
||||||
|
background-color: #FEE6F8;
|
||||||
|
}
|
||||||
|
|
||||||
|
UL.toc, OL.toc {list-style: none}
|
||||||
|
DIV.toc UL UL, DIV.toc OL OL {margin-left: 0}
|
||||||
|
DIV.toc UL UL UL, DIV.toc OL OL OL {margin-left: 1em}
|
||||||
|
DIV.toc UL UL UL UL, DIV.toc OL OL OL OL {margin-left: 0}
|
||||||
|
LI.tocline1 {font-weight: bold}
|
||||||
|
LI.tocline2 {font-weight: normal}
|
||||||
|
LI.tocline4 {font-style: italic}
|
||||||
|
|
||||||
|
code { font-family: monospace }
|
||||||
|
|
||||||
|
div.paramtable { margin-left: 1em }
|
||||||
|
div.returntable { margin-left: 1em }
|
||||||
|
div.exceptiontable { margin-left: 1em }
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user