public class IMAPNamespace extends NativeObject
Constructor and Description |
---|
IMAPNamespace() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
componentsFromPath(java.lang.String path)
Returns the components given a folder path.
|
boolean |
containsFolderPath(java.lang.String path)
Returns true if the namespace contains the given folder path.
|
char |
mainDelimiter()
Returns the delimiter of the main namespace item.
|
java.lang.String |
mainPrefix()
Returns the prefix of the main namespace item.
|
static IMAPNamespace |
namespaceWithPrefix(java.lang.String prefix,
char delimiter)
Returns a namespace (with a single namespace item) with a prefix and a delimiter.
|
java.lang.String |
pathForComponents(java.util.List<java.lang.String> components)
Returns the folder path for the given list of path components in the context
of the main item of the namespace.
|
java.lang.String |
pathForComponentsAndPrefix(java.util.List<java.lang.String> components,
java.lang.String prefix)
Returns the folder path for the given list of path components and a prefix.
|
java.util.List<java.lang.String> |
prefixes()
Returns the list of prefixes.
|
clone, finalize, initWithNative, readObject, toString, writeObject
public java.lang.String mainPrefix()
public char mainDelimiter()
public java.util.List<java.lang.String> prefixes()
public java.lang.String pathForComponents(java.util.List<java.lang.String> components)
public java.lang.String pathForComponentsAndPrefix(java.util.List<java.lang.String> components, java.lang.String prefix)
public java.util.List<java.lang.String> componentsFromPath(java.lang.String path)
public boolean containsFolderPath(java.lang.String path)
public static IMAPNamespace namespaceWithPrefix(java.lang.String prefix, char delimiter)