|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.commons.schema.SchemaFactory
public abstract class SchemaFactory
This abstract class defines a factory API that enables applications to obtain a SchemaFactory capable of producing new Definitions, new SchemaReaders, and new SchemaWriters. Some ideas used here have been shamelessly copied from the wonderful JAXP and Xerces work.
| Constructor Summary | |
|---|---|
SchemaFactory()
|
|
| Method Summary | |
|---|---|
static Schema |
getDefaultSchema()
Get the default schema |
static SchemaFactory |
newInstance()
Get a new instance of a SchemaFactory. |
abstract Schema |
newSchema()
Create a new instance of a Definition. |
abstract SchemaReader |
newSchemaReader()
Create a new instance of a SchemaReader. |
abstract SchemaReader |
newSchemaReader(java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
Create a new instance of a SchemaReader. |
abstract SchemaWriter |
newSchemaWriter()
Create a new instance of a SchemaWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaFactory()
| Method Detail |
|---|
public static SchemaFactory newInstance()
throws SchemaException
The steps in order are:
Once an instance of a SchemaFactory is obtained, invoke newDefinition(), newSchemaReader(), or newSchemaWriter(), to create the desired instances.
SchemaExceptionpublic abstract Schema newSchema()
public abstract SchemaReader newSchemaReader()
public abstract SchemaReader newSchemaReader(java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
public abstract SchemaWriter newSchemaWriter()
public static Schema getDefaultSchema()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||