Common DOM API

Uses of Class
org.w3c.dom.DOMException

Packages that use DOMException
com.sun.java.browser.dom   
org.w3c.dom Provides the interfaces for the Document Object Model (DOM) which is a component API of the Java API for XML Processing
org.w3c.dom.css   
org.w3c.dom.events   
org.w3c.dom.html   
org.w3c.dom.ls   
org.w3c.dom.ranges Document Object Model Level 2 Traversal and Range is a platform and language-neutral interfaces that allow programs and scripts to dynamically traverse and identify a range of content in a document. 
org.w3c.dom.stylesheets   
org.w3c.dom.traversal   
 

Uses of DOMException in com.sun.java.browser.dom
 

Methods in com.sun.java.browser.dom that throw DOMException
 Document DOMAccessor.getDocument(Object obj)
          Returns the Document object of the DOM.
 

Uses of DOMException in org.w3c.dom
 

Methods in org.w3c.dom that throw DOMException
 Node Document.adoptNode(Node source)
          Attempts to adopt a node from another document to this document.
 Node Node.appendChild(Node newChild)
          Adds the node newChild to the end of the list of children of this node.
 void CharacterData.appendData(String arg)
          Append the string to the end of the character data of the node.
 short Node.compareDocumentPosition(Node other)
          Compares the reference node, i.e.
 Attr Document.createAttribute(String name)
          Creates an Attr of the given name.
 Attr Document.createAttributeNS(String namespaceURI, String qualifiedName)
          Creates an attribute of the given qualified name and namespace URI.
 CDATASection Document.createCDATASection(String data)
          Creates a CDATASection node whose value is the specified string.
 Document DOMImplementation.createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
          Creates a DOM Document object of the specified type with its document element.
 DocumentType DOMImplementation.createDocumentType(String qualifiedName, String publicId, String systemId)
          Creates an empty DocumentType node.
 Element Document.createElement(String tagName)
          Creates an element of the type specified.
 Element Document.createElementNS(String namespaceURI, String qualifiedName)
          Creates an element of the given qualified name and namespace URI.
 EntityReference Document.createEntityReference(String name)
          Creates an EntityReference object.
 ProcessingInstruction Document.createProcessingInstruction(String target, String data)
          Creates a ProcessingInstruction node given the specified name and data strings.
 void CharacterData.deleteData(int offset, int count)
          Remove a range of 16-bit units from the node.
 Attr Element.getAttributeNodeNS(String namespaceURI, String localName)
          Retrieves an Attr node by local name and namespace URI.
 String Element.getAttributeNS(String namespaceURI, String localName)
          Retrieves an attribute value by local name and namespace URI.
 String CharacterData.getData()
          The character data of the node that implements this interface.
 NodeList Element.getElementsByTagNameNS(String namespaceURI, String localName)
          Returns a NodeList of all the descendant Elements with a given local name and namespace URI in document order.
 Node NamedNodeMap.getNamedItemNS(String namespaceURI, String localName)
          Retrieves a node specified by local name and namespace URI.
 String Node.getNodeValue()
          The value of this node, depending on its type; see the table above.
 Object DOMConfiguration.getParameter(String name)
          Return the value of a parameter if known.
 String Node.getTextContent()
          This attribute returns the text content of this node and its descendants.
 boolean Element.hasAttributeNS(String namespaceURI, String localName)
          Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise.
 Node Document.importNode(Node importedNode, boolean deep)
          Imports a node from another document to this document, without altering or removing the source node from the original document; this method creates a new copy of the source node.
 Node Node.insertBefore(Node newChild, Node refChild)
          Inserts the node newChild before the existing child node refChild.
 void CharacterData.insertData(int offset, String arg)
          Insert a string at the specified 16-bit unit offset.
 void Element.removeAttribute(String name)
          Removes an attribute by name.
 Attr Element.removeAttributeNode(Attr oldAttr)
          Removes the specified attribute node.
 void Element.removeAttributeNS(String namespaceURI, String localName)
          Removes an attribute by local name and namespace URI.
 Node Node.removeChild(Node oldChild)
          Removes the child node indicated by oldChild from the list of children, and returns it.
 Node NamedNodeMap.removeNamedItem(String name)
          Removes a node specified by name.
 Node NamedNodeMap.removeNamedItemNS(String namespaceURI, String localName)
          Removes a node specified by local name and namespace URI.
 Node Document.renameNode(Node n, String namespaceURI, String qualifiedName)
          Rename an existing node of type ELEMENT_NODE or ATTRIBUTE_NODE.
 Node Node.replaceChild(Node newChild, Node oldChild)
          Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
 void CharacterData.replaceData(int offset, int count, String arg)
          Replace the characters starting at the specified 16-bit unit offset with the specified string.
 Text Text.replaceWholeText(String content)
          Replaces the text of the current node and all logically-adjacent text nodes with the specified text.
 void Element.setAttribute(String name, String value)
          Adds a new attribute.
 Attr Element.setAttributeNode(Attr newAttr)
          Adds a new attribute node.
 Attr Element.setAttributeNodeNS(Attr newAttr)
          Adds a new attribute.
 void Element.setAttributeNS(String namespaceURI, String qualifiedName, String value)
          Adds a new attribute.
 void ProcessingInstruction.setData(String data)
          The content of this processing instruction.
 void CharacterData.setData(String data)
          The character data of the node that implements this interface.
 void Element.setIdAttribute(String name, boolean isId)
          If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
 void Element.setIdAttributeNode(Attr idAttr, boolean isId)
          If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
 void Element.setIdAttributeNS(String namespaceURI, String localName, boolean isId)
          If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
 Node NamedNodeMap.setNamedItem(Node arg)
          Adds a node using its nodeName attribute.
 Node NamedNodeMap.setNamedItemNS(Node arg)
          Adds a node using its namespaceURI and localName.
 void Node.setNodeValue(String nodeValue)
          The value of this node, depending on its type; see the table above.
 void DOMConfiguration.setParameter(String name, Object value)
          Set the value of a parameter.
 void Node.setPrefix(String prefix)
          The namespace prefix of this node, or null if it is unspecified.
 void Node.setTextContent(String textContent)
          This attribute returns the text content of this node and its descendants.
 void Attr.setValue(String value)
          On retrieval, the value of the attribute is returned as a string.
 void Document.setXmlStandalone(boolean xmlStandalone)
          An attribute specifying, as part of the XML declaration, whether this document is standalone.
 void Document.setXmlVersion(String xmlVersion)
          An attribute specifying, as part of the XML declaration, the version number of this document.
 Text Text.splitText(int offset)
          Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings.
 String CharacterData.substringData(int offset, int count)
          Extracts a range of data from the node.
 

