/** * This file was auto-generated by mofcomp -j version 1.0.0 on Wed Jan 12 * 09:21:06 CET 2011. */ package org.opennaas.extensions.router.model; import java.io.*; import java.lang.Exception; /** * This Class contains accessor and mutator methods for all properties defined in the CIM class SNMPCommunityString as well as methods comparable to * the invokeMethods defined for this class. This Class implements the SNMPCommunityStringBean Interface. The CIM class SNMPCommunityString is * described as follows: * * SNMPCommunityString is an access point for an SNMPService. Each instance stores a community string that can be used for making SNMP requests. */ public class SNMPCommunityString extends ServiceAccessPoint implements Serializable { /** * This constructor creates a SNMPCommunityStringBeanImpl Class which implements the SNMPCommunityStringBean Interface, and encapsulates the CIM * class SNMPCommunityString in a Java Bean. The CIM class SNMPCommunityString is described as follows: * * SNMPCommunityString is an access point for an SNMPService. Each instance stores a community string that can be used for making SNMP requests. */ public SNMPCommunityString() { }; /** * The following constants are defined for use with the ValueMap/Values qualified property communityString. */ private String communityString; /** * This method returns the SNMPCommunityString.communityString property value. This property is described as follows: * * The SNMP community string/password used for read or read/write access to the agent's data. * * @return String current communityString property value * @exception Exception */ public String getCommunityString() { return this.communityString; } // getCommunityString /** * This method sets the SNMPCommunityString.communityString property value. This property is described as follows: * * The SNMP community string/password used for read or read/write access to the agent's data. * * @param String * new communityString property value * @exception Exception */ public void setCommunityString(String communityString) { this.communityString = communityString; } // setCommunityString /** * The following constants are defined for use with the ValueMap/Values qualified property TypeOfAccess. */ public enum TypeOfAccess { UNKNOWN, READ_ONLY, READ_WRITE } private TypeOfAccess typeOfAccess; /** * This method returns the SNMPCommunityString.typeOfAccess property value. This property is described as follows: * * An enumerated integer describing whether read or read/ write access is granted, or whether this information is unknown. * * @return int current typeOfAccess property value * @exception Exception */ public TypeOfAccess getTypeOfAccess() { return this.typeOfAccess; } // getTypeOfAccess /** * This method sets the SNMPCommunityString.typeOfAccess property value. This property is described as follows: * * An enumerated integer describing whether read or read/ write access is granted, or whether this information is unknown. * * @param int new typeOfAccess property value * @exception Exception */ public void setTypeOfAccess(TypeOfAccess typeOfAccess) { this.typeOfAccess = typeOfAccess; } // setTypeOfAccess /** * The following constants are defined for use with the ValueMap/Values qualified property logicalEntitiesAccessed. */ private String[] logicalEntitiesAccessed; /** * This method returns the SNMPCommunityString.logicalEntitiesAccessed property value. This property is described as follows: * * This array contains one or more object identifiers indicating the MIB modules/object subtrees that are accessed using the CommunityString. * Either text strings of numbers (such as 1.2.3.4.5), or words (such as 'system') are specified. When using text strings of numbers, an asterisk * (*) can replace any subidentifier to specify a subtree family - for example, 1.2.*.5. Descriptions related to each entry in the array are found * at the corresponding index of the LogicalEntitiesDescriptions property. * * @return String[] current logicalEntitiesAccessed property value * @exception Exception */ public String[] getLogicalEntitiesAccessed() { return this.logicalEntitiesAccessed; } // getLogicalEntitiesAccessed /** * This method sets the SNMPCommunityString.logicalEntitiesAccessed property value. This property is described as follows: * * This array contains one or more object identifiers indicating the MIB modules/object subtrees that are accessed using the CommunityString. * Either text strings of numbers (such as 1.2.3.4.5), or words (such as 'system') are specified. When using text strings of numbers, an asterisk * (*) can replace any subidentifier to specify a subtree family - for example, 1.2.*.5. Descriptions related to each entry in the array are found * at the corresponding index of the LogicalEntitiesDescriptions property. * * @param String * [] new logicalEntitiesAccessed property value * @exception Exception */ public void setLogicalEntitiesAccessed(String[] logicalEntitiesAccessed) { this.logicalEntitiesAccessed = logicalEntitiesAccessed; } // setLogicalEntitiesAccessed /** * The following constants are defined for use with the ValueMap/Values qualified property logicalEntitiesDescriptions. */ private String[] logicalEntitiesDescriptions; /** * This method returns the SNMPCommunityString.logicalEntitiesDescriptions property value. This property is described as follows: * * Free-form textual descriptions of the logical entities indicated in the LogicalEntitiesAccessed array. There is a correspondence between the * entity identifier in the LogicalEntitiesAccessed array, and the description in this array at the corresponding index. * * @return String[] current logicalEntitiesDescriptions property value * @exception Exception */ public String[] getLogicalEntitiesDescriptions() { return this.logicalEntitiesDescriptions; } // getLogicalEntitiesDescriptions /** * This method sets the SNMPCommunityString.logicalEntitiesDescriptions property value. This property is described as follows: * * Free-form textual descriptions of the logical entities indicated in the LogicalEntitiesAccessed array. There is a correspondence between the * entity identifier in the LogicalEntitiesAccessed array, and the description in this array at the corresponding index. * * @param String * [] new logicalEntitiesDescriptions property value * @exception Exception */ public void setLogicalEntitiesDescriptions(String[] logicalEntitiesDescriptions) { this.logicalEntitiesDescriptions = logicalEntitiesDescriptions; } // setLogicalEntitiesDescriptions } // Class SNMPCommunityString