AdventNet Web NMS 4 API Specification

com.adventnet.nms.util
Class MenuParser

java.lang.Object
  |
  +--com.adventnet.nms.util.MenuParser

public class MenuParser
extends java.lang.Object

Menu parser is used for building the object specific menu for the given menu name.


Constructor Summary
MenuParser(java.lang.String nameOfManagedObject, java.lang.String file, boolean list, java.lang.String user, java.lang.String mapname)
          Menu parser is used for building the object specific menu for the given menu name.
 
Method Summary
 java.util.Vector getMenuEntries()
          This will return the menu items.
 java.util.Vector getMenuEntriesURL()
          This will return the URL menu item should point to.
 java.lang.String getMenuName()
          This will return the menu names.
 java.util.Vector getMenuTypes()
          This will return the menu types.
 java.lang.String replaceWithRuntimeVariables(java.lang.String str)
          Used for replacing the runtime variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuParser

public MenuParser(java.lang.String nameOfManagedObject,
                  java.lang.String file,
                  boolean list,
                  java.lang.String user,
                  java.lang.String mapname)
           throws com.adventnet.nms.util.ModuleNotInitializedException
Menu parser is used for building the object specific menu for the given menu name.
Parameters:
nameOfManagedObject - The object name.
file - The Absolute path.
list - Specifies if list menu or not.
user - username.
mapname - the name of the map.
Throws:
com.adventnet.nms.util.ModuleNotInitializedException -  
Method Detail

getMenuName

public java.lang.String getMenuName()
This will return the menu names.
Returns:
Vector containing the menu names.

getMenuEntries

public java.util.Vector getMenuEntries()
This will return the menu items.
Returns:
Vector containing the menu items.

getMenuEntriesURL

public java.util.Vector getMenuEntriesURL()
This will return the URL menu item should point to.
Returns:
Vector containing the menu entries URL.

getMenuTypes

public java.util.Vector getMenuTypes()
This will return the menu types.
Returns:
Vector containing the menu types.

replaceWithRuntimeVariables

public java.lang.String replaceWithRuntimeVariables(java.lang.String str)
Used for replacing the runtime variables.
Parameters:
str - This contains string to be replaced with tokenizers("${}") in between.
Returns:
required replaced string .

AdventNet Web NMS 4 API Specification