Package com._1c.g5.v8.dt.mcore.util
Class Enumerators
- java.lang.Object
-
- com._1c.g5.v8.dt.mcore.util.Enumerators
-
public final class Enumerators extends Object
Class containing static methods for working withEnumerators
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.emf.common.util.Enumerator
fromString(String value)
Try to getEnumerator
from given stringstatic String
toString(org.eclipse.emf.common.util.Enumerator enumerator)
Convert givenEnumerator
to string presentation
-
-
-
Method Detail
-
fromString
public static org.eclipse.emf.common.util.Enumerator fromString(String value)
Try to getEnumerator
from given string- Parameters:
value
- the string presentation ofEnumerator
, cannot benull
- Returns:
- instance of
Enumerator
, ornull
if cannot find enumeration by given string
-
toString
public static String toString(org.eclipse.emf.common.util.Enumerator enumerator) throws IllegalArgumentException
Convert givenEnumerator
to string presentation- Parameters:
enumerator
- theEnumerator
instance, cannot benull
- Returns:
- string presentation, cannot be
null
- Throws:
IllegalArgumentException
- if cannot find namespace uri of package contains given enumerator
-
-