📄 dictionaryproperties.java.svn-base
字号:
package com.gisinfo.Dictionary;
import com.gisinfo.utility.Utility;
import java.util.Properties;
import java.io.InputStream;
import java.io.IOException;
/**
* Author: Jimmy lin
* Date: 2005-3-8
* Time: 19:09:51
*/
/**
* This class create a DictionaryStructure by parsing dictionary.properties file .
*/
public class DictionaryProperties {
static public Properties properties = null;
static String[] invisibleValue = new String[0];
static String databaseName =null;
static {
initProperties();
}
public static void initProperties(){
InputStream is = DictionaryStructure.class .getResourceAsStream("/dictionary.properties");
properties = new Properties();
try {
properties.load(is);
invisibleValue = Utility.tokenizerString(properties.getProperty("inVisible",""),"|");
databaseName = properties.getProperty("dbConnectionName");
System.out.print("Dictionary structure properties=====\n"+properties+"\n");
} catch (IOException e) {
e.printStackTrace();
}
}
public static String getDatabaseName() {
return databaseName;
}
public static String[] getInvisibleValues(){
return invisibleValue;
}
public static DictionaryStructure createDictionaryStructure(){
DictionaryStructure ds = new DictionaryStructure();
ds.setDictionaryName(properties.getProperty("DictionaryName") );
ds.setDbOwner(properties.getProperty("DBOwerner"));
ds.setDbTableName(properties.getProperty("DBTableName"));
ds.setDbAliasTable(properties.getProperty("DBAliasTable"));
ds.setDbFieldName(properties.getProperty("DBFieldName"));
ds.setDbAliasField(properties.getProperty("DBAliasField"));
ds.setDbFieldType(properties.getProperty("DBFieldType"));
ds.setDbLength(properties.getProperty("DBLength"));
ds.setDbDisplayOrder(properties.getProperty("DBDisplayOrder"));
ds.setDbPrecision(properties.getProperty("DBPrecision"));
ds.setDbKeyType(properties.getProperty("DBKeyType"));
ds.setDbCharacter(properties.getProperty("DBCharacter"));
ds.setDbDescription(properties.getProperty("DBDescription"));
ds.setDbVisible(properties.getProperty("DBVisible"));
return ds;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -