Class PreferenceScopeImpl
- java.lang.Object
-
- org.uberfire.preferences.shared.impl.PreferenceScopeImpl
-
- All Implemented Interfaces:
PreferenceScope
@Portable public class PreferenceScopeImpl extends Object implements PreferenceScope
Default portable implementation for a preference scope, containing a type (required), a key (required) and a child scope (optional).
-
-
Constructor Summary
Constructors Constructor Description PreferenceScopeImpl(String type, String key, PreferenceScope childScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreferenceScopechildScope()Child scope, a scope inside a scope.booleanequals(Object o)inthashCode()Stringkey()Stringtype()
-
-
-
Constructor Detail
-
PreferenceScopeImpl
public PreferenceScopeImpl(String type, String key, PreferenceScope childScope)
-
-
Method Detail
-
type
public String type()
- Specified by:
typein interfacePreferenceScope- Returns:
- Type of the preference scope. Represents a unique category of scopes.
-
key
public String key()
- Specified by:
keyin interfacePreferenceScope- Returns:
- Key of the preference scope. Represents a unique key inside a scope type.
-
childScope
public PreferenceScope childScope()
Description copied from interface:PreferenceScopeChild scope, a scope inside a scope. This allows a hierarchy inside each scope.- Specified by:
childScopein interfacePreferenceScope- Returns:
- Child scope. This can be null, indicating the end of the hierarchy.
-
-