XBinder C# Runtime Library  2.7
Public Member Functions | Properties | List of all members
com.objsys.xbinder.runtime.XBContext Class Reference

Context for encoding/decoding. More...

Public Member Functions

virtual void clearSchemaLocationAttrs ()
 Clear the schemaLocation and noNamespaceSchemaLocation attributes. The document codecs will invoked this prior to decoding a document. More...
 
virtual void decodeSchemaLocationAttrs (XmlTextReader reader)
 Decode the schemaLocation and noNamespaceSchemaLocation attributes on the current start element event. More...
 
virtual void encodeSchemaLocationAttrs (XBXmlEncoder encoder)
 Encode the schemaLocation and noNamespaceSchemaLocation attributes, if they have values. More...
 

Properties

virtual System.String NoNamespaceSchemaLocation [get, set]
 
virtual IList< string > SchemaLocation [get]
 

Detailed Description

Context for encoding/decoding.

Each encoding/decoding thread uses its own instance of the XBContext class. XBContext provides for handling of xsi attributes schemaLocation and noNamespaceSchemaLocation.

schemaLocation: During decoding, all xsi:schemaLocation attributes found are added to this property. At the start of each document decoding, the list should be cleared (the generated code typically does this). During encoding, whatever values are in the list are simply encoded. XBinder does not use or validate this information.

noNamespaceSchemaLocation: During decoding, the last occurrence of this attribute will be in effect. During encoding, the current value is simply encoded. XBinder does not use or validate schema location information.

Member Function Documentation

◆ clearSchemaLocationAttrs()

virtual void com.objsys.xbinder.runtime.XBContext.clearSchemaLocationAttrs ( )
virtual

Clear the schemaLocation and noNamespaceSchemaLocation attributes. The document codecs will invoked this prior to decoding a document.

◆ decodeSchemaLocationAttrs()

virtual void com.objsys.xbinder.runtime.XBContext.decodeSchemaLocationAttrs ( XmlTextReader  reader)
virtual

Decode the schemaLocation and noNamespaceSchemaLocation attributes on the current start element event.

◆ encodeSchemaLocationAttrs()

virtual void com.objsys.xbinder.runtime.XBContext.encodeSchemaLocationAttrs ( XBXmlEncoder  encoder)
virtual

Encode the schemaLocation and noNamespaceSchemaLocation attributes, if they have values.

Parameters
encoder