|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.bootstrep.JdomMethods.ManageJdom
public class ManageJdom
The ManageJdom class contains methods to access and parse an XML file.
This class is responsible for
| Field Summary | |
|---|---|
(package private) DbMethods |
DB
An instance on DbMethods Class. |
(package private) Logger |
Log
An instance of Logger Class |
(package private) TheElement |
mainElem
An instance of the TheElement bean. |
(package private) WorkDictionary |
WD
An instance of WorkDictionary Class. |
| Constructor Summary | |
|---|---|
ManageJdom()
Creates a new instance of ManageJdom |
|
| Method Summary | |
|---|---|
private java.lang.String[] |
extractFromBitMap(java.lang.String[][] lObj,
java.lang.Integer pos)
This method returns an array with values contained at column position pos. |
void |
findAttribute(java.lang.String[][] lObj,
java.lang.String[][] fatlObj,
PropertyBean PB,
MainBean MB,
MessageBean mesBn,
ListBean LB,
org.jdom.Element elem,
org.jdom.Element theParent,
org.jdom.Element theGranParent,
java.lang.String theFile,
java.lang.String theRelFile,
java.lang.Integer deep,
java.lang.Integer bitMap)
This method extracts attributes along with their values from XIF-XML elements. Depending on bitMap value, element attributes are concatenate with father and/or granfather attributes. |
org.jdom.Element |
getRoot(PropertyBean PB,
MainBean MB,
MessageBean mesBn,
ListBean LB,
org.jdom.Document doc)
This method retrieves the root element of XML input file. |
private java.lang.Boolean |
isNotPresent(java.util.ArrayList list,
java.lang.String supp)
This method checks whether the string supp is already in the list list |
void |
loadNode(PropertyBean PB,
MainBean MB,
MessageBean mesBn,
ListBean LB,
TableBean tabBn,
org.jdom.Element elem,
java.lang.Integer deep)
This method loads the node and parse it. |
org.jdom.Document |
parseDocument(PropertyBean PB,
MainBean MB,
MessageBean mesBn,
ListBean LB,
java.lang.Boolean validate)
This method builds a JDOM Document from the input XML file. This method uses the JDOM libraries to parse the input document and create a valid JDOM document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Logger Log
DbMethods DB
WorkDictionary WD
TheElement mainElem
| Constructor Detail |
|---|
public ManageJdom()
| Method Detail |
|---|
public org.jdom.Document parseDocument(PropertyBean PB,
MainBean MB,
MessageBean mesBn,
ListBean LB,
java.lang.Boolean validate)
PB - PropertyBeanMB - mainBeanLB - ListBeanmesBn - MessageBeanvalidate - A boolean: true to validate
public org.jdom.Element getRoot(PropertyBean PB,
MainBean MB,
MessageBean mesBn,
ListBean LB,
org.jdom.Document doc)
PB - PropertyBeanMB - MainBeanmesBn - MessageBeanLB - ListBeandoc - The JDOM document
private java.lang.Boolean isNotPresent(java.util.ArrayList list,
java.lang.String supp)
list - The checked listsupp - The input string
public void loadNode(PropertyBean PB,
MainBean MB,
MessageBean mesBn,
ListBean LB,
TableBean tabBn,
org.jdom.Element elem,
java.lang.Integer deep)
PB - PropertyBeanMB - MainBeanmesBn - MessageBeanLB - ListBeantabBn - TableBeanelem - The elementdeep - The indentation of the input element
public void findAttribute(java.lang.String[][] lObj,
java.lang.String[][] fatlObj,
PropertyBean PB,
MainBean MB,
MessageBean mesBn,
ListBean LB,
org.jdom.Element elem,
org.jdom.Element theParent,
org.jdom.Element theGranParent,
java.lang.String theFile,
java.lang.String theRelFile,
java.lang.Integer deep,
java.lang.Integer bitMap)
lObj - The object which shapes the element. This parameter is linked to records in the
WORK_DITMAP_ID_TABLE. If bitMap is 0, this object contains data about the granparent of the element.fatlObj - The object which shapes the father element. This parameter is linked to records in the
WORK_DITMAP_ID_TABLEPB - The PropertyBeanMB - The MainBeanmesBn - The MessageBeanLB - The ListBeanelem - The input elementtheParent - The parent of input elementtheGranParent - The granparent of input elementtheFile - Input file containing data for staging tables. File name is equal to element nametheRelFile - Input file containing data for correndondence staging tables.
File name is equal to table namedeep - The indentation of element elembitMap - The bitMap of element elem
private java.lang.String[] extractFromBitMap(java.lang.String[][] lObj,
java.lang.Integer pos)
lObj - The input objectpos - The column, the method will extract from lObj
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||