Classes | Public Member Functions | Static Public Member Functions

org.exolab.castor.builder.binding.BindingLoader Class Reference

List of all members.

Classes

class  BindingResolver

Public Member Functions

 BindingLoader ()
void loadBinding (String url) throws BindingException
void loadBinding (InputSource source) throws BindingException
ExtendedBinding getBinding ()
void setBaseURL (String url)

Static Public Member Functions

static ExtendedBinding createBinding (InputSource source) throws BindingException
static ExtendedBinding createBinding (String fileName) throws BindingException

Detailed Description

This class is responsible for loading a binding document into an in-memory representation that is meant to be used by the SourceGenerator.

Todo:
: Implement the enumeration handling
Author:
Arnaud Blandin
Version:
Revision:
1.2
Date:
2003/03/03 09:57:15

Constructor & Destructor Documentation

org.exolab.castor.builder.binding.BindingLoader.BindingLoader (  ) 

Member Function Documentation

static ExtendedBinding org.exolab.castor.builder.binding.BindingLoader.createBinding ( InputSource  source  )  throws BindingException [static]

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 be loaded.
Returns:
a binding that contains the different component bindings to be used in the source generator.
Exceptions:
BindingException thrown when the given InputSource doesn't refer to a valid Binding document.

References org.exolab.castor.builder.binding.BindingLoader.BindingLoader(), org.exolab.castor.builder.binding.BindingLoader.getBinding(), and org.exolab.castor.builder.binding.BindingLoader.loadBinding().

static ExtendedBinding org.exolab.castor.builder.binding.BindingLoader.createBinding ( String  fileName  )  throws BindingException [static]
ExtendedBinding org.exolab.castor.builder.binding.BindingLoader.getBinding (  ) 

Returns the binding loaded by the BindingLoader

Returns:
the binding loaded by this BindingLoader. This will return null if no call to loadBinding has been previously made.

Referenced by org.exolab.castor.builder.binding.BindingLoader.createBinding().

void org.exolab.castor.builder.binding.BindingLoader.loadBinding ( InputSource  source  )  throws BindingException

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:
reader The binding document to load.
Exceptions:
BindingException thrown when an error occured during the unmarshalling.

References org.exolab.castor.builder.binding.Binding.addAttributeBinding(), org.exolab.castor.builder.binding.Binding.addComplexTypeBinding(), org.exolab.castor.builder.binding.Binding.addElementBinding(), org.exolab.castor.builder.binding.Binding.addGroupBinding(), org.exolab.castor.builder.binding.Binding.addPackage(), org.exolab.castor.builder.binding.Binding.enumerateAttributeBinding(), org.exolab.castor.builder.binding.Binding.enumerateComplexTypeBinding(), org.exolab.castor.builder.binding.Binding.enumerateElementBinding(), org.exolab.castor.builder.binding.Binding.enumerateGroupBinding(), org.exolab.castor.builder.binding.Binding.enumerateInclude(), org.exolab.castor.builder.binding.Binding.enumeratePackage(), org.exolab.castor.builder.binding.Binding.getDefaultBindingType(), org.exolab.castor.builder.binding.Binding.getNamingXML(), org.exolab.castor.builder.binding.IncludeType.getURI(), org.exolab.castor.builder.binding.BindingLoader.loadBinding(), org.exolab.castor.builder.binding.Binding.setDefaultBindingType(), org.exolab.castor.builder.binding.Binding.setNamingXML(), org.exolab.castor.xml.Unmarshaller.setValidation(), and org.exolab.castor.xml.Unmarshaller.unmarshal().

void org.exolab.castor.builder.binding.BindingLoader.loadBinding ( String  url  )  throws BindingException
void org.exolab.castor.builder.binding.BindingLoader.setBaseURL ( String  url  ) 

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

References org.exolab.castor.builder.binding.BindingLoader.BindingResolver.setBaseURL().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties