com.ibm.as400.ui.tools
Class RC2XML

java.lang.Object
  extended by com.ibm.as400.ui.tools.RC2XML

public class RC2XML
extends Object


Field Summary
Modifier and Type Field and Description
protected static boolean bInsideGroup
           
protected static boolean bLogged
           
protected static Hashtable htNames
           
protected static Hashtable htUserTags
           
protected static int iIndent
           
protected static int iListIndex
           
protected static PrintWriter lOutput
           
protected static String m_lrbFileName
           
protected static String m_pdmlFileName
           
protected static String m_prbFileName
           
protected static XMLPreprocessorDefinition m_preprocessor
           
protected static String m_rcFileName
           
protected static MutableResourceParser m_resourceParser
           
static ToolsResourceLoader resourceLoader
           
protected static BufferedReader rInput
           
protected static PrintWriter rOutput
           
protected static String sResourceName
           
protected static Vector vList
           
protected static Vector vPanelDefTags
           
protected static PrintWriter xOutput
           
 
Constructor Summary
Constructor and Description
RC2XML()
           
 
Method Summary
Modifier and Type Method and Description
static boolean convert(String sRCfile, String sXMLfile, String sRBfile, String sLRfile, String sPackage, Locale locale)
           
protected static String convertMnemonicString(RCInfo info)
           
protected static void dumpSyntax()
           
static void generateHelp(String sXML)
           
static Locale generateLocale(String s)
           
static String getBaseName(String s)
           
protected static String getBaseName(String s, boolean bRemoveLocale)
           
protected static int getClosingQuoteIndex(String sText, int iFrom)
           
protected static int getCustomType(String s)
           
protected static int getGenericType(String s)
           
protected static String getQuotedString(String sText)
           
static int isAttribute(String sName, String[] sReturn)
           
protected static int isKeyword(String s)
           
static void main(String[] args)
           
protected static String makeQuotedString(String s)
           
protected static void parseBasic(String sComponent, int iType, String sPanel)
           
protected static void parseMenu(String sParent, String sMenuBar)
           
protected static void parseMenuBar(String sParent, String sMenuBar)
           
protected static void parsePanel(String sPanel)
           
protected static void parseRC()
           
protected static void parseStringTable()
           
protected static void preprocessXML(String sXMLfile, Locale loc)
           
static void serialize(String sXML)
           
protected static void setName(RCInfo info, String basename, String panel)
           
protected static void writeAll(String sXMLfile, String sPackage)
           
protected static void writeAttribute(String sName)
           
protected static void writeBasic(RCInfo info, String panelName)
           
protected static void writeComment(Comment e, boolean indent)
           
protected static void writeElement(Element e)
           
protected static void writeIndent()
           
protected static void writeIndent(int iChange)
           
protected static void writeMenu(RCInfo info, boolean isSubmenu, String menubarName)
           
protected static void writeMenuBar(RCInfo info, String sXMLfile)
           
protected static void writePanel(RCInfo info, String sXMLfile)
           
protected static void writeToResource(String sKey, String sValue)
           
protected static boolean writeUserTags(String sName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_preprocessor

protected static XMLPreprocessorDefinition m_preprocessor

m_resourceParser

protected static MutableResourceParser m_resourceParser

rInput

protected static BufferedReader rInput

xOutput

protected static PrintWriter xOutput

rOutput

protected static PrintWriter rOutput

lOutput

protected static PrintWriter lOutput

sResourceName

protected static String sResourceName

vList

protected static Vector vList

iListIndex

protected static int iListIndex

bInsideGroup

protected static boolean bInsideGroup

iIndent

protected static int iIndent

htUserTags

protected static Hashtable htUserTags

vPanelDefTags

protected static Vector vPanelDefTags

htNames

protected static Hashtable htNames

bLogged

protected static boolean bLogged

m_rcFileName

protected static String m_rcFileName

m_pdmlFileName

protected static String m_pdmlFileName

m_lrbFileName

protected static String m_lrbFileName

m_prbFileName

protected static String m_prbFileName

resourceLoader

public static ToolsResourceLoader resourceLoader
Constructor Detail

RC2XML

public RC2XML()
Method Detail

getBaseName

public static String getBaseName(String s)

getBaseName

protected static String getBaseName(String s,
                                    boolean bRemoveLocale)

generateLocale

public static Locale generateLocale(String s)

convert

public static boolean convert(String sRCfile,
                              String sXMLfile,
                              String sRBfile,
                              String sLRfile,
                              String sPackage,
                              Locale locale)
                       throws IOException,
                              FileNotFoundException,
                              ParseException
Throws:
IOException
FileNotFoundException
ParseException

setName

protected static void setName(RCInfo info,
                              String basename,
                              String panel)

parseRC

protected static void parseRC()
                       throws IOException
Throws:
IOException

parsePanel

protected static void parsePanel(String sPanel)
                          throws IOException
Throws:
IOException

getQuotedString

protected static String getQuotedString(String sText)

convertMnemonicString

protected static String convertMnemonicString(RCInfo info)

getClosingQuoteIndex

protected static int getClosingQuoteIndex(String sText,
                                          int iFrom)

parseBasic

protected static void parseBasic(String sComponent,
                                 int iType,
                                 String sPanel)

isKeyword

protected static int isKeyword(String s)

getGenericType

protected static int getGenericType(String s)

getCustomType

protected static int getCustomType(String s)

parseStringTable

protected static void parseStringTable()
                                throws IOException
Throws:
IOException

parseMenuBar

protected static void parseMenuBar(String sParent,
                                   String sMenuBar)
                            throws IOException
Throws:
IOException

parseMenu

protected static void parseMenu(String sParent,
                                String sMenuBar)
                         throws IOException
Throws:
IOException

writeAll

protected static void writeAll(String sXMLfile,
                               String sPackage)

writePanel

protected static void writePanel(RCInfo info,
                                 String sXMLfile)

writeMenuBar

protected static void writeMenuBar(RCInfo info,
                                   String sXMLfile)

writeMenu

protected static void writeMenu(RCInfo info,
                                boolean isSubmenu,
                                String menubarName)

writeBasic

protected static void writeBasic(RCInfo info,
                                 String panelName)

writeAttribute

protected static void writeAttribute(String sName)

isAttribute

public static int isAttribute(String sName,
                              String[] sReturn)

writeUserTags

protected static boolean writeUserTags(String sName)

writeComment

protected static void writeComment(Comment e,
                                   boolean indent)

writeElement

protected static void writeElement(Element e)

writeIndent

protected static void writeIndent()

writeIndent

protected static void writeIndent(int iChange)

writeToResource

protected static void writeToResource(String sKey,
                                      String sValue)

makeQuotedString

protected static String makeQuotedString(String s)

dumpSyntax

protected static void dumpSyntax()

main

public static void main(String[] args)

preprocessXML

protected static void preprocessXML(String sXMLfile,
                                    Locale loc)
                             throws IOException,
                                    ParseException
Throws:
IOException
ParseException

serialize

public static void serialize(String sXML)
                      throws MissingResourceException,
                             ParseException,
                             FileNotFoundException,
                             IOException,
                             PDMLSpecificationException
Throws:
MissingResourceException
ParseException
FileNotFoundException
IOException
PDMLSpecificationException

generateHelp

public static void generateHelp(String sXML)
                         throws MissingResourceException,
                                ParseException,
                                FileNotFoundException,
                                IOException,
                                PDMLSpecificationException,
                                HelpException
Throws:
MissingResourceException
ParseException
FileNotFoundException
IOException
PDMLSpecificationException
HelpException