Package org.eclipse.xtext.validation
Interface INamesAreUniqueValidationHelper
-
- All Known Implementing Classes:
NamesAreUniqueValidationHelper
public interface INamesAreUniqueValidationHelper
The helper can be used to validate unique names locally or across resource boundaries.- See Also:
LocalUniqueNameContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
INamesAreUniqueValidationHelper.Context
Provides context information to the validation that allows to introspect the scope in which the validation for unique names is supposed to happen.static interface
INamesAreUniqueValidationHelper.ContextProvider
Provide the context information for the unique name validation.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
checkUniqueNames(java.lang.Iterable<IEObjectDescription> descriptions, org.eclipse.xtext.util.CancelIndicator cancelIndicator, ValidationMessageAcceptor acceptor)
Deprecated.Implementations should adhere to the context provided viacheckUniqueNames(Context, ValidationMessageAcceptor)
default void
checkUniqueNames(java.lang.Iterable<IEObjectDescription> descriptions, ValidationMessageAcceptor acceptor)
Deprecated.Implementations should adhere to the context provided viacheckUniqueNames(Context, ValidationMessageAcceptor)
default void
checkUniqueNames(INamesAreUniqueValidationHelper.Context context, ValidationMessageAcceptor acceptor)
Create errors for objects that have the same name according to the given context.
-
-
-
Method Detail
-
checkUniqueNames
@Deprecated default void checkUniqueNames(java.lang.Iterable<IEObjectDescription> descriptions, ValidationMessageAcceptor acceptor)
Deprecated.Implementations should adhere to the context provided viacheckUniqueNames(Context, ValidationMessageAcceptor)
Create errors for objects that have the same name. Objects that do not belong to the same cluster will not get any errors.
-
checkUniqueNames
@Deprecated void checkUniqueNames(java.lang.Iterable<IEObjectDescription> descriptions, org.eclipse.xtext.util.CancelIndicator cancelIndicator, ValidationMessageAcceptor acceptor)
Deprecated.Implementations should adhere to the context provided viacheckUniqueNames(Context, ValidationMessageAcceptor)
Create errors for objects that have the same name. Objects that do not belong to the same cluster will not get any errors. The cancel indicator may be used to abort the validation.
-
checkUniqueNames
default void checkUniqueNames(INamesAreUniqueValidationHelper.Context context, ValidationMessageAcceptor acceptor)
Create errors for objects that have the same name according to the given context.- Since:
- 2.22
-
-