|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.binding.BindingLoader
public final class 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
EntityResolver specific to resolving entities related to the Castor XML code generator binding file. |
Constructor Summary | |
---|---|
BindingLoader()
No-arg constructor. |
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)
Factory method for unmarshalling an ExtendedBinding instance from the
binding file as identified by the given file name. |
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)
Loads the binding file from the URL given, and populates
the ExtendedBinding instance from the values given. |
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
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |