org.eclipse.emf.ecp.view.spi.model.impl
Class VDiagnosticImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.ecp.view.spi.model.impl.VDiagnosticImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, VDiagnostic

public class VDiagnosticImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements VDiagnostic

An implementation of the model object 'VDiagnostic'.

The following features are implemented:

Since:
1.2

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
 void eUnset(int featureID)
           
 List<org.eclipse.emf.common.util.Diagnostic> getDiagnostic(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
          Returns all diagnostics for the provided EObject and EStructuralFeature.
 org.eclipse.emf.common.util.EList<Object> getDiagnostics()
           
 List<org.eclipse.emf.common.util.Diagnostic> getDiagnostics(org.eclipse.emf.ecore.EObject eObject)
          Returns all diagnostics for the provided EObject.
 int getHighestSeverity()
          Returns the highest severity found in the diagnostics.
 String getMessage()
          Returns the message associated with this validation.
 String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getDiagnostics

public org.eclipse.emf.common.util.EList<Object> getDiagnostics()

Specified by:
getDiagnostics in interface VDiagnostic
Returns:
the value of the 'Diagnostics' attribute list.
See Also:
VViewPackage.getDiagnostic_Diagnostics()

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

toString

public String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

getHighestSeverity

public int getHighestSeverity()
Returns the highest severity found in the diagnostics.

Specified by:
getHighestSeverity in interface VDiagnostic
Returns:
the highest severity
See Also:
VDiagnostic.getHighestSeverity()

getMessage

public String getMessage()
Returns the message associated with this validation. The message contains only the highest known severity for each EObject.

Specified by:
getMessage in interface VDiagnostic
Returns:
the message
See Also:
VDiagnostic.getMessage()

getDiagnostics

public List<org.eclipse.emf.common.util.Diagnostic> getDiagnostics(org.eclipse.emf.ecore.EObject eObject)
Returns all diagnostics for the provided EObject. The result is sorted by severity and message.

Specified by:
getDiagnostics in interface VDiagnostic
Parameters:
eObject - the EObject to search diagnostics for
Returns:
the list of sorted diagnostics
Since:
1.3
See Also:
VDiagnostic.getDiagnostics(org.eclipse.emf.ecore.EObject)

getDiagnostic

public List<org.eclipse.emf.common.util.Diagnostic> getDiagnostic(org.eclipse.emf.ecore.EObject eObject,
                                                                  org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
Returns all diagnostics for the provided EObject and EStructuralFeature. The result is sorted by severity and message.

Specified by:
getDiagnostic in interface VDiagnostic
Parameters:
eObject - the EObject to search diagnostics for
eStructuralFeature - the EStructuralFeature to search diagnostics for
Returns:
the list of sorted diagnostics
Since:
1.3
See Also:
VDiagnostic.getDiagnostic(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature)


Copyright © 2015. All Rights Reserved.