public abstract class AbstractJsonSource
extends java.lang.Object
In particular, it helps to:
getName() and
setName(String))getMetamodel() and
setMetamodel(EPackage))
| Modifier and Type | Field and Description |
|---|---|
private org.eclipse.emf.ecore.EPackage |
metamodel
If required, this class can also store the metamodel of the set of JSON definitions
|
private java.lang.String |
name
A representative name for this source
|
| Constructor and Description |
|---|
AbstractJsonSource(java.lang.String name)
Constructs a new
AbstractJsonSource element with a name |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.ecore.EPackage |
getMetamodel()
Gets the metamodel linked to the JSON source
|
java.lang.String |
getName()
Returns the name of the JSON source
|
void |
setMetamodel(org.eclipse.emf.ecore.EPackage metamodel)
Sets the metamodel linked to the JSON source
|
void |
setName(java.lang.String name)
Sets the name of the JSON source
|
private java.lang.String name
private org.eclipse.emf.ecore.EPackage metamodel
public AbstractJsonSource(java.lang.String name)
AbstractJsonSource element with a namename - The name for the JSON sourcepublic java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the JSON sourcepublic org.eclipse.emf.ecore.EPackage getMetamodel()
EPackage)public void setMetamodel(org.eclipse.emf.ecore.EPackage metamodel)
metamodel - The metamodel (as EPackage)