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_assets
protected String
m_building
protected List<RequisitionCategory>
m_categories
protected String
m_city
protected String
m_foreignId
protected List<RequisitionInterface>
m_interfaces
protected String
m_location
protected List<RequisitionMetaData>
m_metaData
protected String
m_nodeLabel
protected String
m_parentForeignId
protected String
m_parentForeignSource
protected String
m_parentNodeLabel
-
Constructor Summary
Constructors Constructor Description RequisitionNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteAsset(String name)
deleteAssetboolean
deleteAsset(RequisitionAsset asset)
deleteAssetboolean
deleteCategory(String category)
deleteCategoryboolean
deleteCategory(RequisitionCategory category)
deleteCategoryboolean
deleteInterface(String ipAddress)
deleteInterfaceboolean
deleteInterface(RequisitionInterface iface)
removeInterfaceboolean
equals(Object obj)
RequisitionAsset[]
getAsset()
getAssetRequisitionAsset
getAsset(String name)
getAssetint
getAssetCount()
getAssetCountList<RequisitionAsset>
getAssets()
getAssetsString
getBuilding()
Getter for the fieldbuilding
.List<RequisitionCategory>
getCategories()
getCategoriesRequisitionCategory[]
getCategory()
getCategoryRequisitionCategory
getCategory(String category)
getCategoryint
getCategoryCount()
getCategoryCountString
getCity()
Getter for the fieldcity
.String
getForeignId()
Getter for the fieldforeignId
.RequisitionInterface[]
getInterface()
getInterfaceRequisitionInterface
getInterface(String ipAddress)
getInterfaceint
getInterfaceCount()
getInterfaceCountList<RequisitionInterface>
getInterfaces()
getInterfacesString
getLocation()
Getter for the fieldlocation
.List<RequisitionMetaData>
getMetaData()
String
getNodeLabel()
Getter for the fieldnodeLabel
.String
getParentForeignId()
Getter for the fieldparentForeignId
.String
getParentForeignSource()
Getter for the fieldparentForeignSource
.String
getParentNodeLabel()
Getter for the fieldparentNodeLabel
.int
hashCode()
void
putAsset(RequisitionAsset asset)
putAssetvoid
putCategory(RequisitionCategory category)
putCategoryvoid
putInterface(RequisitionInterface iface)
putInterfacevoid
setAssets(Collection<RequisitionAsset> assets)
setAssetsvoid
setBuilding(String value)
Setter for the fieldbuilding
.void
setCategories(Collection<RequisitionCategory> categories)
setCategoriesvoid
setCity(String value)
Setter for the fieldcity
.void
setForeignId(String value)
Setter for the fieldforeignId
.void
setInterfaces(Collection<RequisitionInterface> interfaces)
setInterfacesvoid
setLocation(String value)
Setter for the fieldlocation
.void
setMetaData(List<RequisitionMetaData> metaData)
void
setNodeLabel(String value)
Setter for the fieldnodeLabel
.void
setParentForeignId(String value)
Setter for the fieldparentForeignId
.void
setParentForeignSource(String value)
Setter for the fieldparentForeignSource
.void
setParentNodeLabel(String value)
Setter for the fieldparentNodeLabel
.String
toString()
void
validate()
-
-
-
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
RequisitionInterface
objects.
-
getInterfaces
public List<RequisitionInterface> getInterfaces()
getInterfaces
- Returns:
- a
List
object.
-
setInterfaces
public void setInterfaces(Collection<RequisitionInterface> interfaces)
setInterfaces
- Parameters:
interfaces
- aList
object.
-
getInterface
public RequisitionInterface getInterface(String ipAddress)
getInterface
- Parameters:
ipAddress
- aString
object.- Returns:
- a
RequisitionInterface
object.
-
deleteInterface
public boolean deleteInterface(RequisitionInterface iface)
removeInterface
- Parameters:
iface
- aRequisitionInterface
object.
-
deleteInterface
public boolean deleteInterface(String ipAddress)
deleteInterface
- Parameters:
ipAddress
- aString
object.
-
putInterface
public void putInterface(RequisitionInterface iface)
putInterface
- Parameters:
iface
- aRequisitionInterface
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
- aList
object.
-
getCategory
public RequisitionCategory getCategory(String category)
getCategory
- Parameters:
category
- aString
object.- Returns:
- a
RequisitionCategory
object.
-
deleteCategory
public boolean deleteCategory(RequisitionCategory category)
deleteCategory
- Parameters:
category
- aRequisitionCategory
object.
-
deleteCategory
public boolean deleteCategory(String category)
deleteCategory
- Parameters:
category
- aString
object.
-
putCategory
public void putCategory(RequisitionCategory category)
putCategory
- Parameters:
category
- aRequisitionCategory
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
- aList
object.
-
getAsset
public RequisitionAsset getAsset(String name)
getAsset
- Parameters:
name
- aString
object.- Returns:
- a
RequisitionAsset
object.
-
deleteAsset
public boolean deleteAsset(String name)
deleteAsset
- Parameters:
name
- aString
object.
-
deleteAsset
public boolean deleteAsset(RequisitionAsset asset)
deleteAsset
- Parameters:
asset
- aRequisitionAsset
object.
-
putAsset
public void putAsset(RequisitionAsset asset)
putAsset
- Parameters:
asset
- aRequisitionAsset
object.
-
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
- aString
object.
-
setBuilding
public void setBuilding(String value)
Setter for the field
building
.- Parameters:
value
- aString
object.
-
setCity
public void setCity(String value)
Setter for the field
city
.- Parameters:
value
- aString
object.
-
setForeignId
public void setForeignId(String value)
Setter for the field
foreignId
.- Parameters:
value
- aString
object.
-
setNodeLabel
public void setNodeLabel(String value)
Setter for the field
nodeLabel
.- Parameters:
value
- aString
object.
-
getParentForeignSource
public String getParentForeignSource()
Getter for the field
parentForeignSource
.- Returns:
- a
String
object.
-
setParentForeignSource
public void setParentForeignSource(String value)
Setter for the field
parentForeignSource
.- Parameters:
value
- aString
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
- aString
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
- aString
object.
-
validate
public void validate() throws ValidationException
- Throws:
ValidationException
-
-