|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.builder.binding.BindingLoader
This class is responsible for loading a binding document into an in-memory representation that is meant to be used by the SourceGenerator.
| Nested Class Summary | |
|---|---|
(package private) class |
BindingLoader.BindingResolver
|
| Constructor Summary | |
|---|---|
BindingLoader()
|
|
| Method Summary | |
|---|---|
static ExtendedBinding |
createBinding(org.xml.sax.InputSource source)
Factory method that returns a binding given an InputSource. |
static ExtendedBinding |
createBinding(java.lang.String fileName)
|
ExtendedBinding |
getBinding()
Returns the binding loaded by the BindingLoader |
void |
loadBinding(org.xml.sax.InputSource source)
Loads a Binding Document. |
void |
loadBinding(java.lang.String url)
|
void |
setBaseURL(java.lang.String url)
Sets the base URL for the binding and related files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BindingLoader()
| Method Detail |
public void loadBinding(java.lang.String url)
throws BindingException
BindingException
public void loadBinding(org.xml.sax.InputSource source)
throws BindingException
BindingException - thrown when an error occured during the unmarshalling.public ExtendedBinding getBinding()
public void setBaseURL(java.lang.String url)
url - The base URL
public 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
BindingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||