view software/eXist/mpdl-modules/src/org/exist/xquery/modules/mpdltext/MPDLTextModule.java @ 9:1ec29fdd0db8

neue .lex Dateien f?r Normalisierung / externe Objekte update
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Tue, 22 Feb 2011 16:03:45 +0100
parents 2396a569e446
children
line wrap: on
line source

/*
 *  eXist Open Source Native XML Database: Extension module
 *  Copyright (C) 2008 Josef Willenborg
 *  jwillenborg@mpiwg-berlin.mpg.de
 *  http://www.mpiwg-berlin.mpg.de
 *  
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *  
 *  $Id: TextModule.java $
 */
package org.exist.xquery.modules.mpdltext;

import org.exist.xquery.AbstractInternalModule;
import org.exist.xquery.FunctionDef;

/**
 * @author Josef Willenborg (jwillenborg@mpiwg-berlin.mpg.de)
 */
public class MPDLTextModule extends AbstractInternalModule {
	public final static String NAMESPACE_URI = "http://exist-db.org/xquery/mpdltext";
	public final static String PREFIX = "mpdltext";
	
	private final static FunctionDef[] functions = {
    new FunctionDef(Dictionarize.signature, Dictionarize.class),
    new FunctionDef(NormalizeChars.signature, NormalizeChars.class),
    new FunctionDef(GetDonatusQueryVariants.signature, GetDonatusQueryVariants.class),
    new FunctionDef(GetQueryMorphForms.signature, GetQueryMorphForms.class),
    new FunctionDef(GetQueryRegularizations.signature, GetQueryRegularizations.class),
    new FunctionDef(GetLemma.signature, GetLemma.class),
    new FunctionDef(GetLemmasByFormName.signature, GetLemmasByFormName.class),
    new FunctionDef(GetLemmasByLuceneQuery.signature, GetLemmasByLuceneQuery.class),
    new FunctionDef(GetLemmasStrByFormName.signature, GetLemmasStrByFormName.class),
    new FunctionDef(GetLexEntriesByFormName.signature, GetLexEntriesByFormName.class),
    new FunctionDef(GetLexEntriesByLuceneQuery.signature, GetLexEntriesByLuceneQuery.class),
    new FunctionDef(GetLexEntryKeysByFormName.signature, GetLexEntryKeysByFormName.class),
    new FunctionDef(GetTranscodedText.signature, GetTranscodedText.class),
		new FunctionDef(GetWordsFunction.signature, GetWordsFunction.class),
    new FunctionDef(GetBig5EncodedTerms.signature, GetBig5EncodedTerms.class),
    new FunctionDef(EncodeBig5.signature, EncodeBig5.class),
    new FunctionDef(LuceneQueryParser.signature, LuceneQueryParser.class),
    new FunctionDef(ExternalObject.signature, ExternalObject.class),  
    new FunctionDef(ToCLevelGenerator.signature, ToCLevelGenerator.class)  
	};
	
	public MPDLTextModule() {
		super(functions);
	}

	public String getNamespaceURI() {
		return NAMESPACE_URI;
	}

	public String getDefaultPrefix() {
		return PREFIX;
	}

	public String getDescription() {
		return "A module for text functions";
	}
  
  public String getReleaseVersion() {
    return "1.0";
  }
}