Subversion Repositories bacoAlunos

Rev

Blame | Compare with Previous | Last modification | View Log | RSS feed

package jomm.web.ftp;

/**
 * @author Jorge Machado
 * @date 7/Fev/2008
 * @time 8:58:18
 * @see jomm.web.ftp
 */

public enum FileType
{
    FILE("FILE"),
    DIRECTORY("DIRECTORY"),
    LINK("LINK"),
    5+0%2Fdocs%2Fapi+UNKNOWN">UNKNOWN("UNKNOWN");

    private 1.5.0/docs/api/java/lang/String.html">String type;

    private FileType(1.5.0/docs/api/java/lang/String.html">String type)
    {
        this.type = type;
    }

    public FileType parse(1.5.0/docs/api/java/lang/String.html">String type)
    {
        for (FileType fileType : values())
        {
            if(fileType.type.equals(type))
            {
                return fileType;
            }
        }
        return null;
    }

    public 1.5.0/docs/api/java/lang/String.html">String getType()
    {
        return type;
    }
}