DictionaryDocument.Dictionary dictionary = dictionaryDoc.getDictionary();
// get type collection settings
TypeCollectionDocument.TypeCollection typeCollection = dictionary
.getTypeCollection();
DictionaryMetaData dictMetaData = typeCollection.getDictionaryMetaData();
boolean caseNormalization = true;
boolean multiWordEntries = true;
String multiWordSeparator = null;
if (dictMetaData != null) {
caseNormalization = dictMetaData.getCaseNormalization();
multiWordEntries = dictMetaData.getMultiWordEntries();
multiWordSeparator = dictMetaData.getMultiWordSeparator();
}
// get the dictionary language and the type name
String language = typeCollection.getLanguageId();
String typeName = typeCollection.getTypeDescription().getTypeName();
// set dictionary properties