Uses of DOMException in org.w3c.dom.css
 

Methods in org.w3c.dom.css that throw DOMException
 CSSStyleSheet DOMImplementationCSS.createCSSStyleSheet(String title, String media)
          Creates a new CSSStyleSheet.
 void CSSMediaRule.deleteRule(int index)
          Used to delete a rule from the media block.
 void CSSStyleSheet.deleteRule(int index)
          Used to delete a rule from the style sheet.
 Counter CSSPrimitiveValue.getCounterValue()
          This method is used to get the Counter value.
 float CSSPrimitiveValue.getFloatValue(short unitType)
          This method is used to get a float value in a specified unit.
 Rect CSSPrimitiveValue.getRectValue()
          This method is used to get the Rect value.
 RGBColor CSSPrimitiveValue.getRGBColorValue()
          This method is used to get the RGB color.
 String CSSPrimitiveValue.getStringValue()
          This method is used to get the string value.
 int CSSMediaRule.insertRule(String rule, int index)
          Used to insert a new rule into the media block.
 int CSSStyleSheet.insertRule(String rule, int index)
          Used to insert a new rule into the style sheet.
 String CSSStyleDeclaration.removeProperty(String propertyName)
          Used to remove a CSS property if it has been explicitly set within this declaration block.
 void CSS2Properties.setAzimuth(String azimuth)
           
 void CSS2Properties.setBackground(String background)
           
 void CSS2Properties.setBackgroundAttachment(String backgroundAttachment)
           
 void CSS2Properties.setBackgroundColor(String backgroundColor)
           
 void CSS2Properties.setBackgroundImage(String backgroundImage)
           
 void CSS2Properties.setBackgroundPosition(String backgroundPosition)
           
 void CSS2Properties.setBackgroundRepeat(String backgroundRepeat)
           
 void CSS2Properties.setBorder(String border)
           
 void CSS2Properties.setBorderBottom(String borderBottom)
           
 void CSS2Properties.setBorderBottomColor(String borderBottomColor)
           
 void CSS2Properties.setBorderBottomStyle(String borderBottomStyle)
           
 void CSS2Properties.setBorderBottomWidth(String borderBottomWidth)
           
 void CSS2Properties.setBorderCollapse(String borderCollapse)
           
 void CSS2Properties.setBorderColor(String borderColor)
           
 void CSS2Properties.setBorderLeft(String borderLeft)
           
 void CSS2Properties.setBorderLeftColor(String borderLeftColor)
           
 void CSS2Properties.setBorderLeftStyle(String borderLeftStyle)
           
 void CSS2Properties.setBorderLeftWidth(String borderLeftWidth)
           
 void CSS2Properties.setBorderRight(String borderRight)
           
 void CSS2Properties.setBorderRightColor(String borderRightColor)
           
 void CSS2Properties.setBorderRightStyle(String borderRightStyle)
           
 void CSS2Properties.setBorderRightWidth(String borderRightWidth)
           
 void CSS2Properties.setBorderSpacing(String borderSpacing)
           
 void CSS2Properties.setBorderStyle(String borderStyle)
           
 void CSS2Properties.setBorderTop(String borderTop)
           
 void CSS2Properties.setBorderTopColor(String borderTopColor)
           
 void CSS2Properties.setBorderTopStyle(String borderTopStyle)
           
 void CSS2Properties.setBorderTopWidth(String borderTopWidth)
           
 void CSS2Properties.setBorderWidth(String borderWidth)
           
 void CSS2Properties.setBottom(String bottom)
           
 void CSS2Properties.setCaptionSide(String captionSide)
           
 void CSS2Properties.setClear(String clear)
           
 void CSS2Properties.setClip(String clip)
           
 void CSS2Properties.setColor(String color)
           
 void CSS2Properties.setContent(String content)
           
 void CSS2Properties.setCounterIncrement(String counterIncrement)
           
 void CSS2Properties.setCounterReset(String counterReset)
           
 void CSS2Properties.setCssFloat(String cssFloat)
           
 void CSSValue.setCssText(String cssText)
           
 void CSSStyleDeclaration.setCssText(String cssText)
           
 void CSSRule.setCssText(String cssText)
           
 void CSS2Properties.setCue(String cue)
           
 void CSS2Properties.setCueAfter(String cueAfter)
           
 void CSS2Properties.setCueBefore(String cueBefore)
           
 void CSS2Properties.setCursor(String cursor)
           
 void CSS2Properties.setDirection(String direction)
           
 void CSS2Properties.setDisplay(String display)
           
 void CSS2Properties.setElevation(String elevation)
           
 void CSS2Properties.setEmptyCells(String emptyCells)
           
 void CSSCharsetRule.setEncoding(String encoding)
           
 void CSSPrimitiveValue.setFloatValue(short unitType, float floatValue)
          A method to set the float value with a specified unit.
 void CSS2Properties.setFont(String font)
           
 void CSS2Properties.setFontFamily(String fontFamily)
           
 void CSS2Properties.setFontSize(String fontSize)
           
 void CSS2Properties.setFontSizeAdjust(String fontSizeAdjust)
           
 void CSS2Properties.setFontStretch(String fontStretch)
           
 void CSS2Properties.setFontStyle(String fontStyle)
           
 void CSS2Properties.setFontVariant(String fontVariant)
           
 void CSS2Properties.setFontWeight(String fontWeight)
           
 void CSS2Properties.setHeight(String height)
           
 void CSS2Properties.setLeft(String left)
           
 void CSS2Properties.setLetterSpacing(String letterSpacing)
           
 void CSS2Properties.setLineHeight(String lineHeight)
           
 void CSS2Properties.setListStyle(String listStyle)
           
 void CSS2Properties.setListStyleImage(String listStyleImage)
           
 void CSS2Properties.setListStylePosition(String listStylePosition)
           
 void CSS2Properties.setListStyleType(String listStyleType)
           
 void CSS2Properties.setMargin(String margin)
           
 void CSS2Properties.setMarginBottom(String marginBottom)
           
 void CSS2Properties.setMarginLeft(String marginLeft)
           
 void CSS2Properties.setMarginRight(String marginRight)
           
 void CSS2Properties.setMarginTop(String marginTop)
           
 void CSS2Properties.setMarkerOffset(String markerOffset)
           
 void CSS2Properties.setMarks(String marks)
           
 void CSS2Properties.setMaxHeight(String maxHeight)
           
 void CSS2Properties.setMaxWidth(String maxWidth)
           
 void CSS2Properties.setMinHeight(String minHeight)
           
 void CSS2Properties.setMinWidth(String minWidth)
           
 void CSS2Properties.setOrphans(String orphans)
           
 void CSS2Properties.setOutline(String outline)
           
 void CSS2Properties.setOutlineColor(String outlineColor)
           
 void CSS2Properties.setOutlineStyle(String outlineStyle)
           
 void CSS2Properties.setOutlineWidth(String outlineWidth)
           
 void CSS2Properties.setOverflow(String overflow)
           
 void CSS2Properties.setPadding(String padding)
           
 void CSS2Properties.setPaddingBottom(String paddingBottom)
           
 void CSS2Properties.setPaddingLeft(String paddingLeft)
           
 void CSS2Properties.setPaddingRight(String paddingRight)
           
 void CSS2Properties.setPaddingTop(String paddingTop)
           
 void CSS2Properties.setPage(String page)
           
 void CSS2Properties.setPageBreakAfter(String pageBreakAfter)
           
 void CSS2Properties.setPageBreakBefore(String pageBreakBefore)
           
 void CSS2Properties.setPageBreakInside(String pageBreakInside)
           
 void CSS2Properties.setPause(String pause)
           
 void CSS2Properties.setPauseAfter(String pauseAfter)
           
 void CSS2Properties.setPauseBefore(String pauseBefore)
           
 void CSS2Properties.setPitch(String pitch)
           
 void CSS2Properties.setPitchRange(String pitchRange)
           
 void CSS2Properties.setPlayDuring(String playDuring)
           
 void CSS2Properties.setPosition(String position)
           
 void CSSStyleDeclaration.setProperty(String propertyName, String value, String priority)
          Used to set a property value and priority within this declaration block.
 void CSS2Properties.setQuotes(String quotes)
           
 void CSS2Properties.setRichness(String richness)
           
 void CSS2Properties.setRight(String right)
           
 void CSSStyleRule.setSelectorText(String selectorText)
           
 void CSSPageRule.setSelectorText(String selectorText)
           
 void CSS2Properties.setSize(String size)
           
 void CSS2Properties.setSpeak(String speak)
           
 void CSS2Properties.setSpeakHeader(String speakHeader)
           
 void CSS2Properties.setSpeakNumeral(String speakNumeral)
           
 void CSS2Properties.setSpeakPunctuation(String speakPunctuation)
           
 void CSS2Properties.setSpeechRate(String speechRate)
           
 void CSS2Properties.setStress(String stress)
           
 void CSSPrimitiveValue.setStringValue(short stringType, String stringValue)
          A method to set the string value with the specified unit.
 void CSS2Properties.setTableLayout(String tableLayout)
           
 void CSS2Properties.setTextAlign(String textAlign)
           
 void CSS2Properties.setTextDecoration(String textDecoration)
           
 void CSS2Properties.setTextIndent(String textIndent)
           
 void CSS2Properties.setTextShadow(String textShadow)
           
 void CSS2Properties.setTextTransform(String textTransform)
           
 void CSS2Properties.setTop(String top)
           
 void CSS2Properties.setUnicodeBidi(String unicodeBidi)
           
 void CSS2Properties.setVerticalAlign(String verticalAlign)
           
 void CSS2Properties.setVisibility(String visibility)
           
 void CSS2Properties.setVoiceFamily(String voiceFamily)
           
 void CSS2Properties.setVolume(String volume)
           
 void CSS2Properties.setWhiteSpace(String whiteSpace)
           
 void CSS2Properties.setWidows(String widows)
           
 void CSS2Properties.setWidth(String width)
           
 void CSS2Properties.setWordSpacing(String wordSpacing)
           
 void CSS2Properties.setZIndex(String zIndex)
           
 

