org.opennms.netmgt.provision.persist.requisition
Class RequisitionNode

java.lang.Object
  extended by org.opennms.netmgt.provision.persist.requisition.RequisitionNode

public class RequisitionNode
extends Object

RequisitionNode class.

Version:
$Id: $
Author:
ranger

Field Summary
protected  String building
           
protected  String city
           
protected  String foreignId
           
protected  List<RequisitionAsset> m_assets
           
protected  List<RequisitionCategory> m_categories
           
protected  List<RequisitionInterface> m_interfaces
           
protected  String nodeLabel
           
protected  String parentForeignId
           
protected  String parentNodeLabel
           
 
Constructor Summary
RequisitionNode()
           
 
Method Summary
 void deleteAsset(RequisitionAsset asset)
          deleteAsset
 void deleteAsset(String name)
          deleteAsset
 void deleteCategory(RequisitionCategory category)
          deleteCategory
 void deleteCategory(String category)
          deleteCategory
 void deleteInterface(RequisitionInterface iface)
          removeInterface
 void deleteInterface(String ipAddress)
          deleteInterface
 RequisitionAsset[] getAsset()
          getAsset
 RequisitionAsset getAsset(String name)
          getAsset
 int getAssetCount()
          getAssetCount
 List<RequisitionAsset> getAssets()
          getAssets
 String getBuilding()
          Getter for the field building.
 List<RequisitionCategory> getCategories()
          getCategories
 RequisitionCategory[] getCategory()
          getCategory
 RequisitionCategory getCategory(String category)
          getCategory
 int getCategoryCount()
          getCategoryCount
 String getCity()
          Getter for the field city.
 String getForeignId()
          Getter for the field foreignId.
 RequisitionInterface[] getInterface()
          getInterface
 RequisitionInterface getInterface(String ipAddress)
          getInterface
 int getInterfaceCount()
          getInterfaceCount
 List<RequisitionInterface> getInterfaces()
          getInterfaces
 String getNodeLabel()
          Getter for the field nodeLabel.
 String getParentForeignId()
          Getter for the field parentForeignId.
 String getParentNodeLabel()
          Getter for the field parentNodeLabel.
 void putAsset(RequisitionAsset asset)
          putAsset
 void putCategory(RequisitionCategory category)
          putCategory
 void putInterface(RequisitionInterface iface)
          putInterface
 void setAssets(Collection<RequisitionAsset> assets)
          setAssets
 void setBuilding(String value)
          Setter for the field building.
 void setCategories(Collection<RequisitionCategory> categories)
          setCategories
 void setCity(String value)
          Setter for the field city.
 void setForeignId(String value)
          Setter for the field foreignId.
 void setInterfaces(Collection<RequisitionInterface> interfaces)
          setInterfaces
 void setNodeLabel(String value)
          Setter for the field nodeLabel.
 void setParentForeignId(String value)
          Setter for the field parentForeignId.
 void setParentNodeLabel(String value)
          Setter for the field parentNodeLabel.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_interfaces

protected List<RequisitionInterface> m_interfaces

m_categories

protected List<RequisitionCategory> m_categories

m_assets

protected List<RequisitionAsset> m_assets

building

protected String building

city

protected String city

foreignId

protected String foreignId

nodeLabel

protected String nodeLabel

parentForeignId

protected String parentForeignId

parentNodeLabel

protected String parentNodeLabel
Constructor Detail

RequisitionNode

public RequisitionNode()
Method Detail

getInterfaceCount

public int getInterfaceCount()

getInterfaceCount

Returns:
a int.

getInterface

public RequisitionInterface[] getInterface()

getInterface

Returns:
an array of RequisitionInterface objects.

getInterfaces

public List<RequisitionInterface> getInterfaces()

getInterfaces

Returns:
a List object.

setInterfaces

public void setInterfaces(Collection<RequisitionInterface> interfaces)

setInterfaces

Parameters:
interfaces - a List object.

getInterface

public RequisitionInterface getInterface(String ipAddress)

getInterface

Parameters:
ipAddress - a String object.
Returns:
a RequisitionInterface object.

deleteInterface

public void deleteInterface(RequisitionInterface iface)

removeInterface

Parameters:
iface - a RequisitionInterface object.

deleteInterface

public void deleteInterface(String ipAddress)

deleteInterface

Parameters:
ipAddress - a String object.

putInterface

public void putInterface(RequisitionInterface iface)

putInterface

Parameters:
iface - a RequisitionInterface object.

getCategoryCount

public int getCategoryCount()

getCategoryCount

Returns:
a int.

getCategory

public RequisitionCategory[] getCategory()

getCategory

Returns:
an array of RequisitionCategory objects.

getCategories

public List<RequisitionCategory> getCategories()

getCategories

Returns:
a List object.

setCategories

public void setCategories(Collection<RequisitionCategory> categories)

setCategories

Parameters:
categories - a List object.

getCategory

public RequisitionCategory getCategory(String category)

getCategory

Parameters:
category - a String object.
Returns:
a RequisitionCategory object.

deleteCategory

public void deleteCategory(RequisitionCategory category)

deleteCategory

Parameters:
category - a RequisitionCategory object.

deleteCategory

public void deleteCategory(String category)

deleteCategory

Parameters:
category - a String object.

putCategory

public void putCategory(RequisitionCategory category)

putCategory

Parameters:
category - a RequisitionCategory object.

getAssetCount

public int getAssetCount()

getAssetCount

Returns:
a int.

getAsset

public RequisitionAsset[] getAsset()

getAsset

Returns:
an array of RequisitionAsset objects.

getAssets

public List<RequisitionAsset> getAssets()

getAssets

Returns:
a List object.

setAssets

public void setAssets(Collection<RequisitionAsset> assets)

setAssets

Parameters:
assets - a List object.

getAsset

public RequisitionAsset getAsset(String name)

getAsset

Parameters:
name - a String object.
Returns:
a RequisitionAsset object.

deleteAsset

public void deleteAsset(String name)

deleteAsset

Parameters:
name - a String object.

deleteAsset

public void deleteAsset(RequisitionAsset asset)

deleteAsset

Parameters:
asset - a RequisitionAsset object.

putAsset

public void putAsset(RequisitionAsset asset)

putAsset

Parameters:
asset - a RequisitionAsset object.

getBuilding

public String getBuilding()

Getter for the field building.

Returns:
a String object.

setBuilding

public void setBuilding(String value)

Setter for the field building.

Parameters:
value - a String object.

getCity

public String getCity()

Getter for the field city.

Returns:
a String object.

setCity

public void setCity(String value)

Setter for the field city.

Parameters:
value - a String object.

getForeignId

public String getForeignId()

Getter for the field foreignId.

Returns:
a String object.

setForeignId

public void setForeignId(String value)

Setter for the field foreignId.

Parameters:
value - a String object.

getNodeLabel

public String getNodeLabel()

Getter for the field nodeLabel.

Returns:
a String object.

setNodeLabel

public void setNodeLabel(String value)

Setter for the field nodeLabel.

Parameters:
value - a String object.

getParentForeignId

public String getParentForeignId()

Getter for the field parentForeignId.

Returns:
a String object.

setParentForeignId

public void setParentForeignId(String value)

Setter for the field parentForeignId.

Parameters:
value - a String object.

getParentNodeLabel

public String getParentNodeLabel()

Getter for the field parentNodeLabel.

Returns:
a String object.

setParentNodeLabel

public void setParentNodeLabel(String value)

Setter for the field parentNodeLabel.

Parameters:
value - a String object.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.