Asn1NamedEventHandler Interface Reference
Public Member Functions | |
void | Characters (System.String svalue, short typeCode) |
void | EndElement (System.String name, int index) |
void | StartElement (System.String name, int index) |
Detailed Description
This interface defines the methods that must be implemented to define a SAX-like event handler. These methods are invoked from within the generated C# decode logic when significant events occur during the parsing of an ASN.1 message.
Member Function Documentation
void Characters | ( | System.String | svalue, | |
short | typeCode | |||
) |
The Characters callback method is invoked when content (primitive data) is encountered. A stringified representation of the parsed value is returned.
- Parameters:
-
svalue Stringified representation of the parsed value. The representation will be in ASN.1 value format. typeCode Identifier specifying the type of the parsed data variable. The enumerated list of values that might appear here is provided in the the Asn1Type class (see the documentation on this class for a full list of the names).
- See also:
- <seealso cref=Asn1Type The type codes are member of Asn1Type class
Implemented in Asn1TraceHandler.
void EndElement | ( | System.String | name, | |
int | index | |||
) |
The EndElement callback method is invoked when the end of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is detected.
- Parameters:
-
name Name of the parsed element. index Index of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others.
Implemented in Asn1TraceHandler.
void StartElement | ( | System.String | name, | |
int | index | |||
) |
The StartElement callback method is invoked when the start of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is encountered.
- Parameters:
-
name Name of the parsed element. index Index of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others.
Implemented in Asn1TraceHandler.