[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Mibble-users] A question about table
From: |
Per Cederberg |
Subject: |
RE: [Mibble-users] A question about table |
Date: |
Sat, 28 Feb 2004 00:15:43 +0100 |
On Fri, 2004-02-27 at 09:38, Rajneesh Watsh wrote:
> Hi Wshang,
>
> You can write a member function in the MibNode class
> Boolean isTableColumn() {
> // get the parent mib node
> // getName() of the this node
> // if name.indexOf("Entry") - the parent of table column is an
> tableEntry node
> // then return true;
> // else return false;
> }
>
> Though the above algorithm should work for all MIBs which follow the
> standard MIB conventions (where a table node should have "Table" as a
> suffix) its not guaranteed to work for non-conventional mibs.
>
> Maybe Per can throw some light on how MibbleParser can provide such an
> information.
Well, I think it would be better to use the symbol OID to
check if the grandparent (i.e. oid.getParent().getParent())
symbol is of the SEQUENCE OF type. (Or was it the parent?
I never seem to remember...)
/Per