Class AbstractMultiFeatureFieldModelFactory.FeaturePaths
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.models.AbstractMultiFeatureFieldModelFactory.FeaturePaths
-
- Enclosing class:
- AbstractMultiFeatureFieldModelFactory
public static final class AbstractMultiFeatureFieldModelFactory.FeaturePaths extends Object
A wrapper of an array of feature paths with convenience methods.
-
-
Constructor Summary
Constructors Constructor Description FeaturePaths(org.eclipse.emf.databinding.FeaturePath... featurePaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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[]
getFeaturePaths()
Returns the array of feature pathsorg.eclipse.emf.ecore.EStructuralFeature[]
toFeatures()
If all feature paths are single-feature paths, returns an array of the corresponding features.
-
-
-
Method Detail
-
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
-
-