* null if none was found
*
* @since 2.7
*/
public static SnmpTextualConvention findReference(MibType type) {
MibTypeSymbol sym;
if (type instanceof SnmpObjectType) {
type = ((SnmpObjectType) type).getSyntax();
}
if (type instanceof SnmpTextualConvention) {
return (SnmpTextualConvention) type;
}
sym = type.getReferenceSymbol();
return (sym == null) ? null : findReference(sym.getType());
}