|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbind.xml.schema.reader.Instantiator
Constructor Summary | |
Instantiator(ISchemaParser aParser,
IDataImplFactory aDataFactory)
|
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)
|
IComponent |
getComponent(IRef aRef)
Gets a validated component. |
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()
|
ISchemaElement |
parseSchema(java.net.URL aUrl,
ISchemaElement aParent)
Parses a schema doucment. |
ISchema |
readSchema(java.net.URL aUrl,
boolean aUseBuiltInClassesOnly,
java.lang.String aPackage)
Instantiate a schema. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Instantiator(ISchemaParser aParser, IDataImplFactory aDataFactory)
Method Detail |
public IInstantiator newInstantiator()
newInstantiator
in interface IInstantiator
public ISchema getSchema()
IInstantiator
getSchema
in interface IInstantiator
public ISchema readSchema(java.net.URL aUrl, boolean aUseBuiltInClassesOnly, java.lang.String aPackage) throws XmlException
ISchemaReader
readSchema
in interface ISchemaReader
aUseBuiltInClassesOnly
- Determines if only built-in classes are used
or if generated classes are also used.aPackage
- (optional) The package of the generated classes. This
parameter overloads the package that can be specified in the schema.
XmlException
public boolean hasBeenParsed(java.net.URL aUrl) throws XmlException
IInstantiator
hasBeenParsed
in interface IInstantiator
true
iff a schema with the specified URL has
already been parsed.
XmlException
public ISchemaElement parseSchema(java.net.URL aUrl, ISchemaElement aParent) throws XmlException
ISchemaParser
parseSchema
in interface ISchemaParser
aUrl
- (required).aParent
- (optional).
XmlException
public boolean getUseBuiltInClassesOnly()
getUseBuiltInClassesOnly
in interface IInstantiator
public void add(IJob aJob)
add
in interface IInstantiator
public void addCreatedComponent(IComponent aComponent, IConstraintViolations aViolations)
addCreatedComponent
in interface IInstantiator
public void addValidatedComponent(IComponent aComponent, IConstraintViolations aViolations)
addValidatedComponent
in interface IInstantiator
public IComponent getComponent(IRef aRef)
getComponent
in interface IComponentStore
public IComponent getComponent(IJobRef aJobRef)
getComponent
in interface IInstantiator
public void addSchemaDataAddition(IComponent aComponent, ISchemaDataAdder anAdder)
IInstantiator
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.
addSchemaDataAddition
in interface IInstantiator
aComponent
- (required). The component that receives data from
the schema.anAdder
- (required). The source of the schema data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |