aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/IMAPNamespaceItem.java
blob: 4249a79095fdfe3e9d53d6a7753c66898ded236f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.libmailcore;

import java.util.List;

public class IMAPNamespaceItem extends NativeObject {
    
    /** Sets prefix. */
    public native void setPrefix(String prefix);
    /** Returns prefix. */
    public native String prefix();

    /** Sets delimiter. */
    public native void setDelimiter(char delimiter);
    /** Returns delimiter. */
    public native char delimiter();

    /** Returns the folder path for the given list of path components. */
    public native String pathForComponents(List<String> components);
    /** Returns the components given a folder path. */
    public native List<String> componentsForPath(String path);

    /** Returns true if the namespace contains the given folder path. */
    public native boolean containsFolder(String folder);
}