Class EcoreHelpers


  • public final class EcoreHelpers
    extends java.lang.Object
    Provides methods to simplify working with Ecore files.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object[] filterGenericElements​(java.lang.Object[] elements)
      Removes all generic elements from a list of elements.
      static boolean isGenericElement​(java.lang.Object element)
      Checks if the given element is generic.
      static boolean isGenericFeature​(java.lang.Object feature)
      Checks if the feature is generic.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isGenericFeature

        public static boolean isGenericFeature​(java.lang.Object feature)
        Checks if the feature is generic.
        Parameters:
        feature - The feature to check
        Returns:
        true, if the provided feature is generic
      • isGenericElement

        public static boolean isGenericElement​(java.lang.Object element)
        Checks if the given element is generic.
        Parameters:
        element - The element to check
        Returns:
        true, if the element is generic.
      • filterGenericElements

        public static java.lang.Object[] filterGenericElements​(java.lang.Object[] elements)
        Removes all generic elements from a list of elements.
        Parameters:
        elements - The list of elements to be filtered
        Returns:
        a list without generic elements