| |
|
| java.lang.Object org.exolab.castor.builder.binding.BindingLoader
BindingLoader | final public class BindingLoader (Code) | | This class is responsible for loading a binding document into an in-memory
representation that is meant to be used by the SourceGenerator.
author: Arnaud Blandin version: $Revision: 6936 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $ |
BindingLoader | public BindingLoader()(Code) | | No-arg constructor.
|
createBinding | public static ExtendedBinding createBinding(InputSource source) throws BindingException(Code) | | Factory method that returns a binding given an InputSource. The
InputSource identifies a Binding Document meant to be loaded.
Parameters: source - the InputSource identifying the binding document to beloaded. a binding that contains the different component bindings to beused in the source generator. throws: BindingException - thrown when the given InputSource doesn't referto a valid Binding document. |
getBinding | public ExtendedBinding getBinding()(Code) | | Returns the binding loaded by the BindingLoader.
the binding loaded by this BindingLoader. This will return nullif no call to loadBinding has been previously made. |
loadBinding | public void loadBinding(String url) throws BindingException(Code) | | Loads the binding file from the
URL given, and populates
the
ExtendedBinding instance from the values given.
Parameters: url - The URL for the binding file to process. throws: BindingException - If the binding file cannnot be processed properly. |
loadBinding | public void loadBinding(InputSource source) throws BindingException(Code) | | Loads a Binding Document. This method will load the binding document into
a binding object and load all the included bindings along the way into a
single collection.
Parameters: source - The binding document to load. throws: BindingException - thrown when an error occured during the unmarshalling. |
setBaseURL | public void setBaseURL(String url)(Code) | | Sets the base URL for the binding and related files. If the base URL is
known, files can be included using relative names. Any URL can be passed,
if the URL can serve as a base URL it will be used.
Parameters: url - The base URL |
|
|
|