Asn1XmlEncoder Interface Reference
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) |
Properties | |
| Asn1XmlEncodeHelper | Helper [get] |
| int | State [get, set] |
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
| void EncodeAttr | ( | System.String | qname, | |
| System.String | data | |||
| ) |
This method encodes an XML attribute value.
- Parameters:
-
qname Attribute qualified name. value Attribute value in string form.
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
| 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:
-
valueName The name of value. elemName The name of element. If null, then start and end nsPrefix The namespace prefix of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
| 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:
-
elemName The name of element. nsPrefix The namespace prefix of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
| void EncodeEndElement | ( | System.String | elemName, | |
| System.String | nsPrefix | |||
| ) |
This method encodes an XML end element tag.
- Parameters:
-
elemName The name of element. nsPrefix The namespace prefix of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
| 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:
-
valueName The name of value. elemName The name of element. nsPrefix The namespace prefix of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
| void EncodeStartElement | ( | System.String | elemName, | |
| System.String | nsPrefix, | |||
| bool | terminate | |||
| ) |
This method encodes an XML start element and attribute tag. The start tag will contain the attribute name and value.
- Parameters:
-
elemName The name of element. nsPrefix The namespace prefix of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
| void EncodeXSIAttrs | ( | ) |
This method encodes XSI attributes.
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
| void SetXSIAttrs | ( | Asn1XmlXSIAttrs | value | ) |
This method sets the XSI attributes object to the given value.
- Parameters:
-
value XSI attributes object
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
Property Documentation
Asn1XmlEncodeHelper Helper [get] |
This returns the encode helper object.
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
int State [get, set] |
This method gets and sets the state of the buffer.
Value: Buffer Stat
Implemented in Asn1XmlEncodeBuffer, and Asn1XmlOutputStream.
