Package org.exolab.castor.xml.schema
Class SchemaContextImpl
java.lang.Object
org.exolab.castor.xml.schema.SchemaContextImpl
- All Implemented Interfaces:
SchemaContext
Represents an execution context for schema reading/writing activities.
- Since:
- 1.2
- Version:
- $Revision: 7273 $ $Date: 2004-10-05 14:27:10 -0600 (Tue, 05 Oct 2004) $
- Author:
- Werner Guttmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn an XML document parser as specified in the configuration file.To get theResolver
to use in Schema*.Returns a default serializer for producing an XML document.void
setSchemaResolver
(Resolver resolver) To set theResolver
for Schema*.
-
Constructor Details
-
SchemaContextImpl
public SchemaContextImpl()Creates an instance ofSchemaContextImpl
.
-
-
Method Details
-
getSchemaResolver
To get theResolver
to use in Schema*.- Specified by:
getSchemaResolver
in interfaceSchemaContext
- Returns:
- get the
Resolver
to use in Schema* - See Also:
-
getParser
- See Also:
-
setSchemaResolver
To set theResolver
for Schema*.- Specified by:
setSchemaResolver
in interfaceSchemaContext
- See Also:
-
getParser
Return an XML document parser as specified in the configuration file.- Specified by:
getParser
in interfaceSchemaContext
- Returns:
- A suitable XML parser
- See Also:
-
getSerializer
Returns a default serializer for producing an XML document. The caller can specify an alternative output format, may reuse this serializer across several streams, and may serialize both DOM and SAX events. If such control is not required, it is recommended to call one of the other two methods.- Specified by:
getSerializer
in interfaceSchemaContext
- Returns:
- A suitable serializer
- See Also:
-