Class AbstractMultiFeatureFieldModelFactory
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.models.AbstractMultiFeatureFieldModelFactory
-
- All Implemented Interfaces:
IModelFactory
public abstract class AbstractMultiFeatureFieldModelFactory extends Object implements IModelFactory
The abstract model factory implementation for multi-feature definitions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractMultiFeatureFieldModelFactory.FeaturePaths
A wrapper of an array of feature paths with convenience methods.
-
Constructor Summary
Constructors Constructor Description AbstractMultiFeatureFieldModelFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected IModel
createGroupModel(org.eclipse.emf.ecore.EObject[] objects, AbstractMultiFeatureFieldModelFactory.FeaturePaths featurePaths)
Creates a model for a multi-object input.IModel
createModel(IDefinition definition, org.eclipse.emf.ecore.EObject... objects)
CreatesIModel
instance by the given arguments.protected abstract IModel
createSingleModel(org.eclipse.emf.ecore.EObject eObject, AbstractMultiFeatureFieldModelFactory.FeaturePaths featurePaths)
Creates a model for a single input object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.standard.definitions.models.IModelFactory
createModel
-
-
-
-
Method Detail
-
createModel
public IModel createModel(IDefinition definition, org.eclipse.emf.ecore.EObject... objects)
Description copied from interface:IModelFactory
CreatesIModel
instance by the given arguments.- Specified by:
createModel
in interfaceIModelFactory
- Parameters:
definition
- the definition, cannot benull
.objects
- the objects for that the model is created.- Returns:
- the newly created model.
-
createSingleModel
protected abstract IModel createSingleModel(org.eclipse.emf.ecore.EObject eObject, AbstractMultiFeatureFieldModelFactory.FeaturePaths featurePaths)
Creates a model for a single input object.- Parameters:
eObject
- the objectfeaturePaths
- the feature paths- Returns:
- a newly created model
-
createGroupModel
protected IModel createGroupModel(org.eclipse.emf.ecore.EObject[] objects, AbstractMultiFeatureFieldModelFactory.FeaturePaths featurePaths)
Creates a model for a multi-object input. Returnsnull
by default.- Parameters:
objects
- the input objectsfeaturePaths
- the feature paths- Returns:
- a newly created model
-
-