/** * Convert a string into a scope. Scole.LOCAL is returned by default. * @param scopeStr * @return a scope corresponding to the input string; Scope.LOCAL by default. */ static public Scope stringToScope(String scopeStr) { if(Scope.SYSTEM.toString().equalsIgnoreCase(scopeStr)) return Scope.SYSTEM; if(Scope.CONTEXT.toString().equalsIgnoreCase(scopeStr)) return Scope.CONTEXT; return Scope.LOCAL; }
/** * Convert a string into a scope. Scole.LOCAL is returned by default. * @param scopeStr * @return a scope corresponding to the input string; Scope.LOCAL by default. */ static public Scope stringToScope(String scopeStr) { if (Scope.SYSTEM.toString().equalsIgnoreCase(scopeStr)) return Scope.SYSTEM; if (Scope.CONTEXT.toString().equalsIgnoreCase(scopeStr)) return Scope.CONTEXT; return Scope.LOCAL; }
/** * Convert a string into a scope. Scole.LOCAL is returned by default. * @param scopeStr * @return a scope corresponding to the input string; Scope.LOCAL by default. */ static public Scope stringToScope(String scopeStr) { if (Scope.SYSTEM.toString().equalsIgnoreCase(scopeStr)) return Scope.SYSTEM; if (Scope.CONTEXT.toString().equalsIgnoreCase(scopeStr)) return Scope.CONTEXT; return Scope.LOCAL; }
/** * Convert a string into a scope. Scole.LOCAL is returned by default. * @param scopeStr * @return a scope corresponding to the input string; Scope.LOCAL by default. */ static public Scope stringToScope(String scopeStr) { if (Scope.SYSTEM.toString().equalsIgnoreCase(scopeStr)) return Scope.SYSTEM; if (Scope.CONTEXT.toString().equalsIgnoreCase(scopeStr)) return Scope.CONTEXT; return Scope.LOCAL; }
/** * Convert a string into a scope. Scole.LOCAL is returned by default. * @param scopeStr * @return a scope corresponding to the input string; Scope.LOCAL by default. */ static public Scope stringToScope(String scopeStr) { if(Scope.SYSTEM.toString().equalsIgnoreCase(scopeStr)) return Scope.SYSTEM; if(Scope.CONTEXT.toString().equalsIgnoreCase(scopeStr)) return Scope.CONTEXT; return Scope.LOCAL; }
/** * Convert a string into a scope. Scope.LOCAL is returned by default. * @param scopeStr the string to be converted * @return a scope corresponding to the input string; Scope.LOCAL by default. */ static public Scope stringToScope(String scopeStr) { if(Scope.SYSTEM.toString().equalsIgnoreCase(scopeStr)) return Scope.SYSTEM; if(Scope.CONTEXT.toString().equalsIgnoreCase(scopeStr)) return Scope.CONTEXT; return Scope.LOCAL; }