Grammarpublic class EMFJsonGrammar extends SimpleGrammar
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NV |
|
static java.lang.String |
PROP |
|
static java.lang.String |
SRC |
| Constructor | Description |
|---|---|
EMFJsonGrammar() |
| Modifier and Type | Method | Description |
|---|---|---|
SendableEntityCreator |
getCreator(java.lang.String type,
java.lang.Object item,
MapEntity entity,
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,
java.lang.String type,
IdMap map) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, 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, MapEntity entity, java.lang.String className)
getCreator in interface GrammargetCreator in class SimpleGrammartype - can be Write or Readitem - The Object for read or writeentity - The MapEntityclassName - 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, java.lang.String type, IdMap map)
writeBasicValue in interface GrammarwriteBasicValue in class SimpleGrammar