|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.DBTransform
public class DBTransform
A Class that transforms XML documents utitlizing XSL style sheets
| Constructor Summary | |
|---|---|
DBTransform()
construct a DBTransform instance. |
|
| Method Summary | |
|---|---|
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.io.StringReader docContent,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qformat,
java.io.PrintWriter pw,
java.util.Hashtable param,
java.lang.String sessionid)
Method to do transform for a string reader |
void |
transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qformat,
java.io.PrintWriter pw,
java.util.Hashtable param)
|
void |
transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qformat,
java.io.PrintWriter pw,
java.util.Hashtable param,
java.lang.String sessionid)
Transform an XML document using the stylesheet reference from the db |
void |
transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qFormat,
java.io.StringWriter pw)
|
void |
transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qFormat,
java.io.StringWriter pw,
java.lang.String sessionid)
Transform an XML document to StringWriter using the stylesheet reference from the db |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBTransform()
throws java.io.IOException,
java.sql.SQLException,
java.lang.ClassNotFoundException
conn - the database connection from which to lookup the public ids
java.io.IOException
java.sql.SQLException
java.lang.ClassNotFoundException| Method Detail |
|---|
public void transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qformat,
java.io.PrintWriter pw,
java.util.Hashtable param)
transformXMLDocument(String doc, String sourceType,
String targetType, String qformat, PrintWriter pw,
String sessionid)
public void transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qFormat,
java.io.StringWriter pw)
transformXMLDocument(String doc, String sourceType,
String targetType, String qFormat, StringWriter pw
String sessionid)
public void transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qformat,
java.io.PrintWriter pw,
java.util.Hashtable 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 transformation
public void transformXMLDocument(java.lang.String doc,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qFormat,
java.io.StringWriter pw,
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 StringWriter to which output will be stored
public void transformXMLDocument(java.io.StringReader docContent,
java.lang.String sourceType,
java.lang.String targetType,
java.lang.String qformat,
java.io.PrintWriter pw,
java.util.Hashtable 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 transformation
public 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 from
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||