public class DefaultContentScope extends Object implements ContentScope
The type Content scope. The content scope is used by the content manager and the content provider to establish the context of their operations. As the content scope is used to
isolate content, each content scope string will be required to have a minimum length, declared in the constant MIN_SCOPE_LENGTH
. The maximum
allowed length for the scope is declared in the constant MAX_SCOPE_LENGTH
. As the scope can potentially be stored in different content providers,
only some chars are allowed in its name. The allowed chars are those who comply with Character.isLetterOrDigit(char)
or match any of the ALLOWED_NON_ALPHANUMERIC_CHARS
.
Modifier and Type | Field and Description |
---|---|
static String |
ALLOWED_NON_ALPHANUMERIC_CHARS |
static int |
MAX_SCOPE_LENGTH |
static int |
MIN_SCOPE_LENGTH |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ContentScope |
get(String scope)
Returns a type-safe content scope for the specified value.
|
String |
getValue()
Returns the String representation of the content scope.
|
int |
hashCode() |
String |
toString() |
public static final int MIN_SCOPE_LENGTH
public static final int MAX_SCOPE_LENGTH
public static final String ALLOWED_NON_ALPHANUMERIC_CHARS
public static ContentScope get(String scope)
Returns a type-safe content scope for the specified value.
scope
- the value that represents the content scopepublic String getValue()
ContentScope
Returns the String representation of the content scope.
getValue
in interface ContentScope
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.