de.unidu.is.retrieval.hyrex
Class HyREXSchema

java.lang.Object
  extended byde.unidu.is.retrieval.Schema
      extended byde.unidu.is.retrieval.hyrex.HyREXSchema

public class HyREXSchema
extends Schema

A schema, created from a HyREX DDL file.

Since:
2004-01-03
Version:
$Revision: 1.15 $, $Date: 2005/03/14 17:33:14 $
Author:
Henrik Nottelmann

Field Summary
protected  org.w3c.dom.Document ddl
          DDL as XML document.
 
Fields inherited from class de.unidu.is.retrieval.Schema
rootElement, schemaName, useXPathForQuery
 
Constructor Summary
HyREXSchema(org.w3c.dom.Document schema)
          Creates a new schema from a DDL document.
HyREXSchema(java.io.File ddlFile)
          Creates a new schema from a DDL document.
HyREXSchema(java.lang.String schemaName, org.w3c.dom.Document schema)
          Creates a new schema from a DDL document.
HyREXSchema(java.lang.String schemaName, java.io.File ddlFile)
          Creates a new schema from a DDL document.
 
Method Summary
 void addDefaultOperators()
          Adds default operators.
static java.lang.String convertDatatypeName(java.lang.String datatypeName)
          Converts the datatype name to the PIRE notions.
static java.lang.String convertOperatorName(java.lang.String operator)
          Converts the operator name to the PIRE notions.
 java.lang.String getBaseName()
          Returns the base name from the DDL.
 java.lang.String getClassName()
          Returns the base name from the DDL.
 org.w3c.dom.Document getDDL()
          Returns the DDL document.
static PropertyMap getDefaultOperators()
          Returns the default operators.
 java.lang.String getFilterRegEx()
          Returns the regex used for filtering files in the directory.
 java.util.List getIndexDirs()
          Returns a list containing the indexing directories.
 void setDDL(org.w3c.dom.Document ddl)
          Sets the DDL document.
 
Methods inherited from class de.unidu.is.retrieval.Schema
addAlias, addAliases, clearAliases, convPath, extractValues, getAlias, getAliases, getAliasesForXPath, getElement, getHierarchicalView, getPath, getRootElement, getSchemaName, getXPath, getXPaths, getXPathsForAlias, setRootElement, setSchemaName, setUseXPathForQuery, unifyPathForCondition, usesXPathForQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ddl

protected org.w3c.dom.Document ddl
DDL as XML document.

Constructor Detail

HyREXSchema

public HyREXSchema(java.io.File ddlFile)
Creates a new schema from a DDL document.

Parameters:
ddlFile - file with DDL document

HyREXSchema

public HyREXSchema(java.lang.String schemaName,
                   java.io.File ddlFile)
Creates a new schema from a DDL document.

Parameters:
schemaName - schema name
ddlFile - file with DDL document

HyREXSchema

public HyREXSchema(org.w3c.dom.Document schema)
Creates a new schema from a DDL document.

Parameters:
schema - schema DDL document

HyREXSchema

public HyREXSchema(java.lang.String schemaName,
                   org.w3c.dom.Document schema)
Creates a new schema from a DDL document.

Parameters:
schemaName - schema name
schema - schema DDL document
Method Detail

getDDL

public org.w3c.dom.Document getDDL()
Returns the DDL document.

Returns:
DDL document

setDDL

public void setDDL(org.w3c.dom.Document ddl)
Sets the DDL document.

Parameters:
ddl - DDL document

getFilterRegEx

public java.lang.String getFilterRegEx()
Returns the regex used for filtering files in the directory.

Returns:
regex used for filtering

getIndexDirs

public java.util.List getIndexDirs()
Returns a list containing the indexing directories.

Returns:
list containing File objects.

getBaseName

public java.lang.String getBaseName()
Returns the base name from the DDL.

Returns:
base name

getClassName

public java.lang.String getClassName()
Returns the base name from the DDL.

Returns:
base name

addDefaultOperators

public void addDefaultOperators()
Adds default operators.


convertDatatypeName

public static java.lang.String convertDatatypeName(java.lang.String datatypeName)
Converts the datatype name to the PIRE notions.

Parameters:
datatypeName - name of the datatype
Returns:
converted datatype name

convertOperatorName

public static java.lang.String convertOperatorName(java.lang.String operator)
Converts the operator name to the PIRE notions.

Parameters:
operator - name of the operator
Returns:
converted operator name

getDefaultOperators

public static PropertyMap getDefaultOperators()
Returns the default operators.

Returns:
property map (with multiple occurrences per key)