Uses of DOMException in org.w3c.dom.events
 

Methods in org.w3c.dom.events that throw DOMException
 Event DocumentEvent.createEvent(String eventType)
           
 

Uses of DOMException in org.w3c.dom.html
 

Methods in org.w3c.dom.html that throw DOMException
 void HTMLSelectElement.add(HTMLElement element, HTMLElement before)
          Add a new element to the collection of OPTION elements for this SELECT .
 void HTMLTableRowElement.deleteCell(int index)
          Delete a cell from the current row.
 void HTMLTableSectionElement.deleteRow(int index)
          Delete a row from this section.
 void HTMLTableElement.deleteRow(int index)
          Delete a table row.
 HTMLElement HTMLTableRowElement.insertCell(int index)
          Insert an empty TD cell into this row.
 HTMLElement HTMLTableSectionElement.insertRow(int index)
          Insert a row into this section.
 HTMLElement HTMLTableElement.insertRow(int index)
          Insert a new empty row in the table.
 

Uses of DOMException in org.w3c.dom.ls
 

Methods in org.w3c.dom.ls that throw DOMException
 LSParser DOMImplementationLS.createLSParser(short mode, String schemaType)
          Create a new LSParser.
 Document LSParser.parse(LSInput input)
          Parse an XML document from a resource identified by a LSInput.
 Document LSParser.parseURI(String uri)
          Parse an XML document from a location identified by a URI reference [IETF RFC 2396].
 Node LSParser.parseWithContext(LSInput input, Node contextArg, short action)
          Parse an XML fragment from a resource identified by a LSInput and insert the content into an existing document at the position specified with the context and action arguments.
 String LSSerializer.writeToString(Node nodeArg)
          Serialize the specified node as described above in the general description of the LSSerializer interface.
 

