org.exolab.castor.builder.binding
public class BindingLoader extends Object
Version: $Revision: 6302 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
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: source The binding document to load.
Throws: BindingException thrown when an error occured during the unmarshalling.
Parameters: url The base URL