Class AbstractMultiFeatureFieldModelFactory.FeaturePaths
java.lang.Object
com._1c.g5.aef2.standard.definitions.models.AbstractMultiFeatureFieldModelFactory.FeaturePaths
- Enclosing class:
- AbstractMultiFeatureFieldModelFactory
A wrapper of an array of feature paths with convenience methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
contain
(org.eclipse.emf.ecore.EStructuralFeature feature) Checks whether the feature paths contain a single-feature path defined by the specified feature.org.eclipse.emf.databinding.FeaturePath[]
Returns the array of feature pathsorg.eclipse.emf.ecore.EStructuralFeature[]
If all feature paths are single-feature paths, returns an array of the corresponding features.
-
Constructor Details
-
FeaturePaths
public FeaturePaths(org.eclipse.emf.databinding.FeaturePath... featurePaths)
-
-
Method Details
-
getFeaturePaths
public org.eclipse.emf.databinding.FeaturePath[] getFeaturePaths()Returns the array of feature paths- Returns:
- the feature paths
-
contain
public boolean contain(org.eclipse.emf.ecore.EStructuralFeature feature) Checks whether the feature paths contain a single-feature path defined by the specified feature.- Parameters:
feature
- the feature defining the single-feature path, notnull
- Returns:
true
if the specified single-feature path is contained in this object,false
otherwise
-
toFeatures
public org.eclipse.emf.ecore.EStructuralFeature[] toFeatures()If all feature paths are single-feature paths, returns an array of the corresponding features. Otherwise, returnsnull
.- Returns:
- an array of features or
null
-