org.jbind.xml.schema.reader
Interface IInstantiator

All Superinterfaces:
ISchemaParser, ISchemaReader
All Known Implementing Classes:
Instantiator

public interface IInstantiator
extends ISchemaReader


Method Summary
 void add(IJob aJob)
           
 void addCreatedComponent(IComponent aComponent, IConstraintViolations aViolations)
           
 void addSchemaDataAddition(IComponent aComponent, ISchemaDataAdder anAdder)
          Registers that some schema data has to be added to a component.
 void addValidatedComponent(IComponent aComponent, IConstraintViolations aViolations)
           
 IComponent getComponent(IJobRef aJobRef)
           
 ISchema getSchema()
          Gets the schema that is instantiated by this instantiator.
 boolean getUseBuiltInClassesOnly()
           
 boolean hasBeenParsed(java.net.URL aUrl)
          Checks if a schema with the specified url has already been parsed by this instantiator.
 IInstantiator newInstantiator()
           
 
Methods inherited from interface org.jbind.xml.schema.instantiation.ISchemaReader
readSchema
 
Methods inherited from interface org.jbind.xml.schema.instantiation.ISchemaParser
parseSchema
 

Method Detail

addCreatedComponent

public void addCreatedComponent(IComponent aComponent,
                                IConstraintViolations aViolations)

addValidatedComponent

public void addValidatedComponent(IComponent aComponent,
                                  IConstraintViolations aViolations)

addSchemaDataAddition

public void addSchemaDataAddition(IComponent aComponent,
                                  ISchemaDataAdder anAdder)
Registers that some schema data has to be added to a component.

Schema data contains information that must be already converted into corresponding data objects. This conversion can not be done before the components received their bindings and their data creation capability. The instantiator adds the schema data after these steps are done.

Parameters:
aComponent - (required). The component that receives data from the schema.
anAdder - (required). The source of the schema data.

getComponent

public IComponent getComponent(IJobRef aJobRef)

getSchema

public ISchema getSchema()
Gets the schema that is instantiated by this instantiator.

Returns:
(required).

add

public void add(IJob aJob)

newInstantiator

public IInstantiator newInstantiator()

getUseBuiltInClassesOnly

public boolean getUseBuiltInClassesOnly()

hasBeenParsed

public boolean hasBeenParsed(java.net.URL aUrl)
                      throws XmlException
Checks if a schema with the specified url has already been parsed by this instantiator. This method is used avoid multiple includes / redefines of the same schema document.

Returns:
Returns true iff a schema with the specified URL has already been parsed.
Throws:
XmlException