org.w3c.dom.events.EventException#com.sun.org.apache.xerces.internal.dom.events.EventImpl源码实例Demo

下面列出了org.w3c.dom.events.EventException#com.sun.org.apache.xerces.internal.dom.events.EventImpl 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: jdk1.8-source-analysis   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码2 项目: TencentKona-8   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码3 项目: jdk8u60   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码4 项目: JDKSourceCode1.8   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码5 项目: openjdk-jdk8u   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码6 项目: openjdk-jdk8u-backup   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码7 项目: Bytecoder   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码8 项目: openjdk-jdk9   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码9 项目: hottub   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码10 项目: openjdk-8-source   文件: DocumentImpl.java
/**
 * 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);
    }
    }
 
源代码11 项目: openjdk-8   文件: DocumentImpl.java
/**
 * 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);
    }
    }