public interface PreferenceScopeFactory
| Modifier and Type | Method and Description |
|---|---|
PreferenceScope |
cloneScope(PreferenceScope scope)
Clones the passed scope to a new instance.
|
PreferenceScope |
createScope(PreferenceScope... scopes)
Builds a new preference scope, that contains the following ones as child scopes.
|
PreferenceScope |
createScope(String type)
Builds a new preference scope, that does not require a custom key.
|
PreferenceScope |
createScope(String type,
PreferenceScope childScope)
Builds a new preference scope, that does not require a custom key, and has the passed child scope.
|
PreferenceScope |
createScope(String type,
String key)
Builds a new preference scope, that requires a custom key.
|
PreferenceScope |
createScope(String type,
String key,
PreferenceScope childScope)
Builds a new preference scope, that requires a custom key, and has the passed child scope.
|
PreferenceScope createScope(String type) throws InvalidPreferenceScopeException
type - Type of the new preference scope.InvalidPreferenceScopeException - if the type passed is invalid, or if it requires a key.PreferenceScope createScope(String type, PreferenceScope childScope) throws InvalidPreferenceScopeException
type - Type of the new preference scope.InvalidPreferenceScopeException - if the type passed is invalid, or if it requires a key.PreferenceScope createScope(String type, String key) throws InvalidPreferenceScopeException
type - Type of the new preference scope.key - Key of the new preference scope.InvalidPreferenceScopeException - if the type passed is invalid, or if it does not require
a key.PreferenceScope createScope(String type, String key, PreferenceScope childScope) throws InvalidPreferenceScopeException
type - Type of the new preference scope.key - Key of the new preference scope.childScope - Child scope of this scope. It can be null if the scope has no child.InvalidPreferenceScopeException - if the type passed is invalid, or if it does not require
a key.PreferenceScope createScope(PreferenceScope... scopes) throws InvalidPreferenceScopeException
scopes - The first scope is the root scope, the second is its child scope, and so on.InvalidPreferenceScopeException - if any passed scope is invalid.PreferenceScope cloneScope(PreferenceScope scope)
scope - Scope to be cloned. Must not be null.Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.