public final class DiagnosticHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkDiagnosticData(org.eclipse.emf.common.util.Diagnostic diagnostic)
Verify if the given
Diagnostic contains at least one EStructuralFeature or a
InternalEObject. |
static org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature(List<?> data)
Returns the first
EStructuralFeature in the given list. |
static org.eclipse.emf.ecore.InternalEObject |
getFirstInternalEObject(List<?> data)
Returns the first
InternalEObject in the given list. |
public static org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(List<?> data)
EStructuralFeature in the given list.data - the list to search for a EStructuralFeatureEStructuralFeature, null if no EStructuralFeature is foundpublic static org.eclipse.emf.ecore.InternalEObject getFirstInternalEObject(List<?> data)
InternalEObject in the given list.data - the list to search for a InternalEObjectInternalEObject, null if no InternalEObject is foundpublic static boolean checkDiagnosticData(org.eclipse.emf.common.util.Diagnostic diagnostic)
Diagnostic contains at least one EStructuralFeature or a
InternalEObject.diagnostic - the Diagnostic to checkDiagnostic contains at least one EStructuralFeature or
InternalEObject, false otherwiseCopyright © 2018. All rights reserved.