public class MappedSetting extends Object implements org.eclipse.emf.ecore.EStructuralFeature.Setting
MappedSetting
is a EStructuralFeature.Setting
whose EStructuralFeature
is a map which has EClasses
as its keys. Additionally, the setting contains an EClass
that defines which value of the map is
the value of the setting.Constructor and Description |
---|
MappedSetting(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
org.eclipse.emf.ecore.EClass mappedEClass)
Creates a new
MappedSetting . |
Modifier and Type | Method and Description |
---|---|
Object |
get(boolean resolve) |
org.eclipse.emf.ecore.EObject |
getEObject() |
org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature() |
boolean |
isSet() |
void |
set(Object newValue) |
void |
unset() |
public MappedSetting(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, org.eclipse.emf.ecore.EClass mappedEClass) throws IllegalMapTypeException
MappedSetting
.eObject
- The EObject
holding a mapeStructuralFeature
- The specific feature holding a mapmappedEClass
- The EClass that defines which map entry's value is the value of this EStructuralFeature.Setting
.IllegalMapTypeException
- If the structural feature does not describe a valid map.public org.eclipse.emf.ecore.EObject getEObject()
getEObject
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
getEStructuralFeature
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public Object get(boolean resolve)
get
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public void set(Object newValue)
set
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public boolean isSet()
isSet
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public void unset()
unset
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
Copyright © 2020. All rights reserved.