public final class BindingLoader
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
(package private) class |
BindingLoader.BindingResolver |
EntityResolver specific to resolving entities related to the Castor XML
code generator binding file.
|
Constructor | Description |
---|---|
BindingLoader() |
No-arg constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static ExtendedBinding |
createBinding(java.lang.String fileName) |
Factory method for unmarshalling an
ExtendedBinding instance from the
binding file as identified by the given file name. |
static ExtendedBinding |
createBinding(org.xml.sax.InputSource source) |
Factory method that returns a binding given an InputSource.
|
ExtendedBinding |
getBinding() |
Returns the binding loaded by the BindingLoader.
|
void |
loadBinding(java.lang.String url) |
Loads the binding file from the
URL given, and populates
the ExtendedBinding instance from the values given. |
void |
loadBinding(org.xml.sax.InputSource source) |
Loads a Binding Document.
|
void |
setBaseURL(java.lang.String url) |
Sets the base URL for the binding and related files.
|
public void loadBinding(java.lang.String url) throws BindingException
URL
given, and populates
the ExtendedBinding
instance from the values given.url
- The URL for the binding file to process.BindingException
- If the binding file cannnot be processed properly.public void loadBinding(org.xml.sax.InputSource source) throws BindingException
source
- The binding document to load.BindingException
- thrown when an error occurred during the unmarshalling.public ExtendedBinding getBinding()
public void setBaseURL(java.lang.String url)
url
- The base URLpublic static ExtendedBinding createBinding(org.xml.sax.InputSource source) throws BindingException
source
- the InputSource identifying the binding document to be
loaded.BindingException
- thrown when the given InputSource doesn't refer
to a valid Binding document.public static ExtendedBinding createBinding(java.lang.String fileName) throws BindingException
ExtendedBinding
instance from the
binding file as identified by the given file name.fileName
- Binding file name.ExtendedBinding
instance populated from the given binding file (name).BindingException
- If the binding file cannot be processed properly.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com