Class RequisitionNode
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.requisition.RequisitionNode
-
public class RequisitionNode extends java.lang.ObjectRequisitionNode class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<RequisitionAsset>m_assetsprotected java.lang.Stringm_buildingprotected java.util.List<RequisitionCategory>m_categoriesprotected java.lang.Stringm_cityprotected java.lang.Stringm_foreignIdprotected java.util.List<RequisitionInterface>m_interfacesprotected java.lang.Stringm_locationprotected java.util.List<RequisitionMetaData>m_metaDataprotected java.lang.Stringm_nodeLabelprotected java.lang.Stringm_parentForeignIdprotected java.lang.Stringm_parentForeignSourceprotected java.lang.Stringm_parentNodeLabel
-
Constructor Summary
Constructors Constructor Description RequisitionNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandeleteAsset(java.lang.String name)deleteAssetbooleandeleteAsset(RequisitionAsset asset)deleteAssetbooleandeleteCategory(java.lang.String category)deleteCategorybooleandeleteCategory(RequisitionCategory category)deleteCategorybooleandeleteInterface(java.lang.String ipAddress)deleteInterfacebooleandeleteInterface(RequisitionInterface iface)removeInterfacebooleanequals(java.lang.Object obj)RequisitionAsset[]getAsset()getAssetRequisitionAssetgetAsset(java.lang.String name)getAssetintgetAssetCount()getAssetCountjava.util.List<RequisitionAsset>getAssets()getAssetsjava.lang.StringgetBuilding()Getter for the fieldbuilding.java.util.List<RequisitionCategory>getCategories()getCategoriesRequisitionCategory[]getCategory()getCategoryRequisitionCategorygetCategory(java.lang.String category)getCategoryintgetCategoryCount()getCategoryCountjava.lang.StringgetCity()Getter for the fieldcity.java.lang.StringgetForeignId()Getter for the fieldforeignId.RequisitionInterface[]getInterface()getInterfaceRequisitionInterfacegetInterface(java.lang.String ipAddress)getInterfaceintgetInterfaceCount()getInterfaceCountjava.util.List<RequisitionInterface>getInterfaces()getInterfacesjava.lang.StringgetLocation()Getter for the fieldlocation.java.util.List<RequisitionMetaData>getMetaData()java.lang.StringgetNodeLabel()Getter for the fieldnodeLabel.java.lang.StringgetParentForeignId()Getter for the fieldparentForeignId.java.lang.StringgetParentForeignSource()Getter for the fieldparentForeignSource.java.lang.StringgetParentNodeLabel()Getter for the fieldparentNodeLabel.inthashCode()voidputAsset(RequisitionAsset asset)putAssetvoidputCategory(RequisitionCategory category)putCategoryvoidputInterface(RequisitionInterface iface)putInterfacevoidsetAssets(java.util.Collection<RequisitionAsset> assets)setAssetsvoidsetBuilding(java.lang.String value)Setter for the fieldbuilding.voidsetCategories(java.util.Collection<RequisitionCategory> categories)setCategoriesvoidsetCity(java.lang.String value)Setter for the fieldcity.voidsetForeignId(java.lang.String value)Setter for the fieldforeignId.voidsetInterfaces(java.util.Collection<RequisitionInterface> interfaces)setInterfacesvoidsetLocation(java.lang.String value)Setter for the fieldlocation.voidsetMetaData(java.util.List<RequisitionMetaData> metaData)voidsetNodeLabel(java.lang.String value)Setter for the fieldnodeLabel.voidsetParentForeignId(java.lang.String value)Setter for the fieldparentForeignId.voidsetParentForeignSource(java.lang.String value)Setter for the fieldparentForeignSource.voidsetParentNodeLabel(java.lang.String value)Setter for the fieldparentNodeLabel.java.lang.StringtoString()voidvalidate()
-
-
-
Field Detail
-
m_location
protected java.lang.String m_location
-
m_interfaces
protected java.util.List<RequisitionInterface> m_interfaces
-
m_categories
protected java.util.List<RequisitionCategory> m_categories
-
m_assets
protected java.util.List<RequisitionAsset> m_assets
-
m_metaData
protected java.util.List<RequisitionMetaData> m_metaData
-
m_building
protected java.lang.String m_building
-
m_city
protected java.lang.String m_city
-
m_foreignId
protected java.lang.String m_foreignId
-
m_nodeLabel
protected java.lang.String m_nodeLabel
-
m_parentForeignSource
protected java.lang.String m_parentForeignSource
-
m_parentForeignId
protected java.lang.String m_parentForeignId
-
m_parentNodeLabel
protected java.lang.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 java.util.List<RequisitionInterface> getInterfaces()
getInterfaces
- Returns:
- a
Listobject.
-
setInterfaces
public void setInterfaces(java.util.Collection<RequisitionInterface> interfaces)
setInterfaces
- Parameters:
interfaces- aListobject.
-
getInterface
public RequisitionInterface getInterface(java.lang.String ipAddress)
getInterface
- Parameters:
ipAddress- aStringobject.- Returns:
- a
RequisitionInterfaceobject.
-
deleteInterface
public boolean deleteInterface(RequisitionInterface iface)
removeInterface
- Parameters:
iface- aRequisitionInterfaceobject.
-
deleteInterface
public boolean deleteInterface(java.lang.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 java.util.List<RequisitionCategory> getCategories()
getCategories
- Returns:
- a
Listobject.
-
setCategories
public void setCategories(java.util.Collection<RequisitionCategory> categories)
setCategories
- Parameters:
categories- aListobject.
-
getCategory
public RequisitionCategory getCategory(java.lang.String category)
getCategory
- Parameters:
category- aStringobject.- Returns:
- a
RequisitionCategoryobject.
-
deleteCategory
public boolean deleteCategory(RequisitionCategory category)
deleteCategory
- Parameters:
category- aRequisitionCategoryobject.
-
deleteCategory
public boolean deleteCategory(java.lang.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 java.util.List<RequisitionAsset> getAssets()
getAssets
- Returns:
- a
Listobject.
-
setAssets
public void setAssets(java.util.Collection<RequisitionAsset> assets)
setAssets
- Parameters:
assets- aListobject.
-
getAsset
public RequisitionAsset getAsset(java.lang.String name)
getAsset
- Parameters:
name- aStringobject.- Returns:
- a
RequisitionAssetobject.
-
deleteAsset
public boolean deleteAsset(java.lang.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 java.util.List<RequisitionMetaData> getMetaData()
-
setMetaData
public void setMetaData(java.util.List<RequisitionMetaData> metaData)
-
getLocation
public java.lang.String getLocation()
Getter for the field
location.- Returns:
- a
Stringobject.
-
setLocation
public void setLocation(java.lang.String value)
Setter for the field
location.- Parameters:
value- aStringobject.
-
getBuilding
public java.lang.String getBuilding()
Getter for the field
building.- Returns:
- a
Stringobject.
-
setBuilding
public void setBuilding(java.lang.String value)
Setter for the field
building.- Parameters:
value- aStringobject.
-
getCity
public java.lang.String getCity()
Getter for the field
city.- Returns:
- a
Stringobject.
-
setCity
public void setCity(java.lang.String value)
Setter for the field
city.- Parameters:
value- aStringobject.
-
getForeignId
public java.lang.String getForeignId()
Getter for the field
foreignId.- Returns:
- a
Stringobject.
-
setForeignId
public void setForeignId(java.lang.String value)
Setter for the field
foreignId.- Parameters:
value- aStringobject.
-
getNodeLabel
public java.lang.String getNodeLabel()
Getter for the field
nodeLabel.- Returns:
- a
Stringobject.
-
setNodeLabel
public void setNodeLabel(java.lang.String value)
Setter for the field
nodeLabel.- Parameters:
value- aStringobject.
-
getParentForeignSource
public java.lang.String getParentForeignSource()
Getter for the field
parentForeignSource.- Returns:
- a
Stringobject.
-
setParentForeignSource
public void setParentForeignSource(java.lang.String value)
Setter for the field
parentForeignSource.- Parameters:
value- aStringobject.
-
getParentForeignId
public java.lang.String getParentForeignId()
Getter for the field
parentForeignId.- Returns:
- a
Stringobject.
-
setParentForeignId
public void setParentForeignId(java.lang.String value)
Setter for the field
parentForeignId.- Parameters:
value- aStringobject.
-
getParentNodeLabel
public java.lang.String getParentNodeLabel()
Getter for the field
parentNodeLabel.- Returns:
- a
Stringobject.
-
setParentNodeLabel
public void setParentNodeLabel(java.lang.String value)
Setter for the field
parentNodeLabel.- Parameters:
value- aStringobject.
-
validate
public void validate() throws javax.xml.bind.ValidationException- Throws:
javax.xml.bind.ValidationException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-