Example usage for org.w3c.dom DOMException NOT_SUPPORTED_ERR

List of usage examples for org.w3c.dom DOMException NOT_SUPPORTED_ERR

Introduction

In this page you can find the example usage for org.w3c.dom DOMException NOT_SUPPORTED_ERR.

Prototype

short NOT_SUPPORTED_ERR

To view the source code for org.w3c.dom DOMException NOT_SUPPORTED_ERR.

Click Source Link

Document

If the implementation does not support the requested type of object or operation.

Usage

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Element#setIdAttributeNode(org.w3c.dom.Attr, boolean)
 *///from  ww  w .java2  s.c  om
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "setIdAttributeNode(Attr idAttr, boolean isId) not implemented on class " + getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
 *//*  ww  w.  j a  v a  2s  .co m*/
@Override
public short compareDocumentPosition(Node other) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "compareDocumentPosition(Node other) not implemented on class " + getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#getTextContent()
 *///w w w  . ja  v a 2 s.  c  o  m
@Override
public String getTextContent() throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "getTextContent() not implemented on class " + getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#setTextContent(java.lang.String)
 *//*w  w  w .j  ava  2  s.  c om*/
@Override
public void setTextContent(String textContent) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "setTextContent(String textContent) not implemented on class " + getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
 */// ww  w . j a v a 2 s  .  c o m
@Override
public boolean isSameNode(Node other) {
    // This function is used by Saxon in some circumstances, and this partial implementation is required for proper Saxon operation.
    if (other instanceof StoredNode) {
        return (this.nodeId == ((StoredNode) other).nodeId
                && this.ownerDocument.getDocId() == ((StoredNode) other).ownerDocument.getDocId());
    }
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "isSameNode(Node other) not implemented on other class " + other.getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
 *//*from w w  w  .  j  a va2  s .  c  om*/
@Override
public String lookupPrefix(String namespaceURI) {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "lookupPrefix(String namespaceURI) not implemented on class " + getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
 *//*from  w ww  .j  a v a 2 s .  c  o  m*/
@Override
public boolean isDefaultNamespace(String namespaceURI) {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "isDefaultNamespace(String namespaceURI) not implemented on class " + getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
 *//*from w ww  .  ja  v  a2  s . c  o m*/
@Override
public String lookupNamespaceURI(String prefix) {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "lookupNamespaceURI(String prefix) not implemented on class " + getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
 */// w w w .  j  a va 2s  .  com
@Override
public boolean isEqualNode(Node arg) {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "isEqualNode(Node arg) not implemented on class " + getClass().getName());
}

From source file:org.exist.dom.ElementImpl.java

/** ? @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
 *///ww w  .  j av a  2 s  . c  o  m
@Override
public Object getFeature(String feature, String version) {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
            "getFeature(String feature, String version) not implemented on class " + getClass().getName());
}