/** Generates the code for the setter. */ protected void addSetter( Context ctxt, MibNode node, String description, String syntax, String var, StringBuffer buff) { if (!isRowStatus(ctxt, var)) super.addSetter(ctxt, node, description, syntax, var, buff); else if (MibGenProperties.isDeprecatedEnabled()) super.addSetter(ctxt, node, description, syntax, var, buff); else // We add a comment to say that no checker is generated // for row status addRowStatusSetter(ctxt, node, description, syntax, var, buff); }
/** Generates the code for the checker. */ protected void addChecker( Context ctxt, MibNode node, String description, String syntax, String var, StringBuffer buff) { if (!isRowStatus(ctxt, var)) super.addChecker(ctxt, node, description, syntax, var, buff); else if (MibGenProperties.isDeprecatedEnabled()) // Generate deprecated checker for RowStatus. // Only for JDMK 5.0 compatible MIBs. addRowStatusChecker(ctxt, node, description, syntax, var, buff); }