by.belsoft.report.tools.reportdb
Class CommonMethods

java.lang.Object
  |
  +--by.belsoft.report.tools.reportdb.CommonMethods
Direct Known Subclasses:
QueryMethods, ViewMethods

public class CommonMethods
extends java.lang.Object

The class to work with query and view methods

Author:
Ilya Kirillov

Constructor Summary
CommonMethods()
           
 
Method Summary
 BaseElement getStaticElement(org.w3c.dom.Node tmp)
          getStaticElement gets static element
 BaseElement getStaticElements(org.w3c.dom.Node toParse)
          getStaticElements get static elements structure
 java.util.ArrayList getTables(org.w3c.dom.Document doc)
          getTables gets all tableext from document
 BaseTakenUp makeBaseTakenUpObject(BaseTakenUp container, org.w3c.dom.Node what)
          makeBaseTakenUpObject makes object from xml structure
 BaseTakenUp makeBaseTakenUpObjects(BaseTakenUp container, org.w3c.dom.Node what)
          makeBaseTakenUpObjects makes object tree from xml structure
 org.w3c.dom.Element makeBaseTakenUpXML(org.w3c.dom.Document doc, org.w3c.dom.Element elem, BaseTakenUp element)
          makeBaseTakenUpXML makes element from container
 org.w3c.dom.Document updateTable(org.w3c.dom.Document doc, BaseTakenUp table)
          updateTable updates table in xml database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonMethods

public CommonMethods()
Method Detail

updateTable

public org.w3c.dom.Document updateTable(org.w3c.dom.Document doc,
                                        BaseTakenUp table)
updateTable updates table in xml database

Parameters:
doc - Document the document element
table - BaseTakenUp the table object
Returns:
Document the document updated

getTables

public java.util.ArrayList getTables(org.w3c.dom.Document doc)
getTables gets all tableext from document

Parameters:
doc - Document the document element
Returns:
ArrayList the list with tables

makeBaseTakenUpXML

public org.w3c.dom.Element makeBaseTakenUpXML(org.w3c.dom.Document doc,
                                              org.w3c.dom.Element elem,
                                              BaseTakenUp element)
makeBaseTakenUpXML makes element from container

Parameters:
doc - Document the document element
elem - Element the element to make
element - BaseTakenUp the data container
Returns:
Element the result element

makeBaseTakenUpObject

public BaseTakenUp makeBaseTakenUpObject(BaseTakenUp container,
                                         org.w3c.dom.Node what)
makeBaseTakenUpObject makes object from xml structure

Parameters:
container - BaseTakenUp the container to put data
what - Node the node to parse
Returns:
BaseTakenUp the result container

makeBaseTakenUpObjects

public BaseTakenUp makeBaseTakenUpObjects(BaseTakenUp container,
                                          org.w3c.dom.Node what)
makeBaseTakenUpObjects makes object tree from xml structure

Parameters:
container - BaseTakenUp the container to put data
what - Node the node to be parsed
Returns:
BaseTakenUp th result container

getStaticElement

public BaseElement getStaticElement(org.w3c.dom.Node tmp)
getStaticElement gets static element

Parameters:
tmp - Node the node to parse
Returns:
BaseElement the result element

getStaticElements

public BaseElement getStaticElements(org.w3c.dom.Node toParse)
getStaticElements get static elements structure

Parameters:
toParse - Node the node to be parsed
Returns:
BaseElement the result container


Copyright © 2005 BelSoft Inc. All Rights Reserved.