org.enhydra.zeus.binder
Class DTDBinder

java.lang.Object
  |
  +--org.enhydra.zeus.binder.BaseBinder
        |
        +--org.enhydra.zeus.binder.DTDBinder
All Implemented Interfaces:
Binder

public class DTDBinder
extends BaseBinder

DTDBinder implements the Binder interface and allows generation of Zeus Bindings from a DTD.

Author:
Brett McLaughlin, Steve Witten, Maciej Zawadzki, Sean Ogle

Field Summary
protected  com.wutka.dtd.DTD dtd
          The DTD being processed
protected  java.util.Hashtable elements
          The elements by name
 
Fields inherited from class org.enhydra.zeus.binder.BaseBinder
isCollapsingSimpleElements, isIgnoringIDAttributes, source
 
Constructor Summary
DTDBinder(DTDSource source)
           This constructor takes in a DTDSource to read an XML Schema from and allow generation of the Bindings from it.
 
Method Summary
 java.util.List getBindings()
           This is integral portion of the Binder.
 
Methods inherited from class org.enhydra.zeus.binder.BaseBinder
isCollapsingSimpleElements, isIgnoringIDAttributes, setIsCollapsingSimpleElements, setIsIgnoringIDAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dtd

protected com.wutka.dtd.DTD dtd
The DTD being processed

elements

protected java.util.Hashtable elements
The elements by name
Constructor Detail

DTDBinder

public DTDBinder(DTDSource source)

This constructor takes in a DTDSource to read an XML Schema from and allow generation of the Bindings from it.

Parameters:
source - Source to read input from.
Method Detail

getBindings

public java.util.List getBindings()
                           throws java.io.IOException

This is integral portion of the Binder. It is responsible for returning a Zeus representation of the set of constraints that this binding represents, resulting from the supplied DTD.

Overrides:
getBindings in class BaseBinder
Returns:
List - the resultant Bindings from conversion of constraints.
Throws:
IOException - when errors in reading input occur.


Copyright © 2001 Enhydra. All Rights Reserved.