org.exolab.castor.xml.schema
Class SchemaContextImpl

java.lang.Object
  extended by org.exolab.castor.xml.schema.SchemaContextImpl
All Implemented Interfaces:
SchemaContext

public class SchemaContextImpl
extends java.lang.Object
implements 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
SchemaContextImpl()
          Creates an instance of SchemaContextImpl.
 
Method Summary
 org.xml.sax.Parser getParser()
          Return an XML document parser as specified in the configuration file.
 org.xml.sax.Parser getParser(java.lang.String features)
          
 Resolver getSchemaResolver()
          To get the Resolver to use in Schema*.
 Serializer getSerializer()
          Returns a default serializer for producing an XML document.
 void setSchemaResolver(Resolver resolver)
          To set the Resolver for Schema*.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaContextImpl

public SchemaContextImpl()
Creates an instance of SchemaContextImpl.

Method Detail

getSchemaResolver

public Resolver getSchemaResolver()
To get the Resolver to use in Schema*.

Specified by:
getSchemaResolver in interface SchemaContext
Returns:
get the Resolver to use in Schema*
See Also:
SchemaContext.getSchemaResolver()

getParser

public org.xml.sax.Parser getParser(java.lang.String features)

See Also:
InternalContext.getParser(java.lang.String)

setSchemaResolver

public void setSchemaResolver(Resolver resolver)
To set the Resolver for Schema*.

Specified by:
setSchemaResolver in interface SchemaContext
See Also:
SchemaContext.setSchemaResolver(org.exolab.castor.xml.schema.Resolver)

getParser

public org.xml.sax.Parser getParser()
Return an XML document parser as specified in the configuration file.

Specified by:
getParser in interface SchemaContext
Returns:
A suitable XML parser
See Also:
SchemaContext.getParser()

getSerializer

public Serializer 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 interface SchemaContext
Returns:
A suitable serializer
See Also:
InternalContext.getSerializer()


Copyright © 2011. All Rights Reserved.