Class AbstractMultiFeatureFieldModelFactory

  • All Implemented Interfaces:
    IModelFactory

    public abstract class AbstractMultiFeatureFieldModelFactory
    extends Object
    implements IModelFactory
    The abstract model factory implementation for multi-feature definitions.
    • Constructor Detail

      • AbstractMultiFeatureFieldModelFactory

        public AbstractMultiFeatureFieldModelFactory()
    • Method Detail

      • createModel

        public IModel createModel​(IDefinition definition,
                                  org.eclipse.emf.ecore.EObject... objects)
        Description copied from interface: IModelFactory
        Creates IModel instance by the given arguments.
        Specified by:
        createModel in interface IModelFactory
        Parameters:
        definition - the definition, cannot be null.
        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 object
        featurePaths - 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. Returns null by default.
        Parameters:
        objects - the input objects
        featurePaths - the feature paths
        Returns:
        a newly created model