org.exolab.castor.builder.binding
public class BindingLoader extends Object
Version: $Revision: 1.2 $ $Date: 2003/03/03 09:57:15 $
UNKNOWN: Implement the enumeration handling
| Nested Class Summary | |
|---|---|
| class | BindingLoader.BindingResolver |
| Constructor Summary | |
|---|---|
| BindingLoader() | |
| Method Summary | |
|---|---|
| static ExtendedBinding | createBinding(InputSource source)
Factory method that returns a binding given an InputSource. |
| static ExtendedBinding | createBinding(String fileName) |
| ExtendedBinding | getBinding()
Returns the binding loaded by the BindingLoader
|
| void | loadBinding(String url) |
| void | loadBinding(InputSource source)
Loads a Binding Document. |
| void | setBaseURL(String url)
Sets the base URL for the binding and related files. |
Parameters: source the InputSource identifying the binding document to be loaded.
Returns: a binding that contains the different component bindings to be used in the source generator.
Throws: BindingException thrown when the given InputSource doesn't refer to a valid Binding document.
Returns: the binding loaded by this BindingLoader. This will return null if no call to loadBinding has been previously made.
Parameters: reader The binding document to load.
Throws: BindingException thrown when an error occured during the unmarshalling.
Parameters: url The base URL