|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IInstantiatorpublic 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 ISchemaReaderaUseBuiltInClassesOnly - 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 IInstantiatortrue 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 ISchemaParseraUrl - (required).aParent - (optional).
XmlExceptionpublic boolean getUseBuiltInClassesOnly()
getUseBuiltInClassesOnly in interface IInstantiatorpublic 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 IInstantiatorpublic IComponent getComponent(IRef aRef)
getComponent in interface IComponentStorepublic IComponent getComponent(IJobRef aJobRef)
getComponent in interface IInstantiator
public void addSchemaDataAddition(IComponent aComponent,
ISchemaDataAdder anAdder)
IInstantiatorSchema 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 IInstantiatoraComponent - (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 | |||||||||