HOME

com.ireasoning.util
Class MibModuleData

java.lang.Object
  extended bycom.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
 
Constructor Summary
MibModuleData(String fileName, String moduleName, String moduleIdentity, ArrayList nameValueList, Map imports)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getContactInfo()
           
 String getDescription()
           
 String getFileName()
           
 Map getImportsInfo()
           
 String getLastUpdated()
           
 String getModuleIdentity()
           
 String getModuleName()
           
 String getMostRecentRevision()
           
 String getOrganization()
           
 ArrayList getRevisions()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MibModuleData

public MibModuleData(String fileName,
                     String moduleName,
                     String moduleIdentity,
                     ArrayList nameValueList,
                     Map imports)
Parameters:
fileName - MIB file name
moduleName - Module name
moduleIdentity - Module identity
nameValueList - Revision list, which can be null.
imports - Imports info
Method Detail

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()

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.