|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Web.CSV2CORBA
Translate CSV data to CORBA. the CSV data can come from a file or from an sql query.
| Constructor Summary | |
CSV2CORBA(gov.lanl.Utility.ConfigProperties props)
|
|
| Method Summary | |
void |
applyTypes(org.w3c.dom.Node node,
java.util.HashMap types)
Recursive method to add type attributes to a DOM hierarchy, using the given map to indicate the attribute value to use for each Element of a given name. |
org.w3c.dom.Document |
csvRead(java.lang.String[] input,
java.util.HashMap typesMap)
Read in CSV data from String arrays |
org.w3c.dom.Document |
csvRead(java.lang.String input,
java.util.HashMap typesMap)
Read in the CSV file to a DOM Document |
org.w3c.dom.Document |
getDocument()
get the XML Document being processed |
void |
IDTransform(java.lang.String key,
org.w3c.dom.Document doc)
Append the date to the key field which identifies the record this then is used to determine the creation date of the record. |
void |
init(java.lang.String input)
initialize the object |
static void |
main(java.lang.String[] args)
Main program to transform from CSV to CORBA |
void |
postTransform(org.w3c.dom.Document document,
java.lang.String code)
Transform the document with Java code instead of just XSL This finds the target code and adds a category to it. |
void |
preTransform(java.lang.String id,
java.lang.String code)
Transform the document with Java code instead of just XSL This is used to transform the object before converting to the COAS model |
void |
process()
Set up the class for running from a thread. |
void |
processCOAS(java.lang.String coasProps,
java.lang.String coasXSL)
Process the COAS XSL transform |
java.util.HashMap |
readTypes(java.lang.String typesFilename)
initialize types definitions. |
void |
setDocument(org.w3c.dom.Document doc)
set the Document to be processed |
org.w3c.dom.Document |
tableRead(java.util.List input,
java.util.HashMap typesMap)
Read in CSV data from String arrays |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CSV2CORBA(gov.lanl.Utility.ConfigProperties props)
| Method Detail |
public void init(java.lang.String input)
throws java.text.ParseException
java.text.ParseExceptionpublic static void main(java.lang.String[] args)
args - public void process()
public void setDocument(org.w3c.dom.Document doc)
doc - public org.w3c.dom.Document getDocument()
public org.w3c.dom.Document csvRead(java.lang.String input,
java.util.HashMap typesMap)
input - typesMap -
public org.w3c.dom.Document csvRead(java.lang.String[] input,
java.util.HashMap typesMap)
input - typesMap -
public org.w3c.dom.Document tableRead(java.util.List input,
java.util.HashMap typesMap)
input - typesMap -
public void processCOAS(java.lang.String coasProps,
java.lang.String coasXSL)
throws java.io.IOException
coasProps - coasXSL -
java.io.IOException
public void applyTypes(org.w3c.dom.Node node,
java.util.HashMap types)
node - Base node to alter.types - Map of element names to type attributes to add.public java.util.HashMap readTypes(java.lang.String typesFilename)
public void preTransform(java.lang.String id,
java.lang.String code)
id - is the id to be encryptedcode - is the field to be used to determine the category
public void IDTransform(java.lang.String key,
org.w3c.dom.Document doc)
doc -
public void postTransform(org.w3c.dom.Document document,
java.lang.String code)
document - object to be transformedcode - is the object to be modified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||