Package com.couchbase.lite
Class Scope
- java.lang.Object
-
- com.couchbase.lite.Scope
-
public class Scope extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Collection
getCollection(String collectionName)
Get the named collection for the scope.Set<Collection>
getCollections()
Get all collections in the scope.String
getName()
Get the scope name.int
hashCode()
String
toString()
-
-
-
Field Detail
-
DEFAULT_NAME
public static final String DEFAULT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@NonNull public String getName()
Get the scope name.- Returns:
- Scope name
-
getCollections
@NonNull public Set<Collection> getCollections() throws CouchbaseLiteException
Get all collections in the scope.- Returns:
- a set of all collections in the scope
- Throws:
CouchbaseLiteException
-
getCollection
@Nullable public Collection getCollection(@NonNull String collectionName) throws CouchbaseLiteException
Get the named collection for the scope.- Parameters:
collectionName
- the name of the sought collection- Returns:
- the named collection or null
- Throws:
CouchbaseLiteException
-
-