com.github.xose.xml.dom.DOMImplementation.java Source code

Java tutorial

Introduction

Here is the source code for com.github.xose.xml.dom.DOMImplementation.java

Source

/**
 * Copyright 2013 Jos Martnez
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.github.xose.xml.dom;

import org.w3c.dom.Document;
import org.w3c.dom.DocumentType;

import com.google.gwt.core.client.JavaScriptObject;

final class DOMImplementation extends JavaScriptObject {

    protected DOMImplementation() {
    }

    public static final native DOMImplementation get() /*-{
                                                       return $wnd.document.implementation;
                                                       }-*/;

    public final native boolean hasFeature(String feature, String version) /*-{
                                                                           return this.hasFeature(feature, version);
                                                                           }-*/;

    public final native DocumentType createDocumentType(String qualifiedName, String publicId,
            String systemId) /*-{
                             return this.createDocumentType(qualifiedName, publicId, systemId);
                             }-*/;

    public final native Document createDocument() /*-{
                                                  return this.createDocument();
                                                  }-*/;

    public final native Document createDocument(String namespaceURI, String qualifiedName) /*-{
                                                                                           return this.createDocument(namespaceURI, qualifiedName);
                                                                                           }-*/;

    public final native Document createDocument(String namespaceURI, String qualifiedName,
            DocumentType doctype) /*-{
                                  return this.createDocument(namespaceURI, qualifiedName, doctype);
                                  }-*/;

}