cz.cmc.tcgui.io
Class SchemaImporterXML

java.lang.Object
  extended bycz.cmc.tcgui.io.SchemaImporterXML
All Implemented Interfaces:
SchemaImporter

public class SchemaImporterXML
extends Object
implements SchemaImporter


Field Summary
protected  TCExport exp
           
protected  TCImport imp
           
protected  InputStream in
           
 
Constructor Summary
SchemaImporterXML()
           
 
Method Summary
 void importSchema(InputStream is, TCImport tci, TCExport tce)
          Imports the schema from the given stream.
static void main(String[] args)
           
protected  void parseAttrs(Node n, TCObject tco)
           
protected  Map parseAttrTC(Node n)
           
protected  Map parseAttrView(Node n)
           
protected  TCObject parseCfqd(Node n)
           
protected  TCObject parseClqd(Node n)
           
protected  TCObject parseCls(Node n)
           
protected  void parseCme(Node n, Map m)
           
protected  void parseCont(Node n, TCObject tco)
           
protected  TCObject parseFel(Node n)
           
protected  TCObject parseFil(Node n)
           
protected  Map parseMap(Node n)
           
protected  void parseSme(Node n, Map m)
           
protected  void parseTCObjects(Node n, TCObject container)
           
protected  void parseTcs(Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected InputStream in

imp

protected TCImport imp

exp

protected TCExport exp
Constructor Detail

SchemaImporterXML

public SchemaImporterXML()
Method Detail

importSchema

public void importSchema(InputStream is,
                         TCImport tci,
                         TCExport tce)
                  throws ImportException
Description copied from interface: SchemaImporter
Imports the schema from the given stream.

Specified by:
importSchema in interface SchemaImporter
Parameters:
is - InputStream to import the schema from
tci - TCImport to import the schema to
tce - TCEport to access the schema during import
Throws:
ImportException

parseTcs

protected void parseTcs(Document doc)
                 throws DataFormatException
Throws:
DataFormatException

parseTCObjects

protected void parseTCObjects(Node n,
                              TCObject container)
                       throws DataFormatException
Throws:
DataFormatException

parseCfqd

protected TCObject parseCfqd(Node n)
                      throws DataFormatException
Throws:
DataFormatException

parseClqd

protected TCObject parseClqd(Node n)
                      throws DataFormatException
Throws:
DataFormatException

parseCls

protected TCObject parseCls(Node n)
                     throws DataFormatException
Throws:
DataFormatException

parseFil

protected TCObject parseFil(Node n)
                     throws DataFormatException
Throws:
DataFormatException

parseFel

protected TCObject parseFel(Node n)
                     throws DataFormatException
Throws:
DataFormatException

parseAttrs

protected void parseAttrs(Node n,
                          TCObject tco)
                   throws DataFormatException
Throws:
DataFormatException

parseCont

protected void parseCont(Node n,
                         TCObject tco)
                  throws DataFormatException
Throws:
DataFormatException

parseAttrTC

protected Map parseAttrTC(Node n)
                   throws DataFormatException
Throws:
DataFormatException

parseAttrView

protected Map parseAttrView(Node n)
                     throws DataFormatException
Throws:
DataFormatException

parseMap

protected Map parseMap(Node n)
                throws DataFormatException
Throws:
DataFormatException

parseSme

protected void parseSme(Node n,
                        Map m)
                 throws DataFormatException
Throws:
DataFormatException

parseCme

protected void parseCme(Node n,
                        Map m)
                 throws DataFormatException
Throws:
DataFormatException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception