wt.ixb.tuner
Class Tuner

java.lang.Object
  extended bywt.ixb.tuner.Tuner

public class Tuner
extends Object


Field Summary
private  TunerCommandSource commandSource
           
private static IxbElement EL_IGNORE_MASTER
           
private  IxbElement generalMappingRules
           
private  boolean mustTune
           
private  Hashtable newDtdCache
           
private  boolean ruleFileIsXsl
           
static String S_IGNORE
           
static String S_IGNORE_MASTER
           
private  Stylesheet stylesheet
           
private  Templates template
           
static int tunedFileNumber
           
static String XML_ROOT_SETTINGS
           
static String XML_TAG_NEW_INFO
           
private  String xslFileName
           
 
Constructor Summary
Tuner(IxbElement localRules, IxbElement generalRules)
           
Tuner(String importOrExport, IxbElement localRules)
           
Tuner(String importOrExport, String ruleFileName)
           
 
Method Summary
private  IxbElement applyMappingRules(IxbElement oldElem, String path, String tag, String value, IxbDocument newDoc, IxbDocument oldDoc, boolean cDataSection)
           
private  IxbDocument applyXSLRuleToXML(IxbDocument fileXml)
           
private  void copyAttributes(IxbElement res, IxbElement oldElem)
           
private  String getNewTagFromMappingRule(IxbElement oldElem, String path, String tag, String value, IxbDocument newDoc, IxbDocument oldDoc)
           
private static void PP(String s)
           
private  void setTheValue(IxbElement parent, IxbElement oldElem, IxbElement newElem, String stTag)
           
 IxbDocument tuneXMLFile(IxbDocument oldXML)
           
private  IxbElement tuneXMLFile(IxbElement oldElem, String path, String tag, IxbDocument newDoc, IxbDocument oldDoc)
           
private  IxbDocument tuneXMLFileWithXSL(IxbDocument oldXML)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tunedFileNumber

public static int tunedFileNumber

S_IGNORE_MASTER

public static String S_IGNORE_MASTER

S_IGNORE

public static String S_IGNORE

XML_ROOT_SETTINGS

public static final String XML_ROOT_SETTINGS
See Also:
Constant Field Values

XML_TAG_NEW_INFO

public static final String XML_TAG_NEW_INFO
See Also:
Constant Field Values

EL_IGNORE_MASTER

private static IxbElement EL_IGNORE_MASTER

generalMappingRules

private IxbElement generalMappingRules

commandSource

private TunerCommandSource commandSource

stylesheet

private Stylesheet stylesheet

ruleFileIsXsl

private boolean ruleFileIsXsl

xslFileName

private String xslFileName

mustTune

private boolean mustTune

template

private Templates template

newDtdCache

private Hashtable newDtdCache
Constructor Detail

Tuner

public Tuner(IxbElement localRules,
             IxbElement generalRules)
      throws WTException

Tuner

public Tuner(String importOrExport,
             IxbElement localRules)
      throws WTException

Tuner

public Tuner(String importOrExport,
             String ruleFileName)
      throws WTException
Method Detail

tuneXMLFile

public IxbDocument tuneXMLFile(IxbDocument oldXML)
                        throws WTException
Throws:
WTException

tuneXMLFile

private IxbElement tuneXMLFile(IxbElement oldElem,
                               String path,
                               String tag,
                               IxbDocument newDoc,
                               IxbDocument oldDoc)
                        throws WTException
Throws:
WTException

copyAttributes

private void copyAttributes(IxbElement res,
                            IxbElement oldElem)
                     throws WTException
Throws:
WTException

getNewTagFromMappingRule

private String getNewTagFromMappingRule(IxbElement oldElem,
                                        String path,
                                        String tag,
                                        String value,
                                        IxbDocument newDoc,
                                        IxbDocument oldDoc)
                                 throws WTException
Throws:
WTException

applyMappingRules

private IxbElement applyMappingRules(IxbElement oldElem,
                                     String path,
                                     String tag,
                                     String value,
                                     IxbDocument newDoc,
                                     IxbDocument oldDoc,
                                     boolean cDataSection)
                              throws WTException
Throws:
WTException

tuneXMLFileWithXSL

private IxbDocument tuneXMLFileWithXSL(IxbDocument oldXML)
                                throws WTException
Throws:
WTException

applyXSLRuleToXML

private IxbDocument applyXSLRuleToXML(IxbDocument fileXml)
                               throws WTException
Throws:
WTException

setTheValue

private void setTheValue(IxbElement parent,
                         IxbElement oldElem,
                         IxbElement newElem,
                         String stTag)
                  throws WTException
Throws:
WTException

PP

private static void PP(String s)