// Path: src/main/java/com/ojn/gexf4j/core/Gexf.java
// public interface Gexf {
// 
// 	String getVersion();
// 	
// 	boolean hasVariant();
// 	Gexf clearVariant();
// 	String getVariant();
// 	Gexf setVariant(String variant);
// 	
// 	Metadata getMetadata();
// 	
// 	Graph getGraph();
// 	
// 	boolean hasVisualization();
// 	Gexf setVisualization(boolean viz);
// }


import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
import com.ojn.gexf4j.core.Gexf;
package com.ojn.gexf4j.core.impl.writer;



public class GexfEntityWriter extends AbstractEntityWriter<Gexf> {
	private static final String ENTITY = "gexf";
	private static final String ATTRIBUTE_VERSION = "version";
	private static final String ATTRIBUTE_VARIANT = "variant";
	private static final String XMLNS_URL = "http://www.gexf.net/1.1draft";
	private static final String XMLNS_VIZ = "viz";
	private static final String XMLNS_VIZ_URL = "http://www.gexf.net/1.1draft/viz";
    
// Path: src/main/java/com/ojn/gexf4j/core/Gexf.java
// public interface Gexf {
// 
// 	String getVersion();
// 	
// 	boolean hasVariant();
// 	Gexf clearVariant();
// 	String getVariant();
// 	Gexf setVariant(String variant);
// 	
// 	Metadata getMetadata();
// 	
// 	Graph getGraph();
// 	
// 	boolean hasVisualization();
// 	Gexf setVisualization(boolean viz);
// }


// Path: src/main/java/com/ojn/gexf4j/core/impl/writer/GexfEntityWriter.java
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
import com.ojn.gexf4j.core.Gexf;

package com.ojn.gexf4j.core.impl.writer;



public class GexfEntityWriter extends AbstractEntityWriter<Gexf> {
	private static final String ENTITY = "gexf";
	private static final String ATTRIBUTE_VERSION = "version";
	private static final String ATTRIBUTE_VARIANT = "variant";
	private static final String XMLNS_URL = "http://www.gexf.net/1.1draft";
	private static final String XMLNS_VIZ = "viz";
	private static final String XMLNS_VIZ_URL = "http://www.gexf.net/1.1draft/viz";
    
	public GexfEntityWriter(XMLStreamWriter writer, Gexf entity) {