public class DBTransform
extends java.lang.Object
| Constructor and Description |
|---|
DBTransform()
construct a DBTransform instance.
|
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.NodeList |
getPathContent(java.io.File f,
java.lang.String path)
gets the content of a tag in a given xml file with the given path
|
java.lang.String |
getStyleSystemId(java.lang.String qformat,
java.lang.String sourcetype,
java.lang.String targettype)
Lookup a stylesheet reference from the db catalog
|
static void |
main(java.lang.String[] args)
the main routine used to test the transform utility.
|
void |
transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qformat,
java.io.Writer w,
java.util.Hashtable<java.lang.String,java.lang.String[]> param,
java.lang.String sessionid)
Transform an XML document using the stylesheet reference from the db
|
public DBTransform()
throws java.io.IOException,
java.sql.SQLException,
java.lang.ClassNotFoundException,
edu.ucsb.nceas.utilities.PropertyNotFoundException
conn - the database connection from which to lookup the public idsjava.io.IOExceptionjava.sql.SQLExceptionjava.lang.ClassNotFoundExceptionedu.ucsb.nceas.utilities.PropertyNotFoundExceptionpublic void transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qformat,
java.io.Writer w,
java.util.Hashtable<java.lang.String,java.lang.String[]> param,
java.lang.String sessionid)
doc - the document to be transformedsourcetype - the document type of the sourcetargettype - the target document typeqformat - the name of the style set to usepw - the PrintWriter to which output is printedparams - some parameters for eml2 transformationpublic static org.w3c.dom.NodeList getPathContent(java.io.File f,
java.lang.String path)
f - the file to parsepath - the path to get the content frompublic java.lang.String getStyleSystemId(java.lang.String qformat,
java.lang.String sourcetype,
java.lang.String targettype)
qformat - the named style-set formatsourcetype - the document type of the sourcetargettype - the document type of the targetpublic static void main(java.lang.String[] args)
Copyright © 2017 Regents of the University of California. All Rights Reserved.