LoadingStateDescriptions.java
001 /* This file is part of the project "Hilbert II" - http://www.qedeq.org
002  *
003  * Copyright 2000-2011,  Michael Meyling <mime@qedeq.org>.
004  *
005  * "Hilbert II" is free software; you can redistribute
006  * it and/or modify it under the terms of the GNU General Public
007  * License as published by the Free Software Foundation; either
008  * version 2 of the License, or (at your option) any later version.
009  *
010  * This program is distributed in the hope that it will be useful,
011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
013  * GNU General Public License for more details.
014  */
015 
016 package org.qedeq.kernel.se.common;
017 
018 /**
019  * This interface provides constants of this package.
020  *
021  @version $Revision: 1.2 $
022  @author Michael Meyling
023  */
024 public interface LoadingStateDescriptions {
025 
026     /** Undefined state code. */
027     public static final int STATE_CODE_UNDEFINED = 0;
028 
029     /** Undefined state description. */
030     public static final String STATE_STRING_UNDEFINED = "undefined";
031 
032     /** Trying to access web address code. */
033     public static final int STATE_CODE_LOCATING_WITHIN_WEB = 1;
034 
035     /** Trying to access web address description. */
036     public static final String STATE_STRING_LOCATING_WITHIN_WEB = "locating within web";
037 
038     /** Trying to access web address failure code. */
039     public static final int STATE_CODE_LOCATING_WITHIN_WEB_FAILED = 2;
040 
041     /** Trying to access web address failure description. */
042     public static final String STATE_STRING_LOCATING_WITHIN_WEB_FAILED
043         "locating within web failed";
044 
045     /** Loading from web address code. */
046     public static final int STATE_CODE_LOADING_FROM_WEB = 3;
047 
048     /** Loading from web address description. */
049     public static final String STATE_STRING_LOADING_FROM_WEB = "loading from web";
050 
051     /** Loading from web address failure code. */
052     public static final int STATE_CODE_LOADING_FROM_WEB_FAILED = 4;
053 
054     /** Loading from web address failure description. */
055     public static final String STATE_STRING_LOADING_FROM_WEB_FAILED = "loading from web failed";
056 
057     /** Loading from local file code. */
058     public static final int STATE_CODE_LOADING_FROM_LOCAL_FILE = 5;
059 
060     /** Loading from web address description. */
061     public static final String STATE_STRING_LOADING_FROM_LOCAL_FILE = "loading from local file";
062 
063     /** Loading from web address failure code. */
064     public static final int STATE_CODE_LOADING_FROM_LOCAL_FILE_FAILED = 6;
065 
066     /** Loading from web address failure description. */
067     public static final String STATE_STRING_LOADING_FROM_LOCAL_FILE_FAILED
068         "loading from local file failed";
069 
070     /** Loading from local file buffer code. */
071     public static final int STATE_CODE_LOADING_FROM_BUFFER = 7;
072 
073     /** Loading from local file buffer description. */
074     public static final String STATE_STRING_LOADING_FROM_BUFFER = "loading from local buffer";
075 
076     /** Loading from local file buffer failed code. */
077     public static final int STATE_CODE_LOADING_FROM_BUFFER_FAILED = 8;
078 
079     /** Loading from local file buffer failed description. */
080     public static final String STATE_STRING_LOADING_FROM_BUFFER_FAILED
081         "loading from local buffer failed";
082 
083     /** Loading into memory code. */
084     public static final int STATE_CODE_LOADING_INTO_MEMORY = 9;
085 
086     /** Loading into memory description. */
087     public static final String STATE_STRING_LOADING_INTO_MEMORY = "loading into memory";
088 
089     /** Loading into memory failed code. */
090     public static final int STATE_CODE_LOADING_INTO_MEMORY_FAILED = 10;
091 
092     /** Loading into memory failed description. */
093     public static final String STATE_STRING_LOADING_INTO_MEMORY_FAILED
094         "loading into memory failed";
095 
096     /** Completely loaded code. */
097     public static final int STATE_CODE_LOADED = 11;
098 
099     /** Completely loaded description. */
100     public static final String STATE_STRING_LOADED = "loaded";
101 
102     /** Completely loaded code. */
103     public static final int STATE_CODE_DELETED = -1;
104 
105     /** Completely loaded description. */
106     public static final String STATE_STRING_DELETED = "deleted";
107 
108 }