Package org.uberfire.preferences.shared
Interface PreferenceScopeValidator
-
- All Known Implementing Classes:
PreferenceScopeValidatorImpl
public interface PreferenceScopeValidatorProvides a simple validator method for preference scopes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(PreferenceScope scope)Checks if a scope is valid.
-
-
-
Method Detail
-
validate
void validate(PreferenceScope scope) throws InvalidPreferenceScopeException
Checks if a scope is valid.- Parameters:
scope- Scope to check.- Throws:
InvalidPreferenceScopeException- if the type passed is invalid, or if the scope's key is null and a key is required for that type, or if the key is not null and the scope's type does not require one.
-
-