org.enhydra.zeus.binder
Class SchemaBinder

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

public class SchemaBinder
extends BaseBinder

SchemaBinder implements the Binder interface and allows generation of Zeus Bindings from an XML Schema.

Version:
1.0
Author:
Brett McLaughlin

Fields inherited from class org.enhydra.zeus.binder.BaseBinder
isCollapsingSimpleElements, isIgnoringIDAttributes, source
 
Constructor Summary
SchemaBinder(Source source)
           This constructor takes in a Source 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.
 java.lang.String getSchemaNamespaceURI()
           This returns the current namespace URI being used for XML Schema.
 void setSchemaNamespaceURI(java.lang.String schemaNamespaceURI)
           This will set the URI to use for XML Schema.
 
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
 

Constructor Detail

SchemaBinder

public SchemaBinder(Source source)

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

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

getSchemaNamespaceURI

public java.lang.String getSchemaNamespaceURI()

This returns the current namespace URI being used for XML Schema.

Returns:
String - XML Schema namespace URI being used.

setSchemaNamespaceURI

public void setSchemaNamespaceURI(java.lang.String schemaNamespaceURI)

This will set the URI to use for XML Schema. This is useful for documents that have an older schema namespace URI. Note that this does not imply that the SchemaBinder can deal with older schema features and syntax; this is purely for incorrect or old namespace URIs.

Parameters:
schemaNamespaceURI - the URI to use for XML Schema

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 XML Schema.

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.