JFCML - JFC/Swing
XML Markup Language

com.metasolutions.jfcml
Class JFCMLWindowFactory

java.lang.Object
  extended by com.metasolutions.jfcml.JFCMLWindowFactory
All Implemented Interfaces:
Serializable

public class JFCMLWindowFactory
extends Object
implements Serializable

Transforms a JFCML document into the final window.

Version:
0.9, 8-20-2004
Author:
Shawn Curry
See Also:
PackageRegistry, TagHandler, SAXParser, Serialized Form

Field Summary
protected  SAXParser saxParser
           
protected  TagHandler tagHandler
           
 
Constructor Summary
JFCMLWindowFactory()
          Create a JFCMLWindowFactory that uses the default configuration.
JFCMLWindowFactory(JFCMLConfiguration config)
          Create a JFCMLWindowFactory the uses the specified configuration.
JFCMLWindowFactory(String configName)
          Create a JFCMLWindowFactory that uses the specified key to locate a Configuration in the PackageRegistry.
JFCMLWindowFactory(TagHandler handler, SAXParser parser)
          Create a JFCMLWindowFactory that uses the specified TagHandler and SAXParser.
JFCMLWindowFactory(WindowContext context)
          Create a JFCMLWindowFactory that uses the default configuration and the specified WindowContext.
 
Method Summary
 void build(File f, Container target)
           
 void build(InputSource is, Container target)
           
 void build(InputStream in, Container target)
           
 void build(Reader r, Container target)
           
 void build(String id, InputSource is, Container target)
           
 void build(URL url, Container target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tagHandler

protected TagHandler tagHandler

saxParser

protected SAXParser saxParser
Constructor Detail

JFCMLWindowFactory

public JFCMLWindowFactory()
Create a JFCMLWindowFactory that uses the default configuration.


JFCMLWindowFactory

public JFCMLWindowFactory(WindowContext context)
Create a JFCMLWindowFactory that uses the default configuration and the specified WindowContext. This constructor is used primarily by the 'Include' element.

Parameters:
context - the WindowContext to use

JFCMLWindowFactory

public JFCMLWindowFactory(String configName)
Create a JFCMLWindowFactory that uses the specified key to locate a Configuration in the PackageRegistry.

Parameters:
configName - the JFCMLConfiguration's PackageRegistry key

JFCMLWindowFactory

public JFCMLWindowFactory(JFCMLConfiguration config)
Create a JFCMLWindowFactory the uses the specified configuration.

Parameters:
config - the JFCMLConfiguration to use.

JFCMLWindowFactory

public JFCMLWindowFactory(TagHandler handler,
                          SAXParser parser)
Create a JFCMLWindowFactory that uses the specified TagHandler and SAXParser.

Parameters:
handler - the TagHandler to use.
parser - the SAXParser to use.
Method Detail

build

public void build(String id,
                  InputSource is,
                  Container target)

build

public void build(InputSource is,
                  Container target)

build

public void build(URL url,
                  Container target)
           throws IOException
Throws:
IOException

build

public void build(File f,
                  Container target)
           throws FileNotFoundException
Throws:
FileNotFoundException

build

public void build(InputStream in,
                  Container target)

build

public void build(Reader r,
                  Container target)

SourceForge.net
java.net

Copyright 2004-2005 Shawn Curry, http://jfcml.sourceforge.net
Licensed under the Academic Free License version 2.1