Class JsonGenerator
- java.lang.Object
-
- org.eclipse.emf.ecp.emf2web.json.generator.xtend.JsonGenerator
-
- All Implemented Interfaces:
Generator
- Direct Known Subclasses:
EcoreJsonGenerator
,FormsJsonGenerator
,JsonGenerator_Test.TestJsonGenerator
public abstract class JsonGenerator extends java.lang.Object implements Generator
- Author:
- Stefan Dirix
-
-
Constructor Summary
Constructors Constructor Description JsonGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected com.google.gson.JsonObject
_with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, com.google.gson.JsonElement value)
protected com.google.gson.JsonObject
_with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Boolean value)
protected com.google.gson.JsonObject
_with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Character value)
protected com.google.gson.JsonObject
_with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Number value)
protected com.google.gson.JsonObject
_with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Object object)
protected com.google.gson.JsonObject
_with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.String value)
protected com.google.gson.JsonObject
_with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Void x)
protected com.google.gson.JsonObject
_with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.util.Collection<? extends org.eclipse.emf.ecore.EObject> collection)
abstract com.google.gson.JsonElement
createJsonElement(org.eclipse.emf.ecore.EObject object)
java.lang.String
generate(org.eclipse.emf.ecore.EObject object)
Generate another representation of the givenEObject
as a string.protected com.google.gson.JsonObject
with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Object value)
-
-
-
Method Detail
-
createJsonElement
public abstract com.google.gson.JsonElement createJsonElement(org.eclipse.emf.ecore.EObject object)
-
generate
public java.lang.String generate(org.eclipse.emf.ecore.EObject object)
Description copied from interface:Generator
Generate another representation of the givenEObject
as a string.
-
_with
protected com.google.gson.JsonObject _with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, com.google.gson.JsonElement value)
-
_with
protected com.google.gson.JsonObject _with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.String value)
-
_with
protected com.google.gson.JsonObject _with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Number value)
-
_with
protected com.google.gson.JsonObject _with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Boolean value)
-
_with
protected com.google.gson.JsonObject _with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Character value)
-
_with
protected com.google.gson.JsonObject _with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.util.Collection<? extends org.eclipse.emf.ecore.EObject> collection)
-
_with
protected com.google.gson.JsonObject _with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Void x)
-
_with
protected com.google.gson.JsonObject _with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Object object)
-
with
protected com.google.gson.JsonObject with(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Object value)
-
-