Package org.apache.karaf.shell.console
Class NameScoping
- java.lang.Object
-
- org.apache.karaf.shell.console.NameScoping
-
@Deprecated public class NameScoping extends Object
Deprecated.A helper class for name scoping
-
-
Field Summary
Fields Modifier and Type Field Description static StringMULTI_SCOPE_MODE_KEYDeprecated.
-
Constructor Summary
Constructors Constructor Description NameScoping()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetCommandNameWithoutGlobalPrefix(org.apache.felix.service.command.CommandSession session, String key)Deprecated.Return the name of the command which can omit the global scope prefix if the command starts with the same prefix as the current application.static booleanisGlobalScope(org.apache.felix.service.command.CommandSession session, String scope)Deprecated.Return true if the given scope is the global scope so that it can be hidden from help messages.static booleanisMultiScopeMode(org.apache.felix.service.command.CommandSession session)Deprecated.Return true if we are in multi-scope mode (the default) or if we are in single scope mode which means we avoid prefixing commands with their scope.
-
-
-
Field Detail
-
MULTI_SCOPE_MODE_KEY
public static final String MULTI_SCOPE_MODE_KEY
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommandNameWithoutGlobalPrefix
public static String getCommandNameWithoutGlobalPrefix(org.apache.felix.service.command.CommandSession session, String key)
Deprecated.Return the name of the command which can omit the global scope prefix if the command starts with the same prefix as the current application.- Parameters:
session- The command session.key- The command key.- Returns:
- The command name without the global prefix.
-
isGlobalScope
public static boolean isGlobalScope(org.apache.felix.service.command.CommandSession session, String scope)Deprecated.Return true if the given scope is the global scope so that it can be hidden from help messages.- Parameters:
session- The command session.scope- The command scope.- Returns:
- True if the scope is global, false else.
-
isMultiScopeMode
public static boolean isMultiScopeMode(org.apache.felix.service.command.CommandSession session)
Deprecated.Return true if we are in multi-scope mode (the default) or if we are in single scope mode which means we avoid prefixing commands with their scope.- Parameters:
session- The command session.- Returns:
- True if the command is multi-scoped, false else.
-
-