org.eclipse.ocl.examples.domain.utilities
Class DomainUtil
java.lang.Object
org.eclipse.ocl.examples.domain.utilities.DomainUtil
- Direct Known Subclasses:
- PivotUtil
public class DomainUtil
- extends java.lang.Object
Method Summary |
static java.lang.String |
bind(java.lang.String messageTemplate,
java.lang.Object... bindings)
|
static java.lang.String |
debugFullName(java.lang.Object object)
|
static java.lang.String |
debugSimpleName(java.lang.Object object)
|
static java.lang.String |
getLabel(org.eclipse.emf.ecore.EClassifier eClassifier,
java.lang.Object object,
java.util.Map<java.lang.Object,java.lang.Object> context)
Return a simple readable description of object. |
static java.lang.String |
getLabel(org.eclipse.emf.ecore.EObject eObject)
Return a simple readable description of eObject using an IItemLabelProvider if possible. |
static void |
suppressThrowWarnings()
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomainUtil
public DomainUtil()
bind
public static java.lang.String bind(java.lang.String messageTemplate,
java.lang.Object... bindings)
debugFullName
public static java.lang.String debugFullName(java.lang.Object object)
debugSimpleName
public static java.lang.String debugSimpleName(java.lang.Object object)
getLabel
public static java.lang.String getLabel(org.eclipse.emf.ecore.EObject eObject)
- Return a simple readable description of eObject using an IItemLabelProvider if possible.
getLabel
public static java.lang.String getLabel(org.eclipse.emf.ecore.EClassifier eClassifier,
java.lang.Object object,
java.util.Map<java.lang.Object,java.lang.Object> context)
- Return a simple readable description of object. If non-null eClassifier
identifoes the type of object. If non-null context may provide an ESubstitutionLabelProvider.
suppressThrowWarnings
@Deprecated
public static void suppressThrowWarnings()
throws InvalidValueException
- Deprecated.
- This dummy function may be invoked from auto-generated code that does not throw
an exception to avoid a compilation error.
- Throws:
InvalidValueException