JASMI API

com.agentpp.smi.event
Class ImportModuleEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.agentpp.smi.event.ImportModuleEvent
All Implemented Interfaces:
java.io.Serializable

public class ImportModuleEvent
extends java.util.EventObject

The ImportModuleEvent is fired by a repository manager when it tries to parse/load a SMI document without using a MIB repository.

Version:
1.5
Author:
Frank Fock
See Also:
Serialized Form

Constructor Summary
ImportModuleEvent(java.lang.Object source, java.lang.String moduleName)
           
 
Method Summary
 java.lang.String getModuleName()
          Get the module name of the module that needs to be imported.
 IObject[] getObjects()
           
 void setObjects(IObject[] newObjects)
          An event receiver should set the objects it has imported for the requested MIB module whose name is specified by getModuleName().
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImportModuleEvent

public ImportModuleEvent(java.lang.Object source,
                         java.lang.String moduleName)
Method Detail

getObjects

public IObject[] getObjects()

setObjects

public void setObjects(IObject[] newObjects)
An event receiver should set the objects it has imported for the requested MIB module whose name is specified by getModuleName(). If the receiver fails to import the given module, it should not call this method. If the imported MIB module does not contain any objects, an empty array should be set.

Parameters:
importedObjects - an array of IObjects. Null denotes an error.

getModuleName

public java.lang.String getModuleName()
Get the module name of the module that needs to be imported.

Returns:
a String representing a SMI module name.

JASMI API

JASMI 3
Copyright 2001-2010 Frank Fock
All Rights Reserved