Class FlattenMarkerSet


  • public final class FlattenMarkerSet
    extends Object
    The flatten marker set.
    It keeps the collections of markers flatten by EStructuralFeatures.
    • Constructor Detail

      • FlattenMarkerSet

        public FlattenMarkerSet()
    • Method Detail

      • addMarker

        public void addMarker​(org.eclipse.emf.ecore.EStructuralFeature feature,
                              Marker marker)
        Adds the specified marker for the specified feature into the marker set.
        Parameters:
        feature - the feature, cannot be null.
        marker - the marker, cannot be null.
      • addMarkers

        public void addMarkers​(org.eclipse.emf.ecore.EStructuralFeature feature,
                               Marker[] markers)
        Adds the specified array of markers for the specified feature into the marker set.
        Parameters:
        feature - the feature, cannot be null.
        markers - an array of marker, cannot be null.
      • getFeatures

        public Set<org.eclipse.emf.ecore.EStructuralFeature> getFeatures()
        Returns features for which markers are available.
        Returns:
        a set of features, never null.
      • getMarkers

        public Collection<Marker> getMarkers​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Returns a collection of markers that are available for the given feature in the marker set.
        Parameters:
        feature - the feature, cannot be null.
        Returns:
        a collection of markers, never null.