Java Code Examples for org.w3c.dom.DOMException#NOT_SUPPORTED_ERR

The following examples show how to use org.w3c.dom.DOMException#NOT_SUPPORTED_ERR . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IIOMetadataNode.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException - always.
 */
public void setIdAttribute(String name,
                           boolean isId)
                           throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
Example 2
Source File: IIOMetadataNode.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException - always.
 */
public void setIdAttributeNode(Attr idAttr,
                               boolean isId)
                               throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
Example 3
Source File: DefaultText.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Text replaceWholeText(String content) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
Example 4
Source File: DTMNodeProxy.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
@Override
public DocumentType createDocumentType(String qualifiedName,String publicId, String systemId)
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
Example 5
Source File: DTMNodeProxy.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 * @param value
 * @see org.w3c.dom.Attr
 */
@Override
public final void setValue(String value)
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
Example 6
Source File: DefaultDocument.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
Example 7
Source File: DefaultElement.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void removeAttribute(String name) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
Example 8
Source File: IIOMetadataNode.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException - always.
 */
public boolean isDefaultNamespace(String namespaceURI)
                                           throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
Example 9
Source File: DTMNodeProxy.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 *
 * @param target
 * @param data
 *
 *
 *
 * @throws DOMException
 * @see org.w3c.dom.Document
 */
@Override
public final ProcessingInstruction createProcessingInstruction(
                              String target, String data) throws DOMException
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
Example 10
Source File: DocumentImpl.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Introduced in DOM Level 2. Optional. <p>
 * Create and return Event objects.
 *
 * @param type The eventType parameter specifies the type of Event
 * interface to be created.  If the Event interface specified is supported
 * by the implementation this method will return a new Event of the
 * interface type requested. If the Event is to be dispatched via the
 * dispatchEvent method the appropriate event init method must be called
 * after creation in order to initialize the Event's values.  As an
 * example, a user wishing to synthesize some kind of Event would call
 * createEvent with the parameter "Events". The initEvent method could then
 * be called on the newly created Event to set the specific type of Event
 * to be dispatched and set its context information.
 * @return Newly created Event
 * @exception DOMException NOT_SUPPORTED_ERR: Raised if the implementation
 * does not support the type of Event interface requested
 * @since WD-DOM-Level-2-19990923
 */
public Event createEvent(String type)
    throws DOMException {
        if (type.equalsIgnoreCase("Events") || "Event".equals(type))
            return new EventImpl();
        if (type.equalsIgnoreCase("MutationEvents") ||
            "MutationEvent".equals(type))
            return new MutationEventImpl();
        else {
        String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null);
            throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg);
    }
    }
 
Example 11
Source File: DTMNodeProxy.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 *
 * @param target
 * @param data
 *
 *
 *
 * @throws DOMException
 * @see org.w3c.dom.Document
 */
@Override
public final ProcessingInstruction createProcessingInstruction(
                              String target, String data) throws DOMException
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
Example 12
Source File: IIOMetadataNode.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException - always.
 */
public String getBaseURI() throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
Example 13
Source File: IIOMetadataNode.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException - always.
 */
public String lookupNamespaceURI(String prefix) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
Example 14
Source File: DefaultDocument.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 *  The configuration used when <code>Document.normalizeDocument</code> is
 * invoked.
 * @since DOM Level 3
 */
public DOMConfiguration getDomConfig(){
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
Example 15
Source File: IIOMetadataNode.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException - always.
 */
public String lookupNamespaceURI(String prefix) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
Example 16
Source File: DTMNodeProxy.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * <p>EXPERIMENTAL! Based on the <a
 * href='http://www.w3.org/TR/2001/WD-DOM-Level-3-Core-20010605'>Document
 * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.
 * <p>
 * An attribute specifying, as part of the XML declaration, whether this
 * document is standalone.
 * @since DOM Level 3
 *
 * NEEDSDOC @param standalone
 */
public void setStandalone(boolean standalone)
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
Example 17
Source File: DTMNodeProxy.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 *
 * @param name
 *
 *
 *
 * @throws DOMException
 * @see org.w3c.dom.Document
 */
@Override
public final Attr createAttribute(String name) throws DOMException
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
Example 18
Source File: DTMNodeProxy.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 *
 * @param deep
 *
 *
 * @see org.w3c.dom.Node -- DTMNodeProxy is read-only
 */
@Override
public final Node cloneNode(boolean deep)
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
Example 19
Source File: DefaultDocument.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * An attribute specifying, as part of the XML declaration, whether this
 * document is standalone.
 * <br> This attribute represents the property [standalone] defined in .
 * @since DOM Level 3
 */
public boolean getXmlStandalone(){
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
Example 20
Source File: DTMNodeProxy.java    From j2objc with Apache License 2.0 2 votes vote down vote up
/**
 *
 * @param oldAttr
 *
 *
 *
 * @throws DOMException
 * @see org.w3c.dom.Element
 */
public final Attr removeAttributeNode(Attr oldAttr) throws DOMException
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}