Uses of DOMException in org.w3c.dom.ranges
 

Methods in org.w3c.dom.ranges that throw DOMException
 DocumentFragment Range.cloneContents()
          Duplicates the contents of a Range
 Range Range.cloneRange()
          Produces a new Range whose boundary-points are equal to the boundary-points of the Range.
 void Range.collapse(boolean toStart)
          Collapse a Range onto one of its boundary-points
 short Range.compareBoundaryPoints(short how, Range sourceRange)
          Compare the boundary-points of two Ranges in a document.
 void Range.deleteContents()
          Removes the contents of a Range from the containing document or document fragment without returning a reference to the removed content.
 void Range.detach()
          Called to indicate that the Range is no longer in use and that the implementation may relinquish any resources associated with this Range.
 DocumentFragment Range.extractContents()
          Moves the contents of a Range from the containing document or document fragment to a new DocumentFragment.
 boolean Range.getCollapsed()
          TRUE if the Range is collapsed
 Node Range.getCommonAncestorContainer()
          The deepest common ancestor container of the Range's two boundary-points.
 Node Range.getEndContainer()
          Node within which the Range ends
 int Range.getEndOffset()
          Offset within the ending node of the Range.
 Node Range.getStartContainer()
          Node within which the Range begins
 int Range.getStartOffset()
          Offset within the starting node of the Range.
 void Range.insertNode(Node newNode)
          Inserts a node into the Document or DocumentFragment at the start of the Range.
 void Range.selectNode(Node refNode)
          Select a node and its contents
 void Range.selectNodeContents(Node refNode)
          Select the contents within a node
 void Range.setEnd(Node refNode, int offset)
          Sets the attributes describing the end of a Range.
 void Range.setEndAfter(Node refNode)
          Sets the end of a Range to be after a node
 void Range.setEndBefore(Node refNode)
          Sets the end position to be before a node.
 void Range.setStart(Node refNode, int offset)
          Sets the attributes describing the start of the Range.
 void Range.setStartAfter(Node refNode)
          Sets the start position to be after a node
 void Range.setStartBefore(Node refNode)
          Sets the start position to be before a node
 void Range.surroundContents(Node newParent)
          Reparents the contents of the Range to the given node and inserts the node at the position of the start of the Range.
 String Range.toString()
          Returns the contents of a Range as a string.
 

Uses of DOMException in org.w3c.dom.stylesheets
 

Methods in org.w3c.dom.stylesheets that throw DOMException
 void MediaList.appendMedium(String newMedium)
          Adds the medium newMedium to the end of the list.
 void MediaList.deleteMedium(String oldMedium)
          Deletes the medium indicated by oldMedium from the list.
 void MediaList.setMediaText(String mediaText)
           
 

Uses of DOMException in org.w3c.dom.traversal
 

Methods in org.w3c.dom.traversal that throw DOMException
 NodeIterator DocumentTraversal.createNodeIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion)
          Create a new NodeIterator over the subtree rooted at the specified node.
 TreeWalker DocumentTraversal.createTreeWalker(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion)
          Create a new TreeWalker over the subtree rooted at the specified node.
 Node NodeIterator.nextNode()
          Returns the next node in the set and advances the position of the NodeIterator in the set.
 Node NodeIterator.previousNode()
          Returns the previous node in the set and moves the position of the NodeIterator backwards in the set.
 void TreeWalker.setCurrentNode(Node currentNode)
          The node at which the TreeWalker is currently positioned.
 


Common DOM API

Submit a bug or feature
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 2004 Sun Microsystems, Inc. 4150 Network Circle
Santa Clara, California, 95054, U.S.A. All Rights Reserved.