XBinder C# Runtime Library  2.8
Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
com.objsys.xbinder.runtime.XBComplexType Class Reference

XBComplexType is a base for all generated complex type codecs. More...

Public Member Functions

void addNamespace (string nsUri, string prefix)
 Add a namespace that should be declared when an element of this type is encoded. More...
 
void decodeNamespaces (XmlTextReader reader)
 Decode the namespaces on the current start event into this object. More...
 
void encodeNamespaces (XBXmlEncoder encoder)
 
void printNamespaces (TextWriter writer, int level)
 

Static Protected Member Functions

static XBComplexType createObject (XBQualifiedName type)
 

Static Protected Attributes

static Object [] particleInfo = null
 

Detailed Description

XBComplexType is a base for all generated complex type codecs.

Normally, a subclass would raise an exception if no content was found (to encode/decode) and the content model for the type did not allow for that

See also
setIgnoreContent) provides for

disabling ignoring content during encoding/decoding (encode/decode attributes only).

Member Function Documentation

◆ addNamespace()

void com.objsys.xbinder.runtime.XBComplexType.addNamespace ( string  nsUri,
string  prefix 
)

Add a namespace that should be declared when an element of this type is encoded.

Parameters
nsUriThe URI for the namespace.
prefixThe prefix for the namespace.

◆ decodeNamespaces()

void com.objsys.xbinder.runtime.XBComplexType.decodeNamespaces ( XmlTextReader  reader)

Decode the namespaces on the current start event into this object.

Parameters
readerInstance of XmlTextReader.