com.ireasoning.util
Class MibModuleData
java.lang.Object
com.ireasoning.util.MibModuleData
- All Implemented Interfaces:
- Serializable
- public class MibModuleData
- extends Object
- implements Serializable
This class contains data related to a MIB module.
- See Also:
- Serialized Form
Nested Class Summary |
class |
MibModuleData.Revision
This class represents the "revision" section in MODULE-IDENTITY node |
MibModuleData
public MibModuleData(String fileName,
String moduleName,
String moduleIdentity,
ArrayList nameValueList,
Map imports)
- Parameters:
fileName
- MIB file namemoduleName
- Module namemoduleIdentity
- Module identitynameValueList
- Revision list, which can be null.imports
- Imports info
getDescription
public String getDescription()
- Returns:
- MIB module's descrition
getModuleName
public String getModuleName()
- Returns:
- MIB module name
getModuleIdentity
public String getModuleIdentity()
- Returns:
- MIB module identity
getFileName
public String getFileName()
- Returns:
- MIB file name. Only application if MIB is loaded from a file
getRevisions
public ArrayList getRevisions()
- Returns:
- an
ArrayList <MibModuleData.Revision>
object, whose elements are MibModuleData.Revision objects.
getContactInfo
public String getContactInfo()
getLastUpdated
public String getLastUpdated()
- Returns:
- LAST-UPDATED timestamp
getOrganization
public String getOrganization()
- Returns:
- ORGANIZATION value
getImportsInfo
public Map getImportsInfo()
- Returns:
- a
HashMap <String, HashSet<String>>
, whose key is module name, and value is a HashSet, which contains nodes to be
imported from this module.
getMostRecentRevision
public String getMostRecentRevision()
- Returns:
- most recent timestamp of revision sections
equals
public boolean equals(Object obj)
hashCode
public int hashCode()
toString
public String toString()
Copyright © 2002 iReasoning Inc. All Rights Reserved.