How do I know the type of a MibSymbol?
In general, you use the instanceof operator. That is, first you must check if the MibSymbol is a MibTypeSymbol or a MibValueSymbol by using instanceof. Once established which of the two, you can get the MibType through the getType() method in either of the two classes. The exact MibType can then be established in the following ways: • Using instanceof to determine subclass – With the instanceof operator the correct class the type object can be determined (see the MibType API for a list of all subclasses). • Checking the type tag – Each type has one or more associated MibTypeTags. These are unique for most of the standard ASN.1 types and can be checked with the MibType.hasTag() method. If you wish to find the SNMP macro type of a symbol, use the first of the above methods as the SNMP macro types generally have no type tags. On the other side, to determine the SYNTAX of an OBJECT-TYPE, you should use type tags as they make it possible to distinguish between different INTEGER types like T