/** * Copyright Text */ package org.snmp4j.agent.tutorial; //--AgentGen BEGIN=_BEGIN //--AgentGen END import org.snmp4j.smi.*; import org.snmp4j.mp.SnmpConstants; import org.snmp4j.agent.*; import org.snmp4j.agent.mo.*; import org.snmp4j.agent.mo.snmp.*; import org.snmp4j.agent.mo.snmp.smi.*; import org.snmp4j.agent.request.*; import org.snmp4j.log.LogFactory; import org.snmp4j.log.LogAdapter; import org.snmp4j.agent.mo.snmp.tc.*; //--AgentGen BEGIN=_IMPORT //--AgentGen END public class Snmp4jAgentTutorialMib //--AgentGen BEGIN=_EXTENDS //--AgentGen END implements MOGroup //--AgentGen BEGIN=_IMPLEMENTS //--AgentGen END { private static final LogAdapter LOGGER = LogFactory.getLogger(Snmp4jAgentTutorialMib.class); //--AgentGen BEGIN=_STATIC //--AgentGen END // Factory private MOFactory moFactory = DefaultMOFactory.getInstance(); // Constants /** * OID of this MIB module for usage which can be * used for its identification. */ public static final OID oidSnmp4jAgentTutorialMib = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5 }); // Identities // Scalars public static final OID oidSnmp4jAgentTutorialDisplayStr = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,1,1,0 }); public static final OID oidSnmp4jAgentTutorialDateAndTime = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,1,2,0 }); public static final OID oidSnmp4jAgentTutorialActionEnum = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,1,3,0 }); public static final OID oidSnmp4jAgentTutorialInteger = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,1,4,0 }); public static final OID oidSnmp4jAgentTutorialFileTreeIURootPath = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,1,1,0 }); public static final OID oidSnmp4jAgentTutorialFileTreeFURootPath = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,2,1,0 }); public static final OID oidSnmp4jAgentTutorialFileTreeDURootPath = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,3,1,0 }); public static final OID oidSnmp4jAgentTutorialFileTreeEURootPath = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,4,1,0 }); public static final OID oidSnmp4jAgentTutorialFileTreeBURootPath = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,2,1,1,0 }); // Tables // Notifications public static final OID oidSnmp4jAgentTutorialTimeEvent = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,2,1 }); public static final OID oidTrapVarSnmp4jAgentTutorialDateAndTime = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,1,2 }); // Enumerations public static final class Snmp4jAgentTutorialActionEnumEnum { public static final int idle = 1; public static final int resetSysUpTime = 2; } // TextualConventions private static final String TC_MODULE_SNMP4J_AGENT_TUTORIAL_MIB = "SNMP4J-AGENT-TUTORIAL-MIB"; private static final String TC_MODULE_SNMPV2_TC = "SNMPv2-TC"; private static final String TC_DATEANDTIME = "DateAndTime"; private static final String TC_SNMP4JAGENTTUTORIALFILESIZEUNIT = "Snmp4jAgentTutorialFileSizeUnit"; private static final String TC_SNMP4JAGENTTUTORIALFILETYPE = "Snmp4jAgentTutorialFileType"; private static final String TC_DISPLAYSTRING = "DisplayString"; // Scalars private MOScalar snmp4jAgentTutorialDisplayStr; private MOScalar snmp4jAgentTutorialDateAndTime; private MOScalar snmp4jAgentTutorialActionEnum; private MOScalar snmp4jAgentTutorialInteger; private MOScalar snmp4jAgentTutorialFileTreeIURootPath; private MOScalar snmp4jAgentTutorialFileTreeFURootPath; private MOScalar snmp4jAgentTutorialFileTreeDURootPath; private MOScalar snmp4jAgentTutorialFileTreeEURootPath; private MOScalar snmp4jAgentTutorialFileTreeBURootPath; // Tables public static final OID oidSnmp4jAgentTutorialFileTreeIUEntry = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,1,2,1 }); // Index OID definitions public static final OID oidSnmp4jAgentTutorialFileTreeIUIndex = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,1,2,1,1 }); // Column TC definitions for snmp4jAgentTutorialFileTreeIUEntry: public static final String tcModuleSNMPv2Tc = "SNMPv2-TC"; public static final String tcDefDisplayString = "DisplayString"; public static final String tcModuleSnmp4jAgentTutorialMib = "SNMP4J-AGENT-TUTORIAL-MIB"; public static final String tcDefSnmp4jAgentTutorialFileType = "Snmp4jAgentTutorialFileType"; public static final String tcDefDateAndTime = "DateAndTime"; public static final String tcDefSnmp4jAgentTutorialFileSizeUnit = "Snmp4jAgentTutorialFileSizeUnit"; // Column sub-identifier definitions for snmp4jAgentTutorialFileTreeIUEntry: public static final int colSnmp4jAgentTutorialFileTreeIUPath = 2; public static final int colSnmp4jAgentTutorialFileTreeIUType = 3; public static final int colSnmp4jAgentTutorialFileTreeIUCreationTime = 4; public static final int colSnmp4jAgentTutorialFileTreeIULastModified = 5; public static final int colSnmp4jAgentTutorialFileTreeIULastAccessed = 6; public static final int colSnmp4jAgentTutorialFileTreeIUSizeInBytes = 7; public static final int colSnmp4jAgentTutorialFileTreeIUSize = 8; public static final int colSnmp4jAgentTutorialFileTreeIUSizeUnit = 9; public static final int colSnmp4jAgentTutorialFileTreeIUFileKey = 10; public static final int colSnmp4jAgentTutorialFileTreeIUPosixPerm = 11; // Column index definitions for snmp4jAgentTutorialFileTreeIUEntry: public static final int idxSnmp4jAgentTutorialFileTreeIUPath = 0; public static final int idxSnmp4jAgentTutorialFileTreeIUType = 1; public static final int idxSnmp4jAgentTutorialFileTreeIUCreationTime = 2; public static final int idxSnmp4jAgentTutorialFileTreeIULastModified = 3; public static final int idxSnmp4jAgentTutorialFileTreeIULastAccessed = 4; public static final int idxSnmp4jAgentTutorialFileTreeIUSizeInBytes = 5; public static final int idxSnmp4jAgentTutorialFileTreeIUSize = 6; public static final int idxSnmp4jAgentTutorialFileTreeIUSizeUnit = 7; public static final int idxSnmp4jAgentTutorialFileTreeIUFileKey = 8; public static final int idxSnmp4jAgentTutorialFileTreeIUPosixPerm = 9; private MOTableSubIndex[] snmp4jAgentTutorialFileTreeIUEntryIndexes; private MOTableIndex snmp4jAgentTutorialFileTreeIUEntryIndex; private MOTable> snmp4jAgentTutorialFileTreeIUEntry; private MOTableModel snmp4jAgentTutorialFileTreeIUEntryModel; public static final OID oidSnmp4jAgentTutorialFileTreeFUEntry = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,2,2,1 }); // Index OID definitions public static final OID oidSnmp4jAgentTutorialFileTreeFUIndex = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,2,2,1,1 }); // Column TC definitions for snmp4jAgentTutorialFileTreeFUEntry: // Column sub-identifier definitions for snmp4jAgentTutorialFileTreeFUEntry: public static final int colSnmp4jAgentTutorialFileTreeFUPath = 2; public static final int colSnmp4jAgentTutorialFileTreeFUType = 3; public static final int colSnmp4jAgentTutorialFileTreeFUCreationTime = 4; public static final int colSnmp4jAgentTutorialFileTreeFULastModified = 5; public static final int colSnmp4jAgentTutorialFileTreeFULastAccessed = 6; public static final int colSnmp4jAgentTutorialFileTreeFUSizeInBytes = 7; public static final int colSnmp4jAgentTutorialFileTreeFUSize = 8; public static final int colSnmp4jAgentTutorialFileTreeFUSizeUnit = 9; public static final int colSnmp4jAgentTutorialFileTreeFUFileKey = 10; public static final int colSnmp4jAgentTutorialFileTreeFUPosixPerm = 11; // Column index definitions for snmp4jAgentTutorialFileTreeFUEntry: public static final int idxSnmp4jAgentTutorialFileTreeFUPath = 0; public static final int idxSnmp4jAgentTutorialFileTreeFUType = 1; public static final int idxSnmp4jAgentTutorialFileTreeFUCreationTime = 2; public static final int idxSnmp4jAgentTutorialFileTreeFULastModified = 3; public static final int idxSnmp4jAgentTutorialFileTreeFULastAccessed = 4; public static final int idxSnmp4jAgentTutorialFileTreeFUSizeInBytes = 5; public static final int idxSnmp4jAgentTutorialFileTreeFUSize = 6; public static final int idxSnmp4jAgentTutorialFileTreeFUSizeUnit = 7; public static final int idxSnmp4jAgentTutorialFileTreeFUFileKey = 8; public static final int idxSnmp4jAgentTutorialFileTreeFUPosixPerm = 9; private MOTableSubIndex[] snmp4jAgentTutorialFileTreeFUEntryIndexes; private MOTableIndex snmp4jAgentTutorialFileTreeFUEntryIndex; private MOTable> snmp4jAgentTutorialFileTreeFUEntry; private MOTableModel snmp4jAgentTutorialFileTreeFUEntryModel; public static final OID oidSnmp4jAgentTutorialFileTreeDUEntry = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,3,2,1 }); // Index OID definitions public static final OID oidSnmp4jAgentTutorialFileTreeDUIndex = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,3,2,1,1 }); // Column TC definitions for snmp4jAgentTutorialFileTreeDUEntry: // Column sub-identifier definitions for snmp4jAgentTutorialFileTreeDUEntry: public static final int colSnmp4jAgentTutorialFileTreeDUPath = 2; public static final int colSnmp4jAgentTutorialFileTreeDUType = 3; public static final int colSnmp4jAgentTutorialFileTreeDUCreationTime = 4; public static final int colSnmp4jAgentTutorialFileTreeDULastModified = 5; public static final int colSnmp4jAgentTutorialFileTreeDULastAccessed = 6; public static final int colSnmp4jAgentTutorialFileTreeDUSizeInBytes = 7; public static final int colSnmp4jAgentTutorialFileTreeDUSize = 8; public static final int colSnmp4jAgentTutorialFileTreeDUSizeUnit = 9; public static final int colSnmp4jAgentTutorialFileTreeDUFileKey = 10; public static final int colSnmp4jAgentTutorialFileTreeDUPosixPerm = 11; // Column index definitions for snmp4jAgentTutorialFileTreeDUEntry: public static final int idxSnmp4jAgentTutorialFileTreeDUPath = 0; public static final int idxSnmp4jAgentTutorialFileTreeDUType = 1; public static final int idxSnmp4jAgentTutorialFileTreeDUCreationTime = 2; public static final int idxSnmp4jAgentTutorialFileTreeDULastModified = 3; public static final int idxSnmp4jAgentTutorialFileTreeDULastAccessed = 4; public static final int idxSnmp4jAgentTutorialFileTreeDUSizeInBytes = 5; public static final int idxSnmp4jAgentTutorialFileTreeDUSize = 6; public static final int idxSnmp4jAgentTutorialFileTreeDUSizeUnit = 7; public static final int idxSnmp4jAgentTutorialFileTreeDUFileKey = 8; public static final int idxSnmp4jAgentTutorialFileTreeDUPosixPerm = 9; private MOTableSubIndex[] snmp4jAgentTutorialFileTreeDUEntryIndexes; private MOTableIndex snmp4jAgentTutorialFileTreeDUEntryIndex; private MOTable> snmp4jAgentTutorialFileTreeDUEntry; private MOTableModel snmp4jAgentTutorialFileTreeDUEntryModel; public static final OID oidSnmp4jAgentTutorialFileTreeEUEntry = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,4,2,1 }); // Index OID definitions public static final OID oidSnmp4jAgentTutorialFileTreeEUIndex = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,1,4,2,1,1 }); // Column TC definitions for snmp4jAgentTutorialFileTreeEUEntry: // Column sub-identifier definitions for snmp4jAgentTutorialFileTreeEUEntry: public static final int colSnmp4jAgentTutorialFileTreeEUPath = 2; public static final int colSnmp4jAgentTutorialFileTreeEUType = 3; public static final int colSnmp4jAgentTutorialFileTreeEUCreationTime = 4; public static final int colSnmp4jAgentTutorialFileTreeEULastModified = 5; public static final int colSnmp4jAgentTutorialFileTreeEULastAccessed = 6; public static final int colSnmp4jAgentTutorialFileTreeEUSizeInBytes = 7; public static final int colSnmp4jAgentTutorialFileTreeEUSize = 8; public static final int colSnmp4jAgentTutorialFileTreeEUSizeUnit = 9; public static final int colSnmp4jAgentTutorialFileTreeEUFileKey = 10; public static final int colSnmp4jAgentTutorialFileTreeEUPosixPerm = 11; // Column index definitions for snmp4jAgentTutorialFileTreeEUEntry: public static final int idxSnmp4jAgentTutorialFileTreeEUPath = 0; public static final int idxSnmp4jAgentTutorialFileTreeEUType = 1; public static final int idxSnmp4jAgentTutorialFileTreeEUCreationTime = 2; public static final int idxSnmp4jAgentTutorialFileTreeEULastModified = 3; public static final int idxSnmp4jAgentTutorialFileTreeEULastAccessed = 4; public static final int idxSnmp4jAgentTutorialFileTreeEUSizeInBytes = 5; public static final int idxSnmp4jAgentTutorialFileTreeEUSize = 6; public static final int idxSnmp4jAgentTutorialFileTreeEUSizeUnit = 7; public static final int idxSnmp4jAgentTutorialFileTreeEUFileKey = 8; public static final int idxSnmp4jAgentTutorialFileTreeEUPosixPerm = 9; private MOTableSubIndex[] snmp4jAgentTutorialFileTreeEUEntryIndexes; private MOTableIndex snmp4jAgentTutorialFileTreeEUEntryIndex; private MOTable> snmp4jAgentTutorialFileTreeEUEntry; private MOTableModel snmp4jAgentTutorialFileTreeEUEntryModel; public static final OID oidSnmp4jAgentTutorialFileTreeBUEntry = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,2,1,2,1 }); // Index OID definitions public static final OID oidSnmp4jAgentTutorialFileTreeBUIndex = new OID(new int[] { 1,3,6,1,4,1,4976,10,1,5,1,2,2,1,2,1,1 }); // Column TC definitions for snmp4jAgentTutorialFileTreeBUEntry: // Column sub-identifier definitions for snmp4jAgentTutorialFileTreeBUEntry: public static final int colSnmp4jAgentTutorialFileTreeBUPath = 2; public static final int colSnmp4jAgentTutorialFileTreeBUType = 3; public static final int colSnmp4jAgentTutorialFileTreeBUCreationTime = 4; public static final int colSnmp4jAgentTutorialFileTreeBULastModified = 5; public static final int colSnmp4jAgentTutorialFileTreeBULastAccessed = 6; public static final int colSnmp4jAgentTutorialFileTreeBUSizeInBytes = 7; public static final int colSnmp4jAgentTutorialFileTreeBUSize = 8; public static final int colSnmp4jAgentTutorialFileTreeBUSizeUnit = 9; public static final int colSnmp4jAgentTutorialFileTreeBUFileKey = 10; public static final int colSnmp4jAgentTutorialFileTreeBUPosixPerm = 11; // Column index definitions for snmp4jAgentTutorialFileTreeBUEntry: public static final int idxSnmp4jAgentTutorialFileTreeBUPath = 0; public static final int idxSnmp4jAgentTutorialFileTreeBUType = 1; public static final int idxSnmp4jAgentTutorialFileTreeBUCreationTime = 2; public static final int idxSnmp4jAgentTutorialFileTreeBULastModified = 3; public static final int idxSnmp4jAgentTutorialFileTreeBULastAccessed = 4; public static final int idxSnmp4jAgentTutorialFileTreeBUSizeInBytes = 5; public static final int idxSnmp4jAgentTutorialFileTreeBUSize = 6; public static final int idxSnmp4jAgentTutorialFileTreeBUSizeUnit = 7; public static final int idxSnmp4jAgentTutorialFileTreeBUFileKey = 8; public static final int idxSnmp4jAgentTutorialFileTreeBUPosixPerm = 9; private MOTableSubIndex[] snmp4jAgentTutorialFileTreeBUEntryIndexes; private MOTableIndex snmp4jAgentTutorialFileTreeBUEntryIndex; private MOTable> snmp4jAgentTutorialFileTreeBUEntry; private MOTableModel snmp4jAgentTutorialFileTreeBUEntryModel; //--AgentGen BEGIN=_MEMBERS //--AgentGen END /** * Constructs a Snmp4jAgentTutorialMib instance without actually creating its * ManagedObject instances. This has to be done in a * sub-class constructor or after construction by calling * {@link #createMO(MOFactory moFactory)}. */ protected Snmp4jAgentTutorialMib() { //--AgentGen BEGIN=_DEFAULTCONSTRUCTOR //--AgentGen END } /** * Constructs a Snmp4jAgentTutorialMib instance and actually creates its * ManagedObject instances using the supplied * MOFactory (by calling * {@link #createMO(MOFactory moFactory)}). * @param moFactory * the MOFactory to be used to create the * managed objects for this module. */ public Snmp4jAgentTutorialMib(MOFactory moFactory) { this(); createMO(moFactory); //--AgentGen BEGIN=_FACTORYCONSTRUCTOR //--AgentGen END } //--AgentGen BEGIN=_CONSTRUCTORS //--AgentGen END /** * Create the ManagedObjects defined for this MIB module * using the specified {@link MOFactory}. * @param moFactory * the MOFactory instance to use for object * creation. */ protected void createMO(MOFactory moFactory) { addTCsToFactory(moFactory); snmp4jAgentTutorialDisplayStr = moFactory.createScalar(oidSnmp4jAgentTutorialDisplayStr, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), null, TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING); snmp4jAgentTutorialDateAndTime = moFactory.createScalar(oidSnmp4jAgentTutorialDateAndTime, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), null, TC_MODULE_SNMPV2_TC, TC_DATEANDTIME); snmp4jAgentTutorialActionEnum = new Snmp4jAgentTutorialActionEnum(oidSnmp4jAgentTutorialActionEnum, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE)); snmp4jAgentTutorialActionEnum.addMOValueValidationListener(new Snmp4jAgentTutorialActionEnumValidator()); snmp4jAgentTutorialInteger = new Snmp4jAgentTutorialInteger(oidSnmp4jAgentTutorialInteger, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE)); snmp4jAgentTutorialInteger.addMOValueValidationListener(new Snmp4jAgentTutorialIntegerValidator()); snmp4jAgentTutorialFileTreeIURootPath = new Snmp4jAgentTutorialFileTreeIURootPath(oidSnmp4jAgentTutorialFileTreeIURootPath, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE)); snmp4jAgentTutorialFileTreeIURootPath.addMOValueValidationListener(new Snmp4jAgentTutorialFileTreeIURootPathValidator()); snmp4jAgentTutorialFileTreeFURootPath = new Snmp4jAgentTutorialFileTreeFURootPath(oidSnmp4jAgentTutorialFileTreeFURootPath, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE)); snmp4jAgentTutorialFileTreeFURootPath.addMOValueValidationListener(new Snmp4jAgentTutorialFileTreeFURootPathValidator()); snmp4jAgentTutorialFileTreeDURootPath = new Snmp4jAgentTutorialFileTreeDURootPath(oidSnmp4jAgentTutorialFileTreeDURootPath, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE)); snmp4jAgentTutorialFileTreeDURootPath.addMOValueValidationListener(new Snmp4jAgentTutorialFileTreeDURootPathValidator()); snmp4jAgentTutorialFileTreeEURootPath = new Snmp4jAgentTutorialFileTreeEURootPath(oidSnmp4jAgentTutorialFileTreeEURootPath, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE)); snmp4jAgentTutorialFileTreeEURootPath.addMOValueValidationListener(new Snmp4jAgentTutorialFileTreeEURootPathValidator()); snmp4jAgentTutorialFileTreeBURootPath = new Snmp4jAgentTutorialFileTreeBURootPath(oidSnmp4jAgentTutorialFileTreeBURootPath, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE)); snmp4jAgentTutorialFileTreeBURootPath.addMOValueValidationListener(new Snmp4jAgentTutorialFileTreeBURootPathValidator()); createSnmp4jAgentTutorialFileTreeIUEntry(moFactory); createSnmp4jAgentTutorialFileTreeFUEntry(moFactory); createSnmp4jAgentTutorialFileTreeDUEntry(moFactory); createSnmp4jAgentTutorialFileTreeEUEntry(moFactory); createSnmp4jAgentTutorialFileTreeBUEntry(moFactory); } public MOScalar getSnmp4jAgentTutorialDisplayStr() { return snmp4jAgentTutorialDisplayStr; } public MOScalar getSnmp4jAgentTutorialDateAndTime() { return snmp4jAgentTutorialDateAndTime; } public MOScalar getSnmp4jAgentTutorialActionEnum() { return snmp4jAgentTutorialActionEnum; } public MOScalar getSnmp4jAgentTutorialInteger() { return snmp4jAgentTutorialInteger; } public MOScalar getSnmp4jAgentTutorialFileTreeIURootPath() { return snmp4jAgentTutorialFileTreeIURootPath; } public MOScalar getSnmp4jAgentTutorialFileTreeFURootPath() { return snmp4jAgentTutorialFileTreeFURootPath; } public MOScalar getSnmp4jAgentTutorialFileTreeDURootPath() { return snmp4jAgentTutorialFileTreeDURootPath; } public MOScalar getSnmp4jAgentTutorialFileTreeEURootPath() { return snmp4jAgentTutorialFileTreeEURootPath; } public MOScalar getSnmp4jAgentTutorialFileTreeBURootPath() { return snmp4jAgentTutorialFileTreeBURootPath; } public MOTable> getSnmp4jAgentTutorialFileTreeIUEntry() { return snmp4jAgentTutorialFileTreeIUEntry; } @SuppressWarnings(value={"unchecked"}) private void createSnmp4jAgentTutorialFileTreeIUEntry(MOFactory moFactory) { // Index definition snmp4jAgentTutorialFileTreeIUEntryIndexes = new MOTableSubIndex[] { moFactory.createSubIndex(oidSnmp4jAgentTutorialFileTreeIUIndex, SMIConstants.SYNTAX_OBJECT_IDENTIFIER, 0, 128) }; snmp4jAgentTutorialFileTreeIUEntryIndex = moFactory.createIndex(snmp4jAgentTutorialFileTreeIUEntryIndexes, true, new MOTableIndexValidator() { public boolean isValidIndex(OID index) { boolean isValidIndex = true; //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::isValidIndex //--AgentGen END return isValidIndex; } }); // Columns MOColumn[] snmp4jAgentTutorialFileTreeIUEntryColumns = new MOColumn[10]; snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIUPath] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIUPath, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDisplayString); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIUType] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIUType, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileType); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIUCreationTime] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIUCreationTime, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIULastModified] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIULastModified, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIULastAccessed] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIULastAccessed, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIUSizeInBytes] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIUSizeInBytes, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIUSize] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIUSize, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIUSizeUnit] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIUSizeUnit, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileSizeUnit); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIUFileKey] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIUFileKey, SMIConstants.SYNTAX_INTEGER32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeIUEntryColumns[idxSnmp4jAgentTutorialFileTreeIUPosixPerm] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeIUPosixPerm, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); // Table model snmp4jAgentTutorialFileTreeIUEntryModel = moFactory.createTableModel(oidSnmp4jAgentTutorialFileTreeIUEntry, snmp4jAgentTutorialFileTreeIUEntryIndex, snmp4jAgentTutorialFileTreeIUEntryColumns); ((MOMutableTableModel)snmp4jAgentTutorialFileTreeIUEntryModel).setRowFactory( new Snmp4jAgentTutorialFileTreeIUEntryRowFactory()); snmp4jAgentTutorialFileTreeIUEntry = moFactory.createTable(oidSnmp4jAgentTutorialFileTreeIUEntry, snmp4jAgentTutorialFileTreeIUEntryIndex, snmp4jAgentTutorialFileTreeIUEntryColumns, snmp4jAgentTutorialFileTreeIUEntryModel); } public MOTable> getSnmp4jAgentTutorialFileTreeFUEntry() { return snmp4jAgentTutorialFileTreeFUEntry; } @SuppressWarnings(value={"unchecked"}) private void createSnmp4jAgentTutorialFileTreeFUEntry(MOFactory moFactory) { // Index definition snmp4jAgentTutorialFileTreeFUEntryIndexes = new MOTableSubIndex[] { moFactory.createSubIndex(oidSnmp4jAgentTutorialFileTreeFUIndex, SMIConstants.SYNTAX_OBJECT_IDENTIFIER, 0, 128) }; snmp4jAgentTutorialFileTreeFUEntryIndex = moFactory.createIndex(snmp4jAgentTutorialFileTreeFUEntryIndexes, true, new MOTableIndexValidator() { public boolean isValidIndex(OID index) { boolean isValidIndex = true; //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::isValidIndex //--AgentGen END return isValidIndex; } }); // Columns MOColumn[] snmp4jAgentTutorialFileTreeFUEntryColumns = new MOColumn[10]; snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFUPath] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFUPath, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDisplayString); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFUType] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFUType, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileType); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFUCreationTime] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFUCreationTime, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFULastModified] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFULastModified, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFULastAccessed] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFULastAccessed, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFUSizeInBytes] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFUSizeInBytes, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFUSize] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFUSize, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFUSizeUnit] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFUSizeUnit, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileSizeUnit); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFUFileKey] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFUFileKey, SMIConstants.SYNTAX_INTEGER32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeFUEntryColumns[idxSnmp4jAgentTutorialFileTreeFUPosixPerm] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeFUPosixPerm, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); // Table model snmp4jAgentTutorialFileTreeFUEntryModel = moFactory.createTableModel(oidSnmp4jAgentTutorialFileTreeFUEntry, snmp4jAgentTutorialFileTreeFUEntryIndex, snmp4jAgentTutorialFileTreeFUEntryColumns); ((MOMutableTableModel)snmp4jAgentTutorialFileTreeFUEntryModel).setRowFactory( new Snmp4jAgentTutorialFileTreeFUEntryRowFactory()); snmp4jAgentTutorialFileTreeFUEntry = moFactory.createTable(oidSnmp4jAgentTutorialFileTreeFUEntry, snmp4jAgentTutorialFileTreeFUEntryIndex, snmp4jAgentTutorialFileTreeFUEntryColumns, snmp4jAgentTutorialFileTreeFUEntryModel); } public MOTable> getSnmp4jAgentTutorialFileTreeDUEntry() { return snmp4jAgentTutorialFileTreeDUEntry; } @SuppressWarnings(value={"unchecked"}) private void createSnmp4jAgentTutorialFileTreeDUEntry(MOFactory moFactory) { // Index definition snmp4jAgentTutorialFileTreeDUEntryIndexes = new MOTableSubIndex[] { moFactory.createSubIndex(oidSnmp4jAgentTutorialFileTreeDUIndex, SMIConstants.SYNTAX_OBJECT_IDENTIFIER, 0, 128) }; snmp4jAgentTutorialFileTreeDUEntryIndex = moFactory.createIndex(snmp4jAgentTutorialFileTreeDUEntryIndexes, true, new MOTableIndexValidator() { public boolean isValidIndex(OID index) { boolean isValidIndex = true; //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::isValidIndex //--AgentGen END return isValidIndex; } }); // Columns MOColumn[] snmp4jAgentTutorialFileTreeDUEntryColumns = new MOColumn[10]; snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDUPath] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDUPath, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDisplayString); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDUType] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDUType, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileType); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDUCreationTime] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDUCreationTime, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDULastModified] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDULastModified, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDULastAccessed] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDULastAccessed, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDUSizeInBytes] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDUSizeInBytes, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDUSize] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDUSize, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDUSizeUnit] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDUSizeUnit, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileSizeUnit); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDUFileKey] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDUFileKey, SMIConstants.SYNTAX_INTEGER32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeDUEntryColumns[idxSnmp4jAgentTutorialFileTreeDUPosixPerm] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeDUPosixPerm, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); // Table model snmp4jAgentTutorialFileTreeDUEntryModel = moFactory.createTableModel(oidSnmp4jAgentTutorialFileTreeDUEntry, snmp4jAgentTutorialFileTreeDUEntryIndex, snmp4jAgentTutorialFileTreeDUEntryColumns); ((MOMutableTableModel)snmp4jAgentTutorialFileTreeDUEntryModel).setRowFactory( new Snmp4jAgentTutorialFileTreeDUEntryRowFactory()); snmp4jAgentTutorialFileTreeDUEntry = moFactory.createTable(oidSnmp4jAgentTutorialFileTreeDUEntry, snmp4jAgentTutorialFileTreeDUEntryIndex, snmp4jAgentTutorialFileTreeDUEntryColumns, snmp4jAgentTutorialFileTreeDUEntryModel); } public MOTable> getSnmp4jAgentTutorialFileTreeEUEntry() { return snmp4jAgentTutorialFileTreeEUEntry; } @SuppressWarnings(value={"unchecked"}) private void createSnmp4jAgentTutorialFileTreeEUEntry(MOFactory moFactory) { // Index definition snmp4jAgentTutorialFileTreeEUEntryIndexes = new MOTableSubIndex[] { moFactory.createSubIndex(oidSnmp4jAgentTutorialFileTreeEUIndex, SMIConstants.SYNTAX_OBJECT_IDENTIFIER, 0, 128) }; snmp4jAgentTutorialFileTreeEUEntryIndex = moFactory.createIndex(snmp4jAgentTutorialFileTreeEUEntryIndexes, true, new MOTableIndexValidator() { public boolean isValidIndex(OID index) { boolean isValidIndex = true; //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::isValidIndex //--AgentGen END return isValidIndex; } }); // Columns MOColumn[] snmp4jAgentTutorialFileTreeEUEntryColumns = new MOColumn[10]; snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEUPath] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEUPath, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDisplayString); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEUType] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEUType, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileType); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEUCreationTime] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEUCreationTime, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEULastModified] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEULastModified, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEULastAccessed] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEULastAccessed, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEUSizeInBytes] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEUSizeInBytes, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEUSize] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEUSize, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEUSizeUnit] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEUSizeUnit, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileSizeUnit); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEUFileKey] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEUFileKey, SMIConstants.SYNTAX_INTEGER32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeEUEntryColumns[idxSnmp4jAgentTutorialFileTreeEUPosixPerm] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeEUPosixPerm, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); // Table model snmp4jAgentTutorialFileTreeEUEntryModel = moFactory.createTableModel(oidSnmp4jAgentTutorialFileTreeEUEntry, snmp4jAgentTutorialFileTreeEUEntryIndex, snmp4jAgentTutorialFileTreeEUEntryColumns); ((MOMutableTableModel)snmp4jAgentTutorialFileTreeEUEntryModel).setRowFactory( new Snmp4jAgentTutorialFileTreeEUEntryRowFactory()); snmp4jAgentTutorialFileTreeEUEntry = moFactory.createTable(oidSnmp4jAgentTutorialFileTreeEUEntry, snmp4jAgentTutorialFileTreeEUEntryIndex, snmp4jAgentTutorialFileTreeEUEntryColumns, snmp4jAgentTutorialFileTreeEUEntryModel); } public MOTable> getSnmp4jAgentTutorialFileTreeBUEntry() { return snmp4jAgentTutorialFileTreeBUEntry; } @SuppressWarnings(value={"unchecked"}) private void createSnmp4jAgentTutorialFileTreeBUEntry(MOFactory moFactory) { // Index definition snmp4jAgentTutorialFileTreeBUEntryIndexes = new MOTableSubIndex[] { moFactory.createSubIndex(oidSnmp4jAgentTutorialFileTreeBUIndex, SMIConstants.SYNTAX_OBJECT_IDENTIFIER, 0, 128) }; snmp4jAgentTutorialFileTreeBUEntryIndex = moFactory.createIndex(snmp4jAgentTutorialFileTreeBUEntryIndexes, true, new MOTableIndexValidator() { public boolean isValidIndex(OID index) { boolean isValidIndex = true; //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::isValidIndex //--AgentGen END return isValidIndex; } }); // Columns MOColumn[] snmp4jAgentTutorialFileTreeBUEntryColumns = new MOColumn[10]; snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBUPath] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBUPath, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDisplayString); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBUType] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBUType, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileType); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBUCreationTime] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBUCreationTime, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBULastModified] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBULastModified, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBULastAccessed] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBULastAccessed, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSNMPv2Tc, tcDefDateAndTime); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBUSizeInBytes] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBUSizeInBytes, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBUSize] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBUSize, SMIConstants.SYNTAX_GAUGE32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBUSizeUnit] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBUSizeUnit, SMIConstants.SYNTAX_INTEGER, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY), tcModuleSnmp4jAgentTutorialMib, tcDefSnmp4jAgentTutorialFileSizeUnit); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBUFileKey] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBUFileKey, SMIConstants.SYNTAX_INTEGER32, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); snmp4jAgentTutorialFileTreeBUEntryColumns[idxSnmp4jAgentTutorialFileTreeBUPosixPerm] = moFactory.createColumn(colSnmp4jAgentTutorialFileTreeBUPosixPerm, SMIConstants.SYNTAX_OCTET_STRING, moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY)); // Table model snmp4jAgentTutorialFileTreeBUEntryModel = moFactory.createTableModel(oidSnmp4jAgentTutorialFileTreeBUEntry, snmp4jAgentTutorialFileTreeBUEntryIndex, snmp4jAgentTutorialFileTreeBUEntryColumns); ((MOMutableTableModel)snmp4jAgentTutorialFileTreeBUEntryModel).setRowFactory( new Snmp4jAgentTutorialFileTreeBUEntryRowFactory()); snmp4jAgentTutorialFileTreeBUEntry = moFactory.createTable(oidSnmp4jAgentTutorialFileTreeBUEntry, snmp4jAgentTutorialFileTreeBUEntryIndex, snmp4jAgentTutorialFileTreeBUEntryColumns, snmp4jAgentTutorialFileTreeBUEntryModel); } public void registerMOs(MOServer server, OctetString context) throws DuplicateRegistrationException { // Scalar Objects server.register(this.snmp4jAgentTutorialDisplayStr, context); server.register(this.snmp4jAgentTutorialDateAndTime, context); server.register(this.snmp4jAgentTutorialActionEnum, context); server.register(this.snmp4jAgentTutorialInteger, context); server.register(this.snmp4jAgentTutorialFileTreeIURootPath, context); server.register(this.snmp4jAgentTutorialFileTreeFURootPath, context); server.register(this.snmp4jAgentTutorialFileTreeDURootPath, context); server.register(this.snmp4jAgentTutorialFileTreeEURootPath, context); server.register(this.snmp4jAgentTutorialFileTreeBURootPath, context); server.register(this.snmp4jAgentTutorialFileTreeIUEntry, context); server.register(this.snmp4jAgentTutorialFileTreeFUEntry, context); server.register(this.snmp4jAgentTutorialFileTreeDUEntry, context); server.register(this.snmp4jAgentTutorialFileTreeEUEntry, context); server.register(this.snmp4jAgentTutorialFileTreeBUEntry, context); //--AgentGen BEGIN=_registerMOs //--AgentGen END } public void unregisterMOs(MOServer server, OctetString context) { // Scalar Objects server.unregister(this.snmp4jAgentTutorialDisplayStr, context); server.unregister(this.snmp4jAgentTutorialDateAndTime, context); server.unregister(this.snmp4jAgentTutorialActionEnum, context); server.unregister(this.snmp4jAgentTutorialInteger, context); server.unregister(this.snmp4jAgentTutorialFileTreeIURootPath, context); server.unregister(this.snmp4jAgentTutorialFileTreeFURootPath, context); server.unregister(this.snmp4jAgentTutorialFileTreeDURootPath, context); server.unregister(this.snmp4jAgentTutorialFileTreeEURootPath, context); server.unregister(this.snmp4jAgentTutorialFileTreeBURootPath, context); server.unregister(this.snmp4jAgentTutorialFileTreeIUEntry, context); server.unregister(this.snmp4jAgentTutorialFileTreeFUEntry, context); server.unregister(this.snmp4jAgentTutorialFileTreeDUEntry, context); server.unregister(this.snmp4jAgentTutorialFileTreeEUEntry, context); server.unregister(this.snmp4jAgentTutorialFileTreeBUEntry, context); //--AgentGen BEGIN=_unregisterMOs //--AgentGen END } // Notifications public void snmp4jAgentTutorialTimeEvent(NotificationOriginator notificationOriginator, OctetString context, VariableBinding[] vbs) { if (vbs.length < 1) { throw new IllegalArgumentException("Too few notification objects (snmp4jAgentTutorialTimeEvent): "+ vbs.length+"<1"); } // snmp4jAgentTutorialDateAndTime if (!(vbs[0].getOid().startsWith(oidTrapVarSnmp4jAgentTutorialDateAndTime))) { throw new IllegalArgumentException("Variable 0 (snmp4jAgentTutorialDateAndTime)) has wrong OID: "+vbs[0].getOid()+ " does not start with "+oidTrapVarSnmp4jAgentTutorialDateAndTime); } { OctetString os = (OctetString)vbs[0].getVariable(); if (!(((os.length() >= 8) && (os.length() <= 8)) || ((os.length() >= 11) && (os.length() <= 11)))) { throw new IllegalArgumentException("Illegal length of variable 0 (snmp4jAgentTutorialDateAndTime)): " + os.length()); } } notificationOriginator.notify(context, oidSnmp4jAgentTutorialTimeEvent, vbs); } // Scalars public class Snmp4jAgentTutorialActionEnum extends EnumeratedScalar { Snmp4jAgentTutorialActionEnum(OID oid, MOAccess access) { super(oid, access, new Integer32(), new int[] { Snmp4jAgentTutorialActionEnumEnum.idle, Snmp4jAgentTutorialActionEnumEnum.resetSysUpTime }); //--AgentGen BEGIN=snmp4jAgentTutorialActionEnum //--AgentGen END } public int isValueOK(SubRequest request) { Variable newValue = request.getVariableBinding().getVariable(); int valueOK = super.isValueOK(request); if (valueOK != SnmpConstants.SNMP_ERROR_SUCCESS) { return valueOK; } //--AgentGen BEGIN=snmp4jAgentTutorialActionEnum::isValueOK //--AgentGen END return valueOK; } public Integer32 getValue() { //--AgentGen BEGIN=snmp4jAgentTutorialActionEnum::getValue //--AgentGen END return super.getValue(); } public int setValue(Integer32 newValue) { //--AgentGen BEGIN=snmp4jAgentTutorialActionEnum::setValue //--AgentGen END return super.setValue(newValue); } //--AgentGen BEGIN=snmp4jAgentTutorialActionEnum::_METHODS //--AgentGen END } public class Snmp4jAgentTutorialInteger extends MOScalar { Snmp4jAgentTutorialInteger(OID oid, MOAccess access) { super(oid, access, new Integer32()); //--AgentGen BEGIN=snmp4jAgentTutorialInteger //--AgentGen END } public int isValueOK(SubRequest request) { Variable newValue = request.getVariableBinding().getVariable(); int valueOK = super.isValueOK(request); if (valueOK != SnmpConstants.SNMP_ERROR_SUCCESS) { return valueOK; } long v = ((Integer32)newValue).getValue(); if (!(((v >= -100L) && (v <= 100L)))) { valueOK = SnmpConstants.SNMP_ERROR_WRONG_VALUE; } //--AgentGen BEGIN=snmp4jAgentTutorialInteger::isValueOK //--AgentGen END return valueOK; } public Integer32 getValue() { //--AgentGen BEGIN=snmp4jAgentTutorialInteger::getValue //--AgentGen END return super.getValue(); } public int setValue(Integer32 newValue) { //--AgentGen BEGIN=snmp4jAgentTutorialInteger::setValue //--AgentGen END return super.setValue(newValue); } //--AgentGen BEGIN=snmp4jAgentTutorialInteger::_METHODS //--AgentGen END } public class Snmp4jAgentTutorialFileTreeIURootPath extends DisplayStringScalar { Snmp4jAgentTutorialFileTreeIURootPath(OID oid, MOAccess access) { super(oid, access, new OctetString(), 0, 512); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIURootPath //--AgentGen END } public int isValueOK(SubRequest request) { Variable newValue = request.getVariableBinding().getVariable(); int valueOK = super.isValueOK(request); if (valueOK != SnmpConstants.SNMP_ERROR_SUCCESS) { return valueOK; } OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { valueOK = SnmpConstants.SNMP_ERROR_WRONG_LENGTH; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIURootPath::isValueOK //--AgentGen END return valueOK; } public OctetString getValue() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIURootPath::getValue //--AgentGen END return super.getValue(); } public int setValue(OctetString newValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIURootPath::setValue //--AgentGen END return super.setValue(newValue); } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIURootPath::_METHODS //--AgentGen END } public class Snmp4jAgentTutorialFileTreeFURootPath extends DisplayStringScalar { Snmp4jAgentTutorialFileTreeFURootPath(OID oid, MOAccess access) { super(oid, access, new OctetString(), 0, 512); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFURootPath //--AgentGen END } public int isValueOK(SubRequest request) { Variable newValue = request.getVariableBinding().getVariable(); int valueOK = super.isValueOK(request); if (valueOK != SnmpConstants.SNMP_ERROR_SUCCESS) { return valueOK; } OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { valueOK = SnmpConstants.SNMP_ERROR_WRONG_LENGTH; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFURootPath::isValueOK //--AgentGen END return valueOK; } public OctetString getValue() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFURootPath::getValue //--AgentGen END return super.getValue(); } public int setValue(OctetString newValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFURootPath::setValue //--AgentGen END return super.setValue(newValue); } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFURootPath::_METHODS //--AgentGen END } public class Snmp4jAgentTutorialFileTreeDURootPath extends DisplayStringScalar { Snmp4jAgentTutorialFileTreeDURootPath(OID oid, MOAccess access) { super(oid, access, new OctetString(), 0, 512); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDURootPath //--AgentGen END } public int isValueOK(SubRequest request) { Variable newValue = request.getVariableBinding().getVariable(); int valueOK = super.isValueOK(request); if (valueOK != SnmpConstants.SNMP_ERROR_SUCCESS) { return valueOK; } OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { valueOK = SnmpConstants.SNMP_ERROR_WRONG_LENGTH; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDURootPath::isValueOK //--AgentGen END return valueOK; } public OctetString getValue() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDURootPath::getValue //--AgentGen END return super.getValue(); } public int setValue(OctetString newValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDURootPath::setValue //--AgentGen END return super.setValue(newValue); } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDURootPath::_METHODS //--AgentGen END } public class Snmp4jAgentTutorialFileTreeEURootPath extends DisplayStringScalar { Snmp4jAgentTutorialFileTreeEURootPath(OID oid, MOAccess access) { super(oid, access, new OctetString(), 0, 512); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEURootPath //--AgentGen END } public int isValueOK(SubRequest request) { Variable newValue = request.getVariableBinding().getVariable(); int valueOK = super.isValueOK(request); if (valueOK != SnmpConstants.SNMP_ERROR_SUCCESS) { return valueOK; } OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { valueOK = SnmpConstants.SNMP_ERROR_WRONG_LENGTH; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEURootPath::isValueOK //--AgentGen END return valueOK; } public OctetString getValue() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEURootPath::getValue //--AgentGen END return super.getValue(); } public int setValue(OctetString newValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEURootPath::setValue //--AgentGen END return super.setValue(newValue); } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEURootPath::_METHODS //--AgentGen END } public class Snmp4jAgentTutorialFileTreeBURootPath extends DisplayStringScalar { Snmp4jAgentTutorialFileTreeBURootPath(OID oid, MOAccess access) { super(oid, access, new OctetString(), 0, 512); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBURootPath //--AgentGen END } public int isValueOK(SubRequest request) { Variable newValue = request.getVariableBinding().getVariable(); int valueOK = super.isValueOK(request); if (valueOK != SnmpConstants.SNMP_ERROR_SUCCESS) { return valueOK; } OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { valueOK = SnmpConstants.SNMP_ERROR_WRONG_LENGTH; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBURootPath::isValueOK //--AgentGen END return valueOK; } public OctetString getValue() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBURootPath::getValue //--AgentGen END return super.getValue(); } public int setValue(OctetString newValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBURootPath::setValue //--AgentGen END return super.setValue(newValue); } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBURootPath::_METHODS //--AgentGen END } // Value Validators /** * The Snmp4jAgentTutorialActionEnumValidator implements the value * validation for Snmp4jAgentTutorialActionEnum. */ static class Snmp4jAgentTutorialActionEnumValidator implements MOValueValidationListener { public void validate(MOValueValidationEvent validationEvent) { Variable newValue = validationEvent.getNewValue(); //--AgentGen BEGIN=snmp4jAgentTutorialActionEnum::validate //--AgentGen END } } /** * The Snmp4jAgentTutorialIntegerValidator implements the value * validation for Snmp4jAgentTutorialInteger. */ static class Snmp4jAgentTutorialIntegerValidator implements MOValueValidationListener { public void validate(MOValueValidationEvent validationEvent) { Variable newValue = validationEvent.getNewValue(); long v = ((Integer32)newValue).getValue(); if (!(((v >= -100L) && (v <= 100L)))) { validationEvent.setValidationStatus(SnmpConstants.SNMP_ERROR_WRONG_VALUE); return; } //--AgentGen BEGIN=snmp4jAgentTutorialInteger::validate //--AgentGen END } } /** * The Snmp4jAgentTutorialFileTreeIURootPathValidator implements the value * validation for Snmp4jAgentTutorialFileTreeIURootPath. */ static class Snmp4jAgentTutorialFileTreeIURootPathValidator implements MOValueValidationListener { public void validate(MOValueValidationEvent validationEvent) { Variable newValue = validationEvent.getNewValue(); OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { validationEvent.setValidationStatus(SnmpConstants.SNMP_ERROR_WRONG_LENGTH); return; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIURootPath::validate //--AgentGen END } } /** * The Snmp4jAgentTutorialFileTreeFURootPathValidator implements the value * validation for Snmp4jAgentTutorialFileTreeFURootPath. */ static class Snmp4jAgentTutorialFileTreeFURootPathValidator implements MOValueValidationListener { public void validate(MOValueValidationEvent validationEvent) { Variable newValue = validationEvent.getNewValue(); OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { validationEvent.setValidationStatus(SnmpConstants.SNMP_ERROR_WRONG_LENGTH); return; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFURootPath::validate //--AgentGen END } } /** * The Snmp4jAgentTutorialFileTreeDURootPathValidator implements the value * validation for Snmp4jAgentTutorialFileTreeDURootPath. */ static class Snmp4jAgentTutorialFileTreeDURootPathValidator implements MOValueValidationListener { public void validate(MOValueValidationEvent validationEvent) { Variable newValue = validationEvent.getNewValue(); OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { validationEvent.setValidationStatus(SnmpConstants.SNMP_ERROR_WRONG_LENGTH); return; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDURootPath::validate //--AgentGen END } } /** * The Snmp4jAgentTutorialFileTreeEURootPathValidator implements the value * validation for Snmp4jAgentTutorialFileTreeEURootPath. */ static class Snmp4jAgentTutorialFileTreeEURootPathValidator implements MOValueValidationListener { public void validate(MOValueValidationEvent validationEvent) { Variable newValue = validationEvent.getNewValue(); OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { validationEvent.setValidationStatus(SnmpConstants.SNMP_ERROR_WRONG_LENGTH); return; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEURootPath::validate //--AgentGen END } } /** * The Snmp4jAgentTutorialFileTreeBURootPathValidator implements the value * validation for Snmp4jAgentTutorialFileTreeBURootPath. */ static class Snmp4jAgentTutorialFileTreeBURootPathValidator implements MOValueValidationListener { public void validate(MOValueValidationEvent validationEvent) { Variable newValue = validationEvent.getNewValue(); OctetString os = (OctetString)newValue; if (!(((os.length() >= 0) && (os.length() <= 512)) || ((os.length() >= 0) && (os.length() <= 255)))) { validationEvent.setValidationStatus(SnmpConstants.SNMP_ERROR_WRONG_LENGTH); return; } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBURootPath::validate //--AgentGen END } } // Rows and Factories public class Snmp4jAgentTutorialFileTreeIUEntryRow extends DefaultMOMutableRow2PC { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::RowMembers //--AgentGen END public Snmp4jAgentTutorialFileTreeIUEntryRow(OID index, Variable[] values) { super(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::RowConstructor //--AgentGen END } public OctetString getSnmp4jAgentTutorialFileTreeIUPath() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIUPath //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeIUPath); } public void setSnmp4jAgentTutorialFileTreeIUPath(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIUPath //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIUPath, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeIUType() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIUType //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeIUType); } public void setSnmp4jAgentTutorialFileTreeIUType(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIUType //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIUType, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeIUCreationTime() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIUCreationTime //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeIUCreationTime); } public void setSnmp4jAgentTutorialFileTreeIUCreationTime(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIUCreationTime //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIUCreationTime, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeIULastModified() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIULastModified //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeIULastModified); } public void setSnmp4jAgentTutorialFileTreeIULastModified(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIULastModified //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIULastModified, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeIULastAccessed() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIULastAccessed //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeIULastAccessed); } public void setSnmp4jAgentTutorialFileTreeIULastAccessed(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIULastAccessed //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIULastAccessed, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeIUSizeInBytes() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIUSizeInBytes //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeIUSizeInBytes); } public void setSnmp4jAgentTutorialFileTreeIUSizeInBytes(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIUSizeInBytes //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIUSizeInBytes, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeIUSize() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIUSize //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeIUSize); } public void setSnmp4jAgentTutorialFileTreeIUSize(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIUSize //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIUSize, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeIUSizeUnit() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIUSizeUnit //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeIUSizeUnit); } public void setSnmp4jAgentTutorialFileTreeIUSizeUnit(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIUSizeUnit //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIUSizeUnit, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeIUFileKey() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIUFileKey //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeIUFileKey); } public void setSnmp4jAgentTutorialFileTreeIUFileKey(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIUFileKey //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIUFileKey, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeIUPosixPerm() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::getSnmp4jAgentTutorialFileTreeIUPosixPerm //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeIUPosixPerm); } public void setSnmp4jAgentTutorialFileTreeIUPosixPerm(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::setSnmp4jAgentTutorialFileTreeIUPosixPerm //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeIUPosixPerm, newColValue); } public Variable getValue(int column) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::RowGetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeIUPath: return getSnmp4jAgentTutorialFileTreeIUPath(); case idxSnmp4jAgentTutorialFileTreeIUType: return getSnmp4jAgentTutorialFileTreeIUType(); case idxSnmp4jAgentTutorialFileTreeIUCreationTime: return getSnmp4jAgentTutorialFileTreeIUCreationTime(); case idxSnmp4jAgentTutorialFileTreeIULastModified: return getSnmp4jAgentTutorialFileTreeIULastModified(); case idxSnmp4jAgentTutorialFileTreeIULastAccessed: return getSnmp4jAgentTutorialFileTreeIULastAccessed(); case idxSnmp4jAgentTutorialFileTreeIUSizeInBytes: return getSnmp4jAgentTutorialFileTreeIUSizeInBytes(); case idxSnmp4jAgentTutorialFileTreeIUSize: return getSnmp4jAgentTutorialFileTreeIUSize(); case idxSnmp4jAgentTutorialFileTreeIUSizeUnit: return getSnmp4jAgentTutorialFileTreeIUSizeUnit(); case idxSnmp4jAgentTutorialFileTreeIUFileKey: return getSnmp4jAgentTutorialFileTreeIUFileKey(); case idxSnmp4jAgentTutorialFileTreeIUPosixPerm: return getSnmp4jAgentTutorialFileTreeIUPosixPerm(); default: return super.getValue(column); } } public void setValue(int column, Variable value) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::RowSetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeIUPath: setSnmp4jAgentTutorialFileTreeIUPath((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeIUType: setSnmp4jAgentTutorialFileTreeIUType((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeIUCreationTime: setSnmp4jAgentTutorialFileTreeIUCreationTime((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeIULastModified: setSnmp4jAgentTutorialFileTreeIULastModified((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeIULastAccessed: setSnmp4jAgentTutorialFileTreeIULastAccessed((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeIUSizeInBytes: setSnmp4jAgentTutorialFileTreeIUSizeInBytes((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeIUSize: setSnmp4jAgentTutorialFileTreeIUSize((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeIUSizeUnit: setSnmp4jAgentTutorialFileTreeIUSizeUnit((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeIUFileKey: setSnmp4jAgentTutorialFileTreeIUFileKey((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeIUPosixPerm: setSnmp4jAgentTutorialFileTreeIUPosixPerm((OctetString)value); break; default: super.setValue(column, value); } } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::Row //--AgentGen END } class Snmp4jAgentTutorialFileTreeIUEntryRowFactory implements MOTableRowFactory { public synchronized Snmp4jAgentTutorialFileTreeIUEntryRow createRow(OID index, Variable[] values) throws UnsupportedOperationException { Snmp4jAgentTutorialFileTreeIUEntryRow row = new Snmp4jAgentTutorialFileTreeIUEntryRow(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::createRow //--AgentGen END return row; } public synchronized void freeRow(Snmp4jAgentTutorialFileTreeIUEntryRow row) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::freeRow //--AgentGen END } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeIUEntry::RowFactory //--AgentGen END } public class Snmp4jAgentTutorialFileTreeFUEntryRow extends DefaultMOMutableRow2PC { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::RowMembers //--AgentGen END public Snmp4jAgentTutorialFileTreeFUEntryRow(OID index, Variable[] values) { super(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::RowConstructor //--AgentGen END } public OctetString getSnmp4jAgentTutorialFileTreeFUPath() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFUPath //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeFUPath); } public void setSnmp4jAgentTutorialFileTreeFUPath(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFUPath //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFUPath, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeFUType() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFUType //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeFUType); } public void setSnmp4jAgentTutorialFileTreeFUType(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFUType //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFUType, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeFUCreationTime() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFUCreationTime //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeFUCreationTime); } public void setSnmp4jAgentTutorialFileTreeFUCreationTime(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFUCreationTime //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFUCreationTime, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeFULastModified() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFULastModified //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeFULastModified); } public void setSnmp4jAgentTutorialFileTreeFULastModified(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFULastModified //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFULastModified, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeFULastAccessed() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFULastAccessed //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeFULastAccessed); } public void setSnmp4jAgentTutorialFileTreeFULastAccessed(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFULastAccessed //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFULastAccessed, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeFUSizeInBytes() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFUSizeInBytes //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeFUSizeInBytes); } public void setSnmp4jAgentTutorialFileTreeFUSizeInBytes(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFUSizeInBytes //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFUSizeInBytes, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeFUSize() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFUSize //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeFUSize); } public void setSnmp4jAgentTutorialFileTreeFUSize(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFUSize //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFUSize, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeFUSizeUnit() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFUSizeUnit //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeFUSizeUnit); } public void setSnmp4jAgentTutorialFileTreeFUSizeUnit(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFUSizeUnit //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFUSizeUnit, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeFUFileKey() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFUFileKey //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeFUFileKey); } public void setSnmp4jAgentTutorialFileTreeFUFileKey(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFUFileKey //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFUFileKey, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeFUPosixPerm() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::getSnmp4jAgentTutorialFileTreeFUPosixPerm //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeFUPosixPerm); } public void setSnmp4jAgentTutorialFileTreeFUPosixPerm(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::setSnmp4jAgentTutorialFileTreeFUPosixPerm //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeFUPosixPerm, newColValue); } public Variable getValue(int column) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::RowGetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeFUPath: return getSnmp4jAgentTutorialFileTreeFUPath(); case idxSnmp4jAgentTutorialFileTreeFUType: return getSnmp4jAgentTutorialFileTreeFUType(); case idxSnmp4jAgentTutorialFileTreeFUCreationTime: return getSnmp4jAgentTutorialFileTreeFUCreationTime(); case idxSnmp4jAgentTutorialFileTreeFULastModified: return getSnmp4jAgentTutorialFileTreeFULastModified(); case idxSnmp4jAgentTutorialFileTreeFULastAccessed: return getSnmp4jAgentTutorialFileTreeFULastAccessed(); case idxSnmp4jAgentTutorialFileTreeFUSizeInBytes: return getSnmp4jAgentTutorialFileTreeFUSizeInBytes(); case idxSnmp4jAgentTutorialFileTreeFUSize: return getSnmp4jAgentTutorialFileTreeFUSize(); case idxSnmp4jAgentTutorialFileTreeFUSizeUnit: return getSnmp4jAgentTutorialFileTreeFUSizeUnit(); case idxSnmp4jAgentTutorialFileTreeFUFileKey: return getSnmp4jAgentTutorialFileTreeFUFileKey(); case idxSnmp4jAgentTutorialFileTreeFUPosixPerm: return getSnmp4jAgentTutorialFileTreeFUPosixPerm(); default: return super.getValue(column); } } public void setValue(int column, Variable value) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::RowSetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeFUPath: setSnmp4jAgentTutorialFileTreeFUPath((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeFUType: setSnmp4jAgentTutorialFileTreeFUType((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeFUCreationTime: setSnmp4jAgentTutorialFileTreeFUCreationTime((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeFULastModified: setSnmp4jAgentTutorialFileTreeFULastModified((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeFULastAccessed: setSnmp4jAgentTutorialFileTreeFULastAccessed((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeFUSizeInBytes: setSnmp4jAgentTutorialFileTreeFUSizeInBytes((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeFUSize: setSnmp4jAgentTutorialFileTreeFUSize((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeFUSizeUnit: setSnmp4jAgentTutorialFileTreeFUSizeUnit((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeFUFileKey: setSnmp4jAgentTutorialFileTreeFUFileKey((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeFUPosixPerm: setSnmp4jAgentTutorialFileTreeFUPosixPerm((OctetString)value); break; default: super.setValue(column, value); } } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::Row //--AgentGen END } class Snmp4jAgentTutorialFileTreeFUEntryRowFactory implements MOTableRowFactory { public synchronized Snmp4jAgentTutorialFileTreeFUEntryRow createRow(OID index, Variable[] values) throws UnsupportedOperationException { Snmp4jAgentTutorialFileTreeFUEntryRow row = new Snmp4jAgentTutorialFileTreeFUEntryRow(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::createRow //--AgentGen END return row; } public synchronized void freeRow(Snmp4jAgentTutorialFileTreeFUEntryRow row) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::freeRow //--AgentGen END } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeFUEntry::RowFactory //--AgentGen END } public class Snmp4jAgentTutorialFileTreeDUEntryRow extends DefaultMOMutableRow2PC { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::RowMembers //--AgentGen END public Snmp4jAgentTutorialFileTreeDUEntryRow(OID index, Variable[] values) { super(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::RowConstructor //--AgentGen END } public OctetString getSnmp4jAgentTutorialFileTreeDUPath() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDUPath //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeDUPath); } public void setSnmp4jAgentTutorialFileTreeDUPath(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDUPath //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDUPath, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeDUType() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDUType //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeDUType); } public void setSnmp4jAgentTutorialFileTreeDUType(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDUType //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDUType, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeDUCreationTime() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDUCreationTime //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeDUCreationTime); } public void setSnmp4jAgentTutorialFileTreeDUCreationTime(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDUCreationTime //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDUCreationTime, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeDULastModified() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDULastModified //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeDULastModified); } public void setSnmp4jAgentTutorialFileTreeDULastModified(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDULastModified //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDULastModified, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeDULastAccessed() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDULastAccessed //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeDULastAccessed); } public void setSnmp4jAgentTutorialFileTreeDULastAccessed(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDULastAccessed //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDULastAccessed, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeDUSizeInBytes() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDUSizeInBytes //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeDUSizeInBytes); } public void setSnmp4jAgentTutorialFileTreeDUSizeInBytes(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDUSizeInBytes //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDUSizeInBytes, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeDUSize() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDUSize //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeDUSize); } public void setSnmp4jAgentTutorialFileTreeDUSize(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDUSize //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDUSize, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeDUSizeUnit() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDUSizeUnit //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeDUSizeUnit); } public void setSnmp4jAgentTutorialFileTreeDUSizeUnit(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDUSizeUnit //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDUSizeUnit, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeDUFileKey() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDUFileKey //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeDUFileKey); } public void setSnmp4jAgentTutorialFileTreeDUFileKey(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDUFileKey //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDUFileKey, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeDUPosixPerm() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::getSnmp4jAgentTutorialFileTreeDUPosixPerm //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeDUPosixPerm); } public void setSnmp4jAgentTutorialFileTreeDUPosixPerm(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::setSnmp4jAgentTutorialFileTreeDUPosixPerm //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeDUPosixPerm, newColValue); } public Variable getValue(int column) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::RowGetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeDUPath: return getSnmp4jAgentTutorialFileTreeDUPath(); case idxSnmp4jAgentTutorialFileTreeDUType: return getSnmp4jAgentTutorialFileTreeDUType(); case idxSnmp4jAgentTutorialFileTreeDUCreationTime: return getSnmp4jAgentTutorialFileTreeDUCreationTime(); case idxSnmp4jAgentTutorialFileTreeDULastModified: return getSnmp4jAgentTutorialFileTreeDULastModified(); case idxSnmp4jAgentTutorialFileTreeDULastAccessed: return getSnmp4jAgentTutorialFileTreeDULastAccessed(); case idxSnmp4jAgentTutorialFileTreeDUSizeInBytes: return getSnmp4jAgentTutorialFileTreeDUSizeInBytes(); case idxSnmp4jAgentTutorialFileTreeDUSize: return getSnmp4jAgentTutorialFileTreeDUSize(); case idxSnmp4jAgentTutorialFileTreeDUSizeUnit: return getSnmp4jAgentTutorialFileTreeDUSizeUnit(); case idxSnmp4jAgentTutorialFileTreeDUFileKey: return getSnmp4jAgentTutorialFileTreeDUFileKey(); case idxSnmp4jAgentTutorialFileTreeDUPosixPerm: return getSnmp4jAgentTutorialFileTreeDUPosixPerm(); default: return super.getValue(column); } } public void setValue(int column, Variable value) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::RowSetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeDUPath: setSnmp4jAgentTutorialFileTreeDUPath((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeDUType: setSnmp4jAgentTutorialFileTreeDUType((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeDUCreationTime: setSnmp4jAgentTutorialFileTreeDUCreationTime((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeDULastModified: setSnmp4jAgentTutorialFileTreeDULastModified((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeDULastAccessed: setSnmp4jAgentTutorialFileTreeDULastAccessed((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeDUSizeInBytes: setSnmp4jAgentTutorialFileTreeDUSizeInBytes((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeDUSize: setSnmp4jAgentTutorialFileTreeDUSize((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeDUSizeUnit: setSnmp4jAgentTutorialFileTreeDUSizeUnit((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeDUFileKey: setSnmp4jAgentTutorialFileTreeDUFileKey((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeDUPosixPerm: setSnmp4jAgentTutorialFileTreeDUPosixPerm((OctetString)value); break; default: super.setValue(column, value); } } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::Row //--AgentGen END } class Snmp4jAgentTutorialFileTreeDUEntryRowFactory implements MOTableRowFactory { public synchronized Snmp4jAgentTutorialFileTreeDUEntryRow createRow(OID index, Variable[] values) throws UnsupportedOperationException { Snmp4jAgentTutorialFileTreeDUEntryRow row = new Snmp4jAgentTutorialFileTreeDUEntryRow(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::createRow //--AgentGen END return row; } public synchronized void freeRow(Snmp4jAgentTutorialFileTreeDUEntryRow row) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::freeRow //--AgentGen END } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeDUEntry::RowFactory //--AgentGen END } public class Snmp4jAgentTutorialFileTreeEUEntryRow extends DefaultMOMutableRow2PC { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::RowMembers //--AgentGen END public Snmp4jAgentTutorialFileTreeEUEntryRow(OID index, Variable[] values) { super(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::RowConstructor //--AgentGen END } public OctetString getSnmp4jAgentTutorialFileTreeEUPath() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEUPath //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeEUPath); } public void setSnmp4jAgentTutorialFileTreeEUPath(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEUPath //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEUPath, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeEUType() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEUType //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeEUType); } public void setSnmp4jAgentTutorialFileTreeEUType(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEUType //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEUType, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeEUCreationTime() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEUCreationTime //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeEUCreationTime); } public void setSnmp4jAgentTutorialFileTreeEUCreationTime(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEUCreationTime //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEUCreationTime, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeEULastModified() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEULastModified //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeEULastModified); } public void setSnmp4jAgentTutorialFileTreeEULastModified(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEULastModified //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEULastModified, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeEULastAccessed() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEULastAccessed //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeEULastAccessed); } public void setSnmp4jAgentTutorialFileTreeEULastAccessed(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEULastAccessed //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEULastAccessed, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeEUSizeInBytes() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEUSizeInBytes //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeEUSizeInBytes); } public void setSnmp4jAgentTutorialFileTreeEUSizeInBytes(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEUSizeInBytes //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEUSizeInBytes, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeEUSize() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEUSize //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeEUSize); } public void setSnmp4jAgentTutorialFileTreeEUSize(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEUSize //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEUSize, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeEUSizeUnit() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEUSizeUnit //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeEUSizeUnit); } public void setSnmp4jAgentTutorialFileTreeEUSizeUnit(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEUSizeUnit //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEUSizeUnit, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeEUFileKey() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEUFileKey //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeEUFileKey); } public void setSnmp4jAgentTutorialFileTreeEUFileKey(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEUFileKey //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEUFileKey, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeEUPosixPerm() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::getSnmp4jAgentTutorialFileTreeEUPosixPerm //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeEUPosixPerm); } public void setSnmp4jAgentTutorialFileTreeEUPosixPerm(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::setSnmp4jAgentTutorialFileTreeEUPosixPerm //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeEUPosixPerm, newColValue); } public Variable getValue(int column) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::RowGetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeEUPath: return getSnmp4jAgentTutorialFileTreeEUPath(); case idxSnmp4jAgentTutorialFileTreeEUType: return getSnmp4jAgentTutorialFileTreeEUType(); case idxSnmp4jAgentTutorialFileTreeEUCreationTime: return getSnmp4jAgentTutorialFileTreeEUCreationTime(); case idxSnmp4jAgentTutorialFileTreeEULastModified: return getSnmp4jAgentTutorialFileTreeEULastModified(); case idxSnmp4jAgentTutorialFileTreeEULastAccessed: return getSnmp4jAgentTutorialFileTreeEULastAccessed(); case idxSnmp4jAgentTutorialFileTreeEUSizeInBytes: return getSnmp4jAgentTutorialFileTreeEUSizeInBytes(); case idxSnmp4jAgentTutorialFileTreeEUSize: return getSnmp4jAgentTutorialFileTreeEUSize(); case idxSnmp4jAgentTutorialFileTreeEUSizeUnit: return getSnmp4jAgentTutorialFileTreeEUSizeUnit(); case idxSnmp4jAgentTutorialFileTreeEUFileKey: return getSnmp4jAgentTutorialFileTreeEUFileKey(); case idxSnmp4jAgentTutorialFileTreeEUPosixPerm: return getSnmp4jAgentTutorialFileTreeEUPosixPerm(); default: return super.getValue(column); } } public void setValue(int column, Variable value) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::RowSetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeEUPath: setSnmp4jAgentTutorialFileTreeEUPath((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeEUType: setSnmp4jAgentTutorialFileTreeEUType((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeEUCreationTime: setSnmp4jAgentTutorialFileTreeEUCreationTime((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeEULastModified: setSnmp4jAgentTutorialFileTreeEULastModified((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeEULastAccessed: setSnmp4jAgentTutorialFileTreeEULastAccessed((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeEUSizeInBytes: setSnmp4jAgentTutorialFileTreeEUSizeInBytes((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeEUSize: setSnmp4jAgentTutorialFileTreeEUSize((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeEUSizeUnit: setSnmp4jAgentTutorialFileTreeEUSizeUnit((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeEUFileKey: setSnmp4jAgentTutorialFileTreeEUFileKey((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeEUPosixPerm: setSnmp4jAgentTutorialFileTreeEUPosixPerm((OctetString)value); break; default: super.setValue(column, value); } } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::Row //--AgentGen END } class Snmp4jAgentTutorialFileTreeEUEntryRowFactory implements MOTableRowFactory { public synchronized Snmp4jAgentTutorialFileTreeEUEntryRow createRow(OID index, Variable[] values) throws UnsupportedOperationException { Snmp4jAgentTutorialFileTreeEUEntryRow row = new Snmp4jAgentTutorialFileTreeEUEntryRow(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::createRow //--AgentGen END return row; } public synchronized void freeRow(Snmp4jAgentTutorialFileTreeEUEntryRow row) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::freeRow //--AgentGen END } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeEUEntry::RowFactory //--AgentGen END } public class Snmp4jAgentTutorialFileTreeBUEntryRow extends DefaultMOMutableRow2PC { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::RowMembers //--AgentGen END public Snmp4jAgentTutorialFileTreeBUEntryRow(OID index, Variable[] values) { super(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::RowConstructor //--AgentGen END } public OctetString getSnmp4jAgentTutorialFileTreeBUPath() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBUPath //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeBUPath); } public void setSnmp4jAgentTutorialFileTreeBUPath(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBUPath //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBUPath, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeBUType() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBUType //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeBUType); } public void setSnmp4jAgentTutorialFileTreeBUType(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBUType //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBUType, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeBUCreationTime() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBUCreationTime //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeBUCreationTime); } public void setSnmp4jAgentTutorialFileTreeBUCreationTime(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBUCreationTime //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBUCreationTime, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeBULastModified() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBULastModified //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeBULastModified); } public void setSnmp4jAgentTutorialFileTreeBULastModified(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBULastModified //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBULastModified, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeBULastAccessed() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBULastAccessed //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeBULastAccessed); } public void setSnmp4jAgentTutorialFileTreeBULastAccessed(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBULastAccessed //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBULastAccessed, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeBUSizeInBytes() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBUSizeInBytes //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeBUSizeInBytes); } public void setSnmp4jAgentTutorialFileTreeBUSizeInBytes(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBUSizeInBytes //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBUSizeInBytes, newColValue); } public UnsignedInteger32 getSnmp4jAgentTutorialFileTreeBUSize() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBUSize //--AgentGen END return (UnsignedInteger32) super.getValue(idxSnmp4jAgentTutorialFileTreeBUSize); } public void setSnmp4jAgentTutorialFileTreeBUSize(UnsignedInteger32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBUSize //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBUSize, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeBUSizeUnit() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBUSizeUnit //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeBUSizeUnit); } public void setSnmp4jAgentTutorialFileTreeBUSizeUnit(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBUSizeUnit //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBUSizeUnit, newColValue); } public Integer32 getSnmp4jAgentTutorialFileTreeBUFileKey() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBUFileKey //--AgentGen END return (Integer32) super.getValue(idxSnmp4jAgentTutorialFileTreeBUFileKey); } public void setSnmp4jAgentTutorialFileTreeBUFileKey(Integer32 newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBUFileKey //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBUFileKey, newColValue); } public OctetString getSnmp4jAgentTutorialFileTreeBUPosixPerm() { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::getSnmp4jAgentTutorialFileTreeBUPosixPerm //--AgentGen END return (OctetString) super.getValue(idxSnmp4jAgentTutorialFileTreeBUPosixPerm); } public void setSnmp4jAgentTutorialFileTreeBUPosixPerm(OctetString newColValue) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::setSnmp4jAgentTutorialFileTreeBUPosixPerm //--AgentGen END super.setValue(idxSnmp4jAgentTutorialFileTreeBUPosixPerm, newColValue); } public Variable getValue(int column) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::RowGetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeBUPath: return getSnmp4jAgentTutorialFileTreeBUPath(); case idxSnmp4jAgentTutorialFileTreeBUType: return getSnmp4jAgentTutorialFileTreeBUType(); case idxSnmp4jAgentTutorialFileTreeBUCreationTime: return getSnmp4jAgentTutorialFileTreeBUCreationTime(); case idxSnmp4jAgentTutorialFileTreeBULastModified: return getSnmp4jAgentTutorialFileTreeBULastModified(); case idxSnmp4jAgentTutorialFileTreeBULastAccessed: return getSnmp4jAgentTutorialFileTreeBULastAccessed(); case idxSnmp4jAgentTutorialFileTreeBUSizeInBytes: return getSnmp4jAgentTutorialFileTreeBUSizeInBytes(); case idxSnmp4jAgentTutorialFileTreeBUSize: return getSnmp4jAgentTutorialFileTreeBUSize(); case idxSnmp4jAgentTutorialFileTreeBUSizeUnit: return getSnmp4jAgentTutorialFileTreeBUSizeUnit(); case idxSnmp4jAgentTutorialFileTreeBUFileKey: return getSnmp4jAgentTutorialFileTreeBUFileKey(); case idxSnmp4jAgentTutorialFileTreeBUPosixPerm: return getSnmp4jAgentTutorialFileTreeBUPosixPerm(); default: return super.getValue(column); } } public void setValue(int column, Variable value) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::RowSetValue //--AgentGen END switch(column) { case idxSnmp4jAgentTutorialFileTreeBUPath: setSnmp4jAgentTutorialFileTreeBUPath((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeBUType: setSnmp4jAgentTutorialFileTreeBUType((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeBUCreationTime: setSnmp4jAgentTutorialFileTreeBUCreationTime((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeBULastModified: setSnmp4jAgentTutorialFileTreeBULastModified((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeBULastAccessed: setSnmp4jAgentTutorialFileTreeBULastAccessed((OctetString)value); break; case idxSnmp4jAgentTutorialFileTreeBUSizeInBytes: setSnmp4jAgentTutorialFileTreeBUSizeInBytes((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeBUSize: setSnmp4jAgentTutorialFileTreeBUSize((UnsignedInteger32)value); break; case idxSnmp4jAgentTutorialFileTreeBUSizeUnit: setSnmp4jAgentTutorialFileTreeBUSizeUnit((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeBUFileKey: setSnmp4jAgentTutorialFileTreeBUFileKey((Integer32)value); break; case idxSnmp4jAgentTutorialFileTreeBUPosixPerm: setSnmp4jAgentTutorialFileTreeBUPosixPerm((OctetString)value); break; default: super.setValue(column, value); } } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::Row //--AgentGen END } class Snmp4jAgentTutorialFileTreeBUEntryRowFactory implements MOTableRowFactory { public synchronized Snmp4jAgentTutorialFileTreeBUEntryRow createRow(OID index, Variable[] values) throws UnsupportedOperationException { Snmp4jAgentTutorialFileTreeBUEntryRow row = new Snmp4jAgentTutorialFileTreeBUEntryRow(index, values); //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::createRow //--AgentGen END return row; } public synchronized void freeRow(Snmp4jAgentTutorialFileTreeBUEntryRow row) { //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::freeRow //--AgentGen END } //--AgentGen BEGIN=snmp4jAgentTutorialFileTreeBUEntry::RowFactory //--AgentGen END } //--AgentGen BEGIN=_METHODS //--AgentGen END // Textual Definitions of MIB module Snmp4jAgentTutorialMib protected void addTCsToFactory(MOFactory moFactory) { moFactory.addTextualConvention(new Snmp4jAgentTutorialFileSizeUnit()); moFactory.addTextualConvention(new Snmp4jAgentTutorialFileType()); } public class Snmp4jAgentTutorialFileSizeUnit implements TextualConvention { public static final int bytes = 1; public static final int kiloBytes = 2; public static final int megaBytes = 3; public static final int gigaBytes = 4; public static final int petaBytes = 5; public Snmp4jAgentTutorialFileSizeUnit() { } public String getModuleName() { return TC_MODULE_SNMP4J_AGENT_TUTORIAL_MIB; } public String getName() { return TC_SNMP4JAGENTTUTORIALFILESIZEUNIT; } public Variable createInitialValue() { Variable v = new Integer32(); if (v instanceof AssignableFromLong) { ((AssignableFromLong)v).setValue(1); } // further modify value to comply with TC constraints here: //--AgentGen BEGIN=Snmp4jAgentTutorialFileSizeUnit::createInitialValue //--AgentGen END return v; } public MOScalar createScalar(OID oid, MOAccess access, Variable value) { MOScalar scalar = moFactory.createScalar(oid, access, value); ValueConstraint vc = new EnumerationConstraint( new int[] { bytes, kiloBytes, megaBytes, gigaBytes, petaBytes }); scalar.addMOValueValidationListener(new ValueConstraintValidator(vc)); //--AgentGen BEGIN=Snmp4jAgentTutorialFileSizeUnit::createScalar //--AgentGen END return scalar; } public MOColumn createColumn(int columnID, int syntax, MOAccess access, Variable defaultValue, boolean mutableInService) { MOColumn col = moFactory.createColumn(columnID, syntax, access, defaultValue, mutableInService); if (col instanceof MOMutableColumn) { MOMutableColumn mcol = (MOMutableColumn)col; ValueConstraint vc = new EnumerationConstraint( new int[] { bytes, kiloBytes, megaBytes, gigaBytes, petaBytes }); mcol.addMOValueValidationListener(new ValueConstraintValidator(vc)); } //--AgentGen BEGIN=Snmp4jAgentTutorialFileSizeUnit::createColumn //--AgentGen END return col; } } public class Snmp4jAgentTutorialFileType implements TextualConvention { public static final int regularFile = 1; public static final int directory = 2; public static final int symbolicLink = 3; public static final int other = 4; public Snmp4jAgentTutorialFileType() { } public String getModuleName() { return TC_MODULE_SNMP4J_AGENT_TUTORIAL_MIB; } public String getName() { return TC_SNMP4JAGENTTUTORIALFILETYPE; } public Variable createInitialValue() { Variable v = new Integer32(); if (v instanceof AssignableFromLong) { ((AssignableFromLong)v).setValue(1); } // further modify value to comply with TC constraints here: //--AgentGen BEGIN=Snmp4jAgentTutorialFileType::createInitialValue //--AgentGen END return v; } public MOScalar createScalar(OID oid, MOAccess access, Variable value) { MOScalar scalar = moFactory.createScalar(oid, access, value); ValueConstraint vc = new EnumerationConstraint( new int[] { regularFile, directory, symbolicLink, other }); scalar.addMOValueValidationListener(new ValueConstraintValidator(vc)); //--AgentGen BEGIN=Snmp4jAgentTutorialFileType::createScalar //--AgentGen END return scalar; } public MOColumn createColumn(int columnID, int syntax, MOAccess access, Variable defaultValue, boolean mutableInService) { MOColumn col = moFactory.createColumn(columnID, syntax, access, defaultValue, mutableInService); if (col instanceof MOMutableColumn) { MOMutableColumn mcol = (MOMutableColumn)col; ValueConstraint vc = new EnumerationConstraint( new int[] { regularFile, directory, symbolicLink, other }); mcol.addMOValueValidationListener(new ValueConstraintValidator(vc)); } //--AgentGen BEGIN=Snmp4jAgentTutorialFileType::createColumn //--AgentGen END return col; } } //--AgentGen BEGIN=_TC_CLASSES_IMPORTED_MODULES_BEGIN //--AgentGen END // Textual Definitions of other MIB modules public void addImportedTCsToFactory(MOFactory moFactory) { } //--AgentGen BEGIN=_TC_CLASSES_IMPORTED_MODULES_END //--AgentGen END //--AgentGen BEGIN=_CLASSES //--AgentGen END //--AgentGen BEGIN=_END //--AgentGen END }