"WEBNMS_5 API Docs"

com.adventnet.nms.provisioning.xml
Class MOInput

java.lang.Object
  extended by com.adventnet.management.config.xml.BaseElement
      extended by com.adventnet.nms.provisioning.xml.MOInput
All Implemented Interfaces:
java.io.Serializable

public class MOInput
extends BaseElement

The MOInput class represents Managed Object input data in the templates. Data are obtained from managed objects in the database. The user can use the MOInput element for getting the data from Provisioning database. For getting data from databases other than Provisioning database, the user can use SQLInput element.

Usage of Tag in the Template:
<MOInput id="1#" MOName="localhost" MOField="ipAddress" default="127.0.0.0" />
The id attribute refers to a unique id for the Inventory Input. The value obtained through this MOInput can be used anywhere in the Template by giving $InventoryInput$1#.
MOName refers to the name of the Managed Object.
MOField refers to the property of the Managed Object.

Since:
3.0
See Also:
SQLInput, InventoryInput, Serialized Form

Field Summary
 
Fields inherited from class com.adventnet.management.config.xml.BaseElement
element, isServer
 
Constructor Summary
MOInput()
          Creates a new MOInput instance.
MOInput(org.w3c.dom.Element element)
          Creates a new MOInput that contains representaion of the supplied xml element.
MOInput(java.lang.String xmlString)
          Creates a new MOInput object that contains representation of the supplied xml string.
 
Method Summary
 java.lang.String getDefault()
          Fetches default attribute value.
 java.lang.String getId()
          Fetches unique identifier associated with this MOInput.
 java.lang.String getMOField()
          Fetches the property name of the Managed Object, the data of which has to be collected.
 java.lang.String getMOName()
          Fetches the name of the Managed Object, the data of which has to be collected.
 java.lang.String getUseInventoryService()
          Fetches useInventoryService attribute value.
 java.lang.String getValue()
          Fetches value attribute value.
 void setDefault(java.lang.String defaultValue)
          Sets default attribute value to the specified one.
 void setId(java.lang.String id)
          Sets unique identifier associated with this MOInput.
 void setMOField(java.lang.String moField)
          Sets the property name of the Managed Object.
 void setMOName(java.lang.String moName)
          Sets the name of the Managed Object from which data need to be fetched.
 void setUseInventoryService(java.lang.String useInventoryService)
          Sets useInventoryService attribute value to the specified one.
 void setValue(java.lang.String value)
          Sets value attribute value to the specified one.
 
Methods inherited from class com.adventnet.management.config.xml.BaseElement
addSubTag, getAttribute, getElement, getProperties, getSubTagsByName, hasAttribute, removeSubTagsByName, setAttribute, setProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MOInput

public MOInput(org.w3c.dom.Element element)
        throws InvalidTemplateException
Creates a new MOInput that contains representaion of the supplied xml element.

Parameters:
element - element that represents MOInput.
Throws:
InvalidTemplateException - if an error occurs

MOInput

public MOInput(java.lang.String xmlString)
        throws InvalidTemplateException
Creates a new MOInput object that contains representation of the supplied xml string.

Parameters:
xmlString - xml string that contains representation of this MOInput.
Throws:
InvalidTemplateException - if any error occurs.

MOInput

public MOInput()
Creates a new MOInput instance.

Method Detail

getMOName

public java.lang.String getMOName()
Fetches the name of the Managed Object, the data of which has to be collected.

Returns:
Value of "MOName" attribute of this MOInput.

setMOName

public void setMOName(java.lang.String moName)
Sets the name of the Managed Object from which data need to be fetched.

Parameters:
moName - value of "MOName" attribute of this MOInput.

getMOField

public java.lang.String getMOField()
Fetches the property name of the Managed Object, the data of which has to be collected.

Returns:
Value of "MOField" attribute of this MOInput.

setMOField

public void setMOField(java.lang.String moField)
Sets the property name of the Managed Object.

Parameters:
moField - value of "MOField" attribute of this MOInput.

getId

public java.lang.String getId()
Fetches unique identifier associated with this MOInput.

Returns:
Value of "id" attribute of this MOInput.

setId

public void setId(java.lang.String id)
Sets unique identifier associated with this MOInput.

Parameters:
id - value of "id" attribute of this MOInput.

getUseInventoryService

public java.lang.String getUseInventoryService()
Fetches useInventoryService attribute value.

Returns:
value of "useInventoryService" attribute of this MOInput.

setUseInventoryService

public void setUseInventoryService(java.lang.String useInventoryService)
Sets useInventoryService attribute value to the specified one.

Parameters:
useInventoryService - value of "useInventoryService" attribute of this MOInput.

getDefault

public java.lang.String getDefault()
Fetches default attribute value.

Returns:
value of "default" attribute of this MOInput.

setDefault

public void setDefault(java.lang.String defaultValue)
Sets default attribute value to the specified one.

Parameters:
defaultValue - value of "default" attribute of this MOInput.

getValue

public java.lang.String getValue()
Fetches value attribute value.

Returns:
value of "value" attribute of this MOInput.

setValue

public void setValue(java.lang.String value)
Sets value attribute value to the specified one.

Parameters:
value - value of "value" attribute of this MOInput.

"WEBNMS_5 API Docs"

Copyright © 2011 ZOHO Corp., All Rights Reserved.