com.las2witsml
Class MappingReader

java.lang.Object
  |
  +--com.las2witsml.MappingReader

public class MappingReader
extends java.lang.Object

Title: MappingReader.java Description: This class reads the mapping file and creates DOM tree by parsing the mapping document Copyright: Copyright (c) 2006 Company: Satyam Computer Services Ltd.


Method Summary
 org.w3c.dom.Document createDocument(java.lang.String strSection, java.lang.String strMappingFileName)
          Method createDocument This method reads the mapping xml file and creates an XML document
 java.util.Hashtable getMappings(java.lang.String strSection)
          Method getMappings This method returns the mapping from the hash table
 java.util.Hashtable LASWITSMLElements(java.lang.String strSection, java.lang.String strFullPath)
          Method LASWITSMLElements This method reads the mapping xml file and returns a hashtable of LAS and WITSML elements
 void setMappings(java.util.Hashtable htMappedElements, java.lang.String strSection)
          Method setMappings This method sets the LAS-WITSML mappings that are read from the mapping xml file
 void UpdateWITSMLElements(java.lang.String strPath, java.util.Hashtable htTableElements)
          Method UpdateWITSMLElements This method updates the mapping xml file as per the new mappings provided by the user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDocument

public org.w3c.dom.Document createDocument(java.lang.String strSection,
                                           java.lang.String strMappingFileName)
Method createDocument This method reads the mapping xml file and creates an XML document

Parameters:
strSection -
Returns:
Document

LASWITSMLElements

public java.util.Hashtable LASWITSMLElements(java.lang.String strSection,
                                             java.lang.String strFullPath)
Method LASWITSMLElements This method reads the mapping xml file and returns a hashtable of LAS and WITSML elements

Returns:
FullPath of the mapping file

UpdateWITSMLElements

public void UpdateWITSMLElements(java.lang.String strPath,
                                 java.util.Hashtable htTableElements)
Method UpdateWITSMLElements This method updates the mapping xml file as per the new mappings provided by the user

Returns:
hashtable of LAS - WITSML elements

setMappings

public void setMappings(java.util.Hashtable htMappedElements,
                        java.lang.String strSection)
Method setMappings This method sets the LAS-WITSML mappings that are read from the mapping xml file

Returns:
void

getMappings

public java.util.Hashtable getMappings(java.lang.String strSection)
Method getMappings This method returns the mapping from the hash table

Parameters:
strSection -
Returns:
Hashtable