Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.k_int.IR.Syntaxes.Conversion
Class XSLConverter  view XSLConverter download XSLConverter.java

java.lang.Object
  extended bycom.k_int.IR.Syntaxes.Conversion.XSLConverter

public class XSLConverter
extends java.lang.Object

Convert a document in one schema into another schema using an XSLT transformation


Field Summary
private static LoggingContext cat
           
private static java.lang.String file_sep
           
private  java.util.Hashtable known_transformers
          Hashtable of stylesheet file names to Templates objects
private static XSLConverter me
           
private  java.util.Hashtable source_schemas
          A Hashtable of Hashtables that points from a source schema to schemas that we can get to by applying known transformations
private  java.lang.String template_source
           
private  javax.xml.transform.TransformerFactory tFactory
           
 
Constructor Summary
XSLConverter()
           
 
Method Summary
 org.w3c.dom.Document convert(org.w3c.dom.Document source, java.lang.String source_schema, java.lang.String target_schema)
          convert(Document, Source Schema, Target Schema).
 org.w3c.dom.Document convert(org.w3c.dom.Document source, java.lang.String source_schema, java.lang.String target_schema, java.util.Hashtable trans_properties)
          convert(Document, Source Schema, Target Schema, properties).
 void convert(org.w3c.dom.Document source, java.lang.String source_schema, java.lang.String target_schema, javax.xml.transform.Result result, java.util.Hashtable trans_properties)
           
 void convert(org.w3c.dom.Document source, java.lang.String source_schema, java.lang.String target_schema, java.io.Writer out)
           
 void convert(org.w3c.dom.Document source, java.lang.String source_schema, java.lang.String target_schema, java.io.Writer out, java.util.Hashtable trans_properties)
           
static XSLConverter getConvertor(java.util.Properties p)
           
 javax.naming.Reference getReference()
           
 java.util.Vector getTemplateFor(java.lang.String source, java.lang.String target)
           
 void registerMapping(java.lang.String from, java.lang.String to, java.lang.String sheet)
           
 void setTemplateSource(java.lang.String directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

me

private static XSLConverter me

cat

private static LoggingContext cat

template_source

private java.lang.String template_source

file_sep

private static java.lang.String file_sep

source_schemas

private java.util.Hashtable source_schemas
A Hashtable of Hashtables that points from a source schema to schemas that we can get to by applying known transformations


known_transformers

private java.util.Hashtable known_transformers
Hashtable of stylesheet file names to Templates objects


tFactory

private javax.xml.transform.TransformerFactory tFactory
Constructor Detail

XSLConverter

public XSLConverter()
Method Detail

getConvertor

public static XSLConverter getConvertor(java.util.Properties p)

setTemplateSource

public void setTemplateSource(java.lang.String directory)

registerMapping

public void registerMapping(java.lang.String from,
                            java.lang.String to,
                            java.lang.String sheet)

convert

public org.w3c.dom.Document convert(org.w3c.dom.Document source,
                                    java.lang.String source_schema,
                                    java.lang.String target_schema)
convert(Document, Source Schema, Target Schema). One day soon, we will replace this with a function that uses NameSpace to determine the source record schema. API still seems to be a little up in the air for that at the moment though.


convert

public org.w3c.dom.Document convert(org.w3c.dom.Document source,
                                    java.lang.String source_schema,
                                    java.lang.String target_schema,
                                    java.util.Hashtable trans_properties)
convert(Document, Source Schema, Target Schema, properties). One day soon, we will replace this with a function that uses NameSpace to determine the source record schema. API still seems to be a little up in the air for that at the moment though.


convert

public void convert(org.w3c.dom.Document source,
                    java.lang.String source_schema,
                    java.lang.String target_schema,
                    java.io.Writer out)

convert

public void convert(org.w3c.dom.Document source,
                    java.lang.String source_schema,
                    java.lang.String target_schema,
                    java.io.Writer out,
                    java.util.Hashtable trans_properties)

convert

public void convert(org.w3c.dom.Document source,
                    java.lang.String source_schema,
                    java.lang.String target_schema,
                    javax.xml.transform.Result result,
                    java.util.Hashtable trans_properties)

getTemplateFor

public java.util.Vector getTemplateFor(java.lang.String source,
                                       java.lang.String target)

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException