Class RequisitionNode
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.requisition.RequisitionNode
-
public class RequisitionNode extends Object
RequisitionNode class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description protected List<RequisitionAsset>m_assetsprotected Stringm_buildingprotected List<RequisitionCategory>m_categoriesprotected Stringm_cityprotected Stringm_foreignIdprotected List<RequisitionInterface>m_interfacesprotected Stringm_locationprotected List<RequisitionMetaData>m_metaDataprotected Stringm_nodeLabelprotected Stringm_parentForeignIdprotected Stringm_parentForeignSourceprotected Stringm_parentNodeLabel
-
Constructor Summary
Constructors Constructor Description RequisitionNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandeleteAsset(String name)deleteAssetbooleandeleteAsset(RequisitionAsset asset)deleteAssetbooleandeleteCategory(String category)deleteCategorybooleandeleteCategory(RequisitionCategory category)deleteCategorybooleandeleteInterface(String ipAddress)deleteInterfacebooleandeleteInterface(RequisitionInterface iface)removeInterfacebooleanequals(Object obj)RequisitionAsset[]getAsset()getAssetRequisitionAssetgetAsset(String name)getAssetintgetAssetCount()getAssetCountList<RequisitionAsset>getAssets()getAssetsStringgetBuilding()Getter for the fieldbuilding.List<RequisitionCategory>getCategories()getCategoriesRequisitionCategory[]getCategory()getCategoryRequisitionCategorygetCategory(String category)getCategoryintgetCategoryCount()getCategoryCountStringgetCity()Getter for the fieldcity.StringgetForeignId()Getter for the fieldforeignId.RequisitionInterface[]getInterface()getInterfaceRequisitionInterfacegetInterface(String ipAddress)getInterfaceintgetInterfaceCount()getInterfaceCountList<RequisitionInterface>getInterfaces()getInterfacesStringgetLocation()Getter for the fieldlocation.List<RequisitionMetaData>getMetaData()StringgetNodeLabel()Getter for the fieldnodeLabel.StringgetParentForeignId()Getter for the fieldparentForeignId.StringgetParentForeignSource()Getter for the fieldparentForeignSource.StringgetParentNodeLabel()Getter for the fieldparentNodeLabel.inthashCode()voidputAsset(RequisitionAsset asset)putAssetvoidputCategory(RequisitionCategory category)putCategoryvoidputInterface(RequisitionInterface iface)putInterfacevoidsetAssets(Collection<RequisitionAsset> assets)setAssetsvoidsetBuilding(String value)Setter for the fieldbuilding.voidsetCategories(Collection<RequisitionCategory> categories)setCategoriesvoidsetCity(String value)Setter for the fieldcity.voidsetForeignId(String value)Setter for the fieldforeignId.voidsetInterfaces(Collection<RequisitionInterface> interfaces)setInterfacesvoidsetLocation(String value)Setter for the fieldlocation.voidsetMetaData(List<RequisitionMetaData> metaData)voidsetNodeLabel(String value)Setter for the fieldnodeLabel.voidsetParentForeignId(String value)Setter for the fieldparentForeignId.voidsetParentForeignSource(String value)Setter for the fieldparentForeignSource.voidsetParentNodeLabel(String value)Setter for the fieldparentNodeLabel.StringtoString()voidvalidate()
-
-
-
Field Detail
-
m_location
protected String m_location
-
m_interfaces
protected List<RequisitionInterface> m_interfaces
-
m_categories
protected List<RequisitionCategory> m_categories
-
m_assets
protected List<RequisitionAsset> m_assets
-
m_metaData
protected List<RequisitionMetaData> m_metaData
-
m_building
protected String m_building
-
m_city
protected String m_city
-
m_foreignId
protected String m_foreignId
-
m_nodeLabel
protected String m_nodeLabel
-
m_parentForeignSource
protected String m_parentForeignSource
-
m_parentForeignId
protected String m_parentForeignId
-
m_parentNodeLabel
protected String m_parentNodeLabel
-
-
Method Detail
-
getInterfaceCount
public int getInterfaceCount()
getInterfaceCount
- Returns:
- a int.
-
getInterface
public RequisitionInterface[] getInterface()
getInterface
- Returns:
- an array of
RequisitionInterfaceobjects.
-
getInterfaces
public List<RequisitionInterface> getInterfaces()
getInterfaces
- Returns:
- a
Listobject.
-
setInterfaces
public void setInterfaces(Collection<RequisitionInterface> interfaces)
setInterfaces
- Parameters:
interfaces- aListobject.
-
getInterface
public RequisitionInterface getInterface(String ipAddress)
getInterface
- Parameters:
ipAddress- aStringobject.- Returns:
- a
RequisitionInterfaceobject.
-
deleteInterface
public boolean deleteInterface(RequisitionInterface iface)
removeInterface
- Parameters:
iface- aRequisitionInterfaceobject.
-
deleteInterface
public boolean deleteInterface(String ipAddress)
deleteInterface
- Parameters:
ipAddress- aStringobject.
-
putInterface
public void putInterface(RequisitionInterface iface)
putInterface
- Parameters:
iface- aRequisitionInterfaceobject.
-
getCategoryCount
public int getCategoryCount()
getCategoryCount
- Returns:
- a int.
-
getCategory
public RequisitionCategory[] getCategory()
getCategory
- Returns:
- an array of
RequisitionCategoryobjects.
-
getCategories
public List<RequisitionCategory> getCategories()
getCategories
- Returns:
- a
Listobject.
-
setCategories
public void setCategories(Collection<RequisitionCategory> categories)
setCategories
- Parameters:
categories- aListobject.
-
getCategory
public RequisitionCategory getCategory(String category)
getCategory
- Parameters:
category- aStringobject.- Returns:
- a
RequisitionCategoryobject.
-
deleteCategory
public boolean deleteCategory(RequisitionCategory category)
deleteCategory
- Parameters:
category- aRequisitionCategoryobject.
-
deleteCategory
public boolean deleteCategory(String category)
deleteCategory
- Parameters:
category- aStringobject.
-
putCategory
public void putCategory(RequisitionCategory category)
putCategory
- Parameters:
category- aRequisitionCategoryobject.
-
getAssetCount
public int getAssetCount()
getAssetCount
- Returns:
- a int.
-
getAsset
public RequisitionAsset[] getAsset()
getAsset
- Returns:
- an array of
RequisitionAssetobjects.
-
getAssets
public List<RequisitionAsset> getAssets()
getAssets
- Returns:
- a
Listobject.
-
setAssets
public void setAssets(Collection<RequisitionAsset> assets)
setAssets
- Parameters:
assets- aListobject.
-
getAsset
public RequisitionAsset getAsset(String name)
getAsset
- Parameters:
name- aStringobject.- Returns:
- a
RequisitionAssetobject.
-
deleteAsset
public boolean deleteAsset(String name)
deleteAsset
- Parameters:
name- aStringobject.
-
deleteAsset
public boolean deleteAsset(RequisitionAsset asset)
deleteAsset
- Parameters:
asset- aRequisitionAssetobject.
-
putAsset
public void putAsset(RequisitionAsset asset)
putAsset
- Parameters:
asset- aRequisitionAssetobject.
-
getMetaData
public List<RequisitionMetaData> getMetaData()
-
setMetaData
public void setMetaData(List<RequisitionMetaData> metaData)
-
setLocation
public void setLocation(String value)
Setter for the field
location.- Parameters:
value- aStringobject.
-
setBuilding
public void setBuilding(String value)
Setter for the field
building.- Parameters:
value- aStringobject.
-
setCity
public void setCity(String value)
Setter for the field
city.- Parameters:
value- aStringobject.
-
setForeignId
public void setForeignId(String value)
Setter for the field
foreignId.- Parameters:
value- aStringobject.
-
setNodeLabel
public void setNodeLabel(String value)
Setter for the field
nodeLabel.- Parameters:
value- aStringobject.
-
getParentForeignSource
public String getParentForeignSource()
Getter for the field
parentForeignSource.- Returns:
- a
Stringobject.
-
setParentForeignSource
public void setParentForeignSource(String value)
Setter for the field
parentForeignSource.- Parameters:
value- aStringobject.
-
getParentForeignId
public String getParentForeignId()
Getter for the field
parentForeignId.- Returns:
- a
Stringobject.
-
setParentForeignId
public void setParentForeignId(String value)
Setter for the field
parentForeignId.- Parameters:
value- aStringobject.
-
getParentNodeLabel
public String getParentNodeLabel()
Getter for the field
parentNodeLabel.- Returns:
- a
Stringobject.
-
setParentNodeLabel
public void setParentNodeLabel(String value)
Setter for the field
parentNodeLabel.- Parameters:
value- aStringobject.
-
validate
public void validate() throws ValidationException- Throws:
ValidationException
-
-