org.eclipse.datatools.enablement.oda.xml.util
Class RelationInformation

java.lang.Object
  extended by org.eclipse.datatools.enablement.oda.xml.util.RelationInformation

public class RelationInformation
extends java.lang.Object

This class is used to dealing with the strings which are parsed as arguments to create an XML data source connection.The structure of string must follow the given rule: TableName1#:#[TableRootPath]#:#{columnName1;Type;RelativeXPath},{columnName2;Type;RelativeXPath}... #-#TableName2#:#[TableRootPath]#:#{columnName1;Type;RelativeXpath}.....


Constructor Summary
RelationInformation(MappedTables mt, boolean useNamespace)
           
RelationInformation(java.lang.String relationString)
           
 
Method Summary
 boolean containsNamespace()
           
 java.util.HashMap getTableColumnFilter(java.lang.String tableName, java.lang.String columnName)
           
 java.lang.String[] getTableColumnNames(java.lang.String tableName)
          Return the array of column names of certain table.
 java.lang.String getTableColumnType(java.lang.String tableName, java.lang.String columnName)
          Return the type of a column in certain table.
 java.util.HashMap getTableFilter(java.lang.String tableName)
          Return the table filter.
 MappingPathElementTree getTableMappingPathElementTree(java.lang.String tableName)
          Return the mapping path element tree of certain table.
 java.util.Iterator getTableNames()
           
 java.lang.String[] getTableNestedXMLColumnNames(java.lang.String tableName)
          Return the array of nested column names of certain table.
 java.lang.String getTableOriginalColumnPath(java.lang.String tableName, java.lang.String columnName)
          Return the path of a column in certain table.
 java.lang.String getTableOriginalRootPath(java.lang.String tableName)
          Return the table original root path.
 java.lang.String getTableRootPath(java.lang.String tableName)
          Return the table root path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationInformation

public RelationInformation(java.lang.String relationString)
                    throws OdaException
Parameters:
relationString -
Throws:
OdaException

RelationInformation

public RelationInformation(MappedTables mt,
                           boolean useNamespace)
                    throws OdaException
Throws:
OdaException
Method Detail

containsNamespace

public boolean containsNamespace()

getTableOriginalColumnPath

public java.lang.String getTableOriginalColumnPath(java.lang.String tableName,
                                                   java.lang.String columnName)
Return the path of a column in certain table.

Parameters:
tableName -
columnName -
Returns:

getTableColumnType

public java.lang.String getTableColumnType(java.lang.String tableName,
                                           java.lang.String columnName)
Return the type of a column in certain table.

Parameters:
tableName -
columnName -
Returns:

getTableColumnNames

public java.lang.String[] getTableColumnNames(java.lang.String tableName)
Return the array of column names of certain table.

Parameters:
tableName -
Returns:

getTableNestedXMLColumnNames

public java.lang.String[] getTableNestedXMLColumnNames(java.lang.String tableName)
Return the array of nested column names of certain table.

Parameters:
tableName -
Returns:

getTableMappingPathElementTree

public MappingPathElementTree getTableMappingPathElementTree(java.lang.String tableName)
Return the mapping path element tree of certain table.

Parameters:
tableName -
Returns:

getTableRootPath

public java.lang.String getTableRootPath(java.lang.String tableName)
Return the table root path.

Parameters:
tableName -
Returns:

getTableOriginalRootPath

public java.lang.String getTableOriginalRootPath(java.lang.String tableName)
Return the table original root path.

Parameters:
tableName -
Returns:

getTableFilter

public java.util.HashMap getTableFilter(java.lang.String tableName)
Return the table filter.

Parameters:
tableName -
Returns:

getTableNames

public java.util.Iterator getTableNames()
Returns:

getTableColumnFilter

public java.util.HashMap getTableColumnFilter(java.lang.String tableName,
                                              java.lang.String columnName)
Parameters:
tableName -
columnName -
Returns: