public class EMFJsonGrammar extends SimpleGrammar
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NV |
static java.lang.String |
PROP |
static java.lang.String |
SRC |
| Constructor and Description |
|---|
EMFJsonGrammar() |
| Modifier and Type | Method and Description |
|---|---|
SendableEntityCreator |
getCreator(java.lang.String type,
java.lang.Object item,
IdMap map,
boolean searchForSuperCreator,
java.lang.String className) |
java.lang.String |
getId(java.lang.Object obj,
IdMap map) |
BaseItem |
getProperties(Entity item,
MapEntity map,
boolean isId) |
java.lang.String |
getValue(Entity item,
java.lang.String property)
Get a Value from the Item
|
boolean |
hasValue(Entity json,
java.lang.String property) |
Entity |
writeBasicValue(Entity entity,
java.lang.String className,
java.lang.String id,
IdMap map) |
encode, getClassForName, getNewEntity, getSuperCreator, withBasicFeature, withoutBasicFeature, writeValuepublic static final java.lang.String SRC
public static final java.lang.String PROP
public static final java.lang.String NV
public BaseItem getProperties(Entity item, MapEntity map, boolean isId)
getProperties in interface GrammargetProperties in class SimpleGrammaritem - The Object for read or writemap - The IdMapisId - The Id enable for objectpublic SendableEntityCreator getCreator(java.lang.String type, java.lang.Object item, IdMap map, boolean searchForSuperCreator, java.lang.String className)
getCreator in interface GrammargetCreator in class SimpleGrammartype - can be Write or Readitem - The Object for read or writemap - The IdMapsearchForSuperCreator - Is Searching for Creator in superclassesclassName - The ClassName of Itempublic java.lang.String getId(java.lang.Object obj,
IdMap map)
getId in interface GrammargetId in class SimpleGrammarpublic java.lang.String getValue(Entity item, java.lang.String property)
GrammargetValue in interface GrammargetValue in class SimpleGrammaritem - target itemproperty - the Propertypublic boolean hasValue(Entity json, java.lang.String property)
hasValue in interface GrammarhasValue in class SimpleGrammarpublic Entity writeBasicValue(Entity entity, java.lang.String className, java.lang.String id, IdMap map)
writeBasicValue in interface GrammarwriteBasicValue in class SimpleGrammar