Class Enumerators


  • public final class Enumerators
    extends Object
    Class containing static methods for working with Enumerators
    • Method Detail

      • fromString

        public static org.eclipse.emf.common.util.Enumerator fromString​(String value)
        Try to get Enumerator from given string
        Parameters:
        value - the string presentation of Enumerator, cannot be null
        Returns:
        instance of Enumerator, or null if cannot find enumeration by given string
      • toString

        public static String toString​(org.eclipse.emf.common.util.Enumerator enumerator)
                               throws IllegalArgumentException
        Convert given Enumerator to string presentation
        Parameters:
        enumerator - the Enumerator instance, cannot be null
        Returns:
        string presentation, cannot be null
        Throws:
        IllegalArgumentException - if cannot find namespace uri of package contains given enumerator