Class MdObjectModel<M extends MdObject>
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.CompoundModel
-
- com._1c.g5.v8.dt.md.ui.wizards.aef.models.MdObjectModel<M>
-
- All Implemented Interfaces:
ICompoundModel
,IModel
,IValidable
,IMdObjectModel
- Direct Known Subclasses:
MdTypedObjectModel
public class MdObjectModel<M extends MdObject> extends CompoundModel implements IMdObjectModel
TheIMdObjectModel
implementation that operates withIDtNewWizardContext
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceSupplier<IEditingLanguageManager>
languageProvider
IEditingLanguageManager
instance.
-
Constructor Summary
Constructors Constructor Description MdObjectModel(IDtNewWizardContext<M> context, String modelNamePrefix)
Creates a new instance.MdObjectModel(IDtNewWizardContext<M> context, String modelNamePrefix, String projectNamePrefix)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this model.IValue<String>
getComment()
protected IDtNewWizardContext<M>
getContext()
org.eclipse.emf.ecore.EClass
getModelClass()
Returns the parent wizardMdObject
model class.protected IModelEditingSupport
getModelEditingSupport()
IValue<String>
getName()
org.eclipse.emf.ecore.EObject
getParent()
Returns theMdObject
model parent.IMultilanguageModel
getSynonym()
UniqueName
getUniqueName()
IV8Project
getV8project()
-
Methods inherited from class com._1c.g5.aef2.models.CompoundModel
addModel, getChange, getModels, isOnline, setComponent, validate
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Field Detail
-
languageProvider
protected ServiceSupplier<IEditingLanguageManager> languageProvider
IEditingLanguageManager
instance.
-
-
Constructor Detail
-
MdObjectModel
public MdObjectModel(IDtNewWizardContext<M> context, String modelNamePrefix)
Creates a new instance.- Parameters:
context
- theIDtNewWizardContext
modelNamePrefix
- the model name prefix ornull
if not needed
-
MdObjectModel
public MdObjectModel(IDtNewWizardContext<M> context, String modelNamePrefix, String projectNamePrefix)
Creates a new instance.- Parameters:
context
- theIDtNewWizardContext
modelNamePrefix
- the model name prefix ornull
if not neededprojectNamePrefix
- the project name prefix ornull
if not needed
-
-
Method Detail
-
getName
public IValue<String> getName()
- Specified by:
getName
in interfaceIMdObjectModel
- Returns:
- the
IValue
model that represents the name.
-
getSynonym
public IMultilanguageModel getSynonym()
- Specified by:
getSynonym
in interfaceIMdObjectModel
- Returns:
- the
IMultilanguageModel
model for synonym field.
-
getComment
public IValue<String> getComment()
- Specified by:
getComment
in interfaceIMdObjectModel
- Returns:
- the
IValue
model that represents the comment.
-
getV8project
public IV8Project getV8project()
- Specified by:
getV8project
in interfaceIMdObjectModel
- Returns:
- the
IV8Project
object.
-
getParent
public org.eclipse.emf.ecore.EObject getParent()
Description copied from interface:IMdObjectModel
Returns theMdObject
model parent.- Specified by:
getParent
in interfaceIMdObjectModel
- Returns:
- the
MdObject
model parent, never {code null}
-
getModelClass
public org.eclipse.emf.ecore.EClass getModelClass()
Description copied from interface:IMdObjectModel
Returns the parent wizardMdObject
model class.- Specified by:
getModelClass
in interfaceIMdObjectModel
- Returns:
- the parent wizard
MdObject
model class, never {code null}
-
getUniqueName
public UniqueName getUniqueName()
- Specified by:
getUniqueName
in interfaceIMdObjectModel
- Returns:
- the
UniqueName
instance.
-
dispose
public void dispose()
Description copied from interface:IModel
Disposes this model.- Specified by:
dispose
in interfaceIModel
- Overrides:
dispose
in classCompoundModel
-
getContext
protected IDtNewWizardContext<M> getContext()
- Returns:
- the
IDtNewWizardContext
instance.
-
getModelEditingSupport
protected IModelEditingSupport getModelEditingSupport()
- Returns:
- the instance of
IModelEditingSupport
, cannot benull
-
-