ASN1C C# Runtime Library  7.8
Public Member Functions | Properties | List of all members
Asn1XmlEncoder Interface Reference
Inheritance diagram for Asn1XmlEncoder:
Asn1XmlXerEncoder Asn1XmlEncodeBuffer Asn1XmlOutputStream

Public Member Functions

void EncodeAttr (System.String qname, System.String data)
 
void EncodeDoubleValue (double valueName, System.String elemName, System.String nsPrefix)
 
void EncodeEmptyElement (System.String elemName, System.String nsPrefix, bool terminate)
 
void EncodeEndElement (System.String elemName, System.String nsPrefix)
 
void EncodeNamedValue (System.String valueName, System.String elemName, System.String nsPrefix)
 
void EncodeStartElement (System.String elemName, System.String nsPrefix, bool terminate)
 
void EncodeXSIAttrs ()
 
void SetXSIAttrs (Asn1XmlXSIAttrs value)
 
- Public Member Functions inherited from Asn1XmlXerEncoder
void Copy (byte data)
 
void Copy (byte[] data)
 
void Copy (byte[] data, int off, int len)
 
void Copy (System.String data)
 
void DecrLevel ()
 
void EncodeBinStrValue (byte[] bits, int nbits)
 
void EncodeByte (byte data)
 
void EncodeData (System.String data)
 
void EncodeEndDocument ()
 
void EncodeHexStrValue (byte[] data)
 
void EncodeNamedValueElement (System.String elemName)
 
void EncodeStartDocument ()
 
void IncrLevel ()
 
void Indent ()
 
bool IsCanonical ()
 

Properties

Asn1XmlEncodeHelper Helper [get]
 
int State [get, set]
 
- Properties inherited from Asn1XmlXerEncoder
Asn1Context Context [get]
 

Detailed Description

This is a base interface for encoding of ASN.1 messages as specified in the XML as specified in the w3c standard. It is implemented by both Asn1XmlEncodeBuffer and Asn1XmlOutputStream.

Member Function Documentation

◆ EncodeAttr()

void EncodeAttr ( System.String  qname,
System.String  data 
)

This method encodes an XML attribute value.

Parameters
qnameAttribute qualified name.
valueAttribute value in string form.

Implemented in Asn1XmlOutputStream, and Asn1XmlEncodeBuffer.

◆ EncodeDoubleValue()

void EncodeDoubleValue ( double  valueName,
System.String  elemName,
System.String  nsPrefix 
)

This method encodes an XML REAL (double) value (with start and end tags). The start tag will contain the attribute name and value.

Parameters
valueNameThe name of value.
elemNameThe name of element. If null, then start and end
nsPrefixThe namespace prefix of element.
Exceptions
Asn1ExceptionThrown, if operation is failed.

Implemented in Asn1XmlOutputStream, and Asn1XmlEncodeBuffer.

◆ EncodeEmptyElement()

void EncodeEmptyElement ( System.String  elemName,
System.String  nsPrefix,
bool  terminate 
)

This method encodes an XML empty element tag. element name tag will also contain the attribute name and value

Parameters
elemNameThe name of element.
nsPrefixThe namespace prefix of element.
Exceptions
Asn1ExceptionThrown, if operation is failed.

Implemented in Asn1XmlOutputStream, and Asn1XmlEncodeBuffer.

Referenced by Asn1BitString.DecodeXER(), Asn1Null.Encode(), Asn1Enumerated.Encode(), Asn1Boolean.Encode(), Asn1OctetString.Encode(), Asn1Real.Encode(), and Asn1BitString.Encode().

◆ EncodeEndElement()

void EncodeEndElement ( System.String  elemName,
System.String  nsPrefix 
)

◆ EncodeNamedValue()

void EncodeNamedValue ( System.String  valueName,
System.String  elemName,
System.String  nsPrefix 
)

This method encodes an XML named value (with start and end tags). The start tag will contain the attribute name and value.

Parameters
valueNameThe name of value.
elemNameThe name of element.
nsPrefixThe namespace prefix of element.
Exceptions
Asn1ExceptionThrown, if operation is failed.

Implemented in Asn1XmlOutputStream, and Asn1XmlEncodeBuffer.

Referenced by Asn1Boolean.DecodeXER(), Asn1Enumerated.Encode(), and Asn1Boolean.Encode().

◆ EncodeStartElement()

void EncodeStartElement ( System.String  elemName,
System.String  nsPrefix,
bool  terminate 
)

◆ EncodeXSIAttrs()

void EncodeXSIAttrs ( )

This method encodes XSI attributes.

Implemented in Asn1XmlOutputStream, and Asn1XmlEncodeBuffer.

◆ SetXSIAttrs()

void SetXSIAttrs ( Asn1XmlXSIAttrs  value)

This method sets the XSI attributes object to the given value.

Parameters
valueXSI attributes object

Implemented in Asn1XmlOutputStream, and Asn1XmlEncodeBuffer.

Property Documentation

◆ Helper

Asn1XmlEncodeHelper Helper
get

This returns the encode helper object.

◆ State

int State
getset

This method gets and sets the state of the buffer.

Value: Buffer Stat