@ParametersAreNonnullByDefault public final class EFeatures extends Object
EStructuralFeatures.| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.emf.ecore.EAttribute |
asAttribute(org.eclipse.emf.ecore.EStructuralFeature feature)
Casts the
feature as an attribute. |
static org.eclipse.emf.ecore.EReference |
asReference(org.eclipse.emf.ecore.EStructuralFeature feature)
Casts the
feature as a reference. |
static boolean |
isAttribute(org.eclipse.emf.ecore.EStructuralFeature feature)
Checks whether the
feature represents an attribute. |
static boolean |
isReference(org.eclipse.emf.ecore.EStructuralFeature feature)
Checks whether the
feature represents a reference. |
public static boolean isAttribute(org.eclipse.emf.ecore.EStructuralFeature feature)
feature represents an attribute.feature - the feature to testtrue if the feature represents an attributepublic static boolean isReference(org.eclipse.emf.ecore.EStructuralFeature feature)
feature represents a reference.feature - the feature to testtrue if the feature represents an reference@Nonnull public static org.eclipse.emf.ecore.EAttribute asAttribute(org.eclipse.emf.ecore.EStructuralFeature feature)
feature as an attribute.feature - the feature to castNullPointerException - if the feature is nullClassCastException - if the feature is not an attribute@Nonnull public static org.eclipse.emf.ecore.EReference asReference(org.eclipse.emf.ecore.EStructuralFeature feature)
feature as a reference.feature - the feature to castNullPointerException - if the feature is nullClassCastException - if the feature is not a referenceCopyright © 2013–2019 Atlanmod. All rights reserved.