/*******************************************************************************
 * Copyright 2014, 2017 gwt-ol3
 *
 * 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 ol.format;

import jsinterop.annotations.JsType;
import ol.proj.Projection;
import ol.Feature;
import ol.Options;

import elemental2.dom.Node;

import javax.annotation.Nullable;

/**
 * Feature format for reading and writing data in the WFS format. By default, supports
 * WFS version 1.1.0. You can pass a GML format as option if you want to read a WFS
 * that contains GML2 (WFS 1.0.0). Also see ol.format.GMLBase which is used by this format.
 *
 * @author Tino Desjardins
 *
 * @see https://openlayers.org/en/latest/apidoc/ol.format.WFS.html
 */
@JsType(isNative = true, name = "WFS")
public class Wfs extends XmlFeature {

	public Wfs() {}
    
    public Wfs(Options wfsFormatOptions) {}


	/**
	 * Read all features from a WFS FeatureCollection.
	 * 
	 * @param source Document | Node | Object | string
	 * @param readOptions Read options.
	 * @return [] {@link Feature}
	 */
	public native Feature[] readFeatures(java.lang.Object source, @Nullable Options readOptions);

	/**
	 * Read the projection from a WFS source.
	 * 
	 * @param source Document | Node | Object | string
	 * @return {@link Geometry}
	 */
	public native Projection readProjection(java.lang.Object source);
	
	/**
	 * Encode format as WFS GetFeature and return the Node.
	 * 
	 * @param writeOptions write options
	 * @return root node
	 */
	public native Node writeGetFeature(WfsWriteFeatureOptions writeOptions);
	
	/**
	 * Encode format as WFS Transaction and return the Node.
	 * 
	 * @param inserts The features to insert.
	 * @param updates The features to update.
	 * @param deletes The features to delete.
	 * @param writeOptions write options
	 * @return root node
	 */
	public native Node writeTransaction(Feature[] inserts, Feature[] updates, Feature[] deletes, Options writeOptions);
    
}

@@ -100,9 +100,9 @@
  201
-7
+8
  gwt
@@ -1381,17 +1381,20 @@
 ture %7B%0A%0A
-%09
+    
 public W
@@ -1401,20 +1401,16 @@
 fs() %7B%7D%0A
-    
 %0A    pub
@@ -1448,22 +1448,28 @@
 s) %7B%7D%0A%0A%0A
-%09/**%0A%09
+    /**%0A    
  * Read 
@@ -1511,22 +1511,27 @@
 ection.%0A
-%09 * %0A%09
+     *%0A    
  * @para
@@ -1569,25 +1569,28 @@
 ct %7C string%0A
-%09
+    
  * @param re
@@ -1613,17 +1613,20 @@
 ptions.%0A
-%09
+    
  * @retu
@@ -1647,22 +1647,28 @@
 eature%7D%0A
-%09 */%0A%09
+     */%0A    
 public n
@@ -1754,22 +1754,28 @@
 ions);%0A%0A
-%09/**%0A%09
+    /**%0A    
  * Read 
@@ -1808,22 +1808,27 @@
 source.%0A
-%09 * %0A%09
+     *%0A    
  * @para
@@ -1870,17 +1870,20 @@
  string%0A
-%09
+    
  * @retu
@@ -1902,22 +1902,28 @@
 ometry%7D%0A
-%09 */%0A%09
+     */%0A    
 public n
@@ -1980,24 +1980,29 @@
 ource);%0A
-%09%0A%09/**%0A%09
+%0A    /**%0A    
  * Encod
@@ -2041,38 +2041,43 @@
 eturn the Node.%0A
-%09 * %0A%09
+     *%0A    
  * @param writeO
@@ -2089,33 +2089,36 @@
 s write options%0A
-%09
+    
  * @return root 
@@ -2114,38 +2114,44 @@
 eturn root node%0A
-%09 */%0A%09
+     */%0A    
 public native No
@@ -2211,16 +2211,21 @@
 s);%0A
-%09%0A%09/**%0A%09
+%0A    /**%0A    
  * E
@@ -2281,14 +2281,19 @@
 de.%0A
-%09 * %0A%09
+     *%0A    
  * @
@@ -2330,17 +2330,20 @@
 insert.%0A
-%09
+    
  * @para
@@ -2372,25 +2372,28 @@
  to update.%0A
-%09
+    
  * @param de
@@ -2422,17 +2422,20 @@
 delete.%0A
-%09
+    
  * @para
@@ -2463,17 +2463,20 @@
 options%0A
-%09
+    
  * @retu
@@ -2492,14 +2492,20 @@
 ode%0A
-%09 */%0A%09
+     */%0A    
 publ
@@ -2616,15 +2616,11 @@
 tions);%0A
-    
 %0A%7D%0A

Remove whitespaces