public interface PreferenceScopeValidator
Modifier and Type | Method and Description |
---|---|
void |
validate(PreferenceScope scope)
Checks if a scope is valid.
|
void validate(PreferenceScope scope) throws InvalidPreferenceScopeException
scope
- Scope to check.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.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.