Examples of SnmpRevision


Examples of net.percederberg.mibble.snmp.SnmpRevision

     * @param type           the type to print
     * @param indent         the indentation to use on new lines
     */
    private void printType(SnmpModuleIdentity type, String indent) {
        ArrayList     list;
        SnmpRevision  rev;

        os.println("MODULE-IDENTITY");
        os.print("    LAST-UPDATED    ");
        os.println(getQuote(type.getLastUpdated()));
        os.print("    ORGANIZATION    ");
        os.println(getQuote(type.getOrganization()));
        os.println("    CONTACT-INFO");
        printIndent("            ", getQuote(type.getContactInfo()));
        os.println();
        printDescription(type.getDescription());
        list = type.getRevisions();
        for (int i = 0; i < list.size(); i++) {
            rev = (SnmpRevision) list.get(i);
            os.println();
            if (rev.getComment() != null) {
                os.println();
                printComment(rev.getComment(), "    ", true);
            }
            os.print("    REVISION        ");
            printValue(rev.getValue());
            os.println();
            os.println("    DESCRIPTION");
            printIndent("            ", getQuote(rev.getDescription()));
        }
    }
View Full Code Here

Examples of net.percederberg.mibble.snmp.SnmpRevision

     * @throws ParseException if the node analysis discovered errors
     */
    protected Node exitSnmpRevisionPart(Production node)
        throws ParseException {

        SnmpRevision  rev;
        MibValue      value;
        String        desc;

        value = (MibValue) getValue(getChildAt(node, 1), 0);
        desc = getStringValue(getChildAt(node, 3), 0);
        rev = new SnmpRevision(value, desc);
        rev.setComment(MibAnalyzerUtil.getComments(node));
        node.addValue(rev);
        return node;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.