Class RequisitionNode
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.requisition.RequisitionNode
-
public class RequisitionNode extends java.lang.Object
RequisitionNode class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<RequisitionAsset>
m_assets
protected java.lang.String
m_building
protected java.util.List<RequisitionCategory>
m_categories
protected java.lang.String
m_city
protected java.lang.String
m_foreignId
protected java.util.List<RequisitionInterface>
m_interfaces
protected java.lang.String
m_location
protected java.util.List<RequisitionMetaData>
m_metaData
protected java.lang.String
m_nodeLabel
protected java.lang.String
m_parentForeignId
protected java.lang.String
m_parentForeignSource
protected java.lang.String
m_parentNodeLabel
-
Constructor Summary
Constructors Constructor Description RequisitionNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteAsset(java.lang.String name)
deleteAssetboolean
deleteAsset(RequisitionAsset asset)
deleteAssetboolean
deleteCategory(java.lang.String category)
deleteCategoryboolean
deleteCategory(RequisitionCategory category)
deleteCategoryboolean
deleteInterface(java.lang.String ipAddress)
deleteInterfaceboolean
deleteInterface(RequisitionInterface iface)
removeInterfaceboolean
equals(java.lang.Object obj)
RequisitionAsset[]
getAsset()
getAssetRequisitionAsset
getAsset(java.lang.String name)
getAssetint
getAssetCount()
getAssetCountjava.util.List<RequisitionAsset>
getAssets()
getAssetsjava.lang.String
getBuilding()
Getter for the fieldbuilding
.java.util.List<RequisitionCategory>
getCategories()
getCategoriesRequisitionCategory[]
getCategory()
getCategoryRequisitionCategory
getCategory(java.lang.String category)
getCategoryint
getCategoryCount()
getCategoryCountjava.lang.String
getCity()
Getter for the fieldcity
.java.lang.String
getForeignId()
Getter for the fieldforeignId
.RequisitionInterface[]
getInterface()
getInterfaceRequisitionInterface
getInterface(java.lang.String ipAddress)
getInterfaceint
getInterfaceCount()
getInterfaceCountjava.util.List<RequisitionInterface>
getInterfaces()
getInterfacesjava.lang.String
getLocation()
Getter for the fieldlocation
.java.util.List<RequisitionMetaData>
getMetaData()
java.lang.String
getNodeLabel()
Getter for the fieldnodeLabel
.java.lang.String
getParentForeignId()
Getter for the fieldparentForeignId
.java.lang.String
getParentForeignSource()
Getter for the fieldparentForeignSource
.java.lang.String
getParentNodeLabel()
Getter for the fieldparentNodeLabel
.int
hashCode()
void
putAsset(RequisitionAsset asset)
putAssetvoid
putCategory(RequisitionCategory category)
putCategoryvoid
putInterface(RequisitionInterface iface)
putInterfacevoid
setAssets(java.util.Collection<RequisitionAsset> assets)
setAssetsvoid
setBuilding(java.lang.String value)
Setter for the fieldbuilding
.void
setCategories(java.util.Collection<RequisitionCategory> categories)
setCategoriesvoid
setCity(java.lang.String value)
Setter for the fieldcity
.void
setForeignId(java.lang.String value)
Setter for the fieldforeignId
.void
setInterfaces(java.util.Collection<RequisitionInterface> interfaces)
setInterfacesvoid
setLocation(java.lang.String value)
Setter for the fieldlocation
.void
setMetaData(java.util.List<RequisitionMetaData> metaData)
void
setNodeLabel(java.lang.String value)
Setter for the fieldnodeLabel
.void
setParentForeignId(java.lang.String value)
Setter for the fieldparentForeignId
.void
setParentForeignSource(java.lang.String value)
Setter for the fieldparentForeignSource
.void
setParentNodeLabel(java.lang.String value)
Setter for the fieldparentNodeLabel
.java.lang.String
toString()
void
validate()
-
-
-
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
RequisitionInterface
objects.
-
getInterfaces
public java.util.List<RequisitionInterface> getInterfaces()
getInterfaces
- Returns:
- a
List
object.
-
setInterfaces
public void setInterfaces(java.util.Collection<RequisitionInterface> interfaces)
setInterfaces
- Parameters:
interfaces
- aList
object.
-
getInterface
public RequisitionInterface getInterface(java.lang.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(java.lang.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 java.util.List<RequisitionCategory> getCategories()
getCategories
- Returns:
- a
List
object.
-
setCategories
public void setCategories(java.util.Collection<RequisitionCategory> categories)
setCategories
- Parameters:
categories
- aList
object.
-
getCategory
public RequisitionCategory getCategory(java.lang.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(java.lang.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 java.util.List<RequisitionAsset> getAssets()
getAssets
- Returns:
- a
List
object.
-
setAssets
public void setAssets(java.util.Collection<RequisitionAsset> assets)
setAssets
- Parameters:
assets
- aList
object.
-
getAsset
public RequisitionAsset getAsset(java.lang.String name)
getAsset
- Parameters:
name
- aString
object.- Returns:
- a
RequisitionAsset
object.
-
deleteAsset
public boolean deleteAsset(java.lang.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 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
String
object.
-
setLocation
public void setLocation(java.lang.String value)
Setter for the field
location
.- Parameters:
value
- aString
object.
-
getBuilding
public java.lang.String getBuilding()
Getter for the field
building
.- Returns:
- a
String
object.
-
setBuilding
public void setBuilding(java.lang.String value)
Setter for the field
building
.- Parameters:
value
- aString
object.
-
getCity
public java.lang.String getCity()
Getter for the field
city
.- Returns:
- a
String
object.
-
setCity
public void setCity(java.lang.String value)
Setter for the field
city
.- Parameters:
value
- aString
object.
-
getForeignId
public java.lang.String getForeignId()
Getter for the field
foreignId
.- Returns:
- a
String
object.
-
setForeignId
public void setForeignId(java.lang.String value)
Setter for the field
foreignId
.- Parameters:
value
- aString
object.
-
getNodeLabel
public java.lang.String getNodeLabel()
Getter for the field
nodeLabel
.- Returns:
- a
String
object.
-
setNodeLabel
public void setNodeLabel(java.lang.String value)
Setter for the field
nodeLabel
.- Parameters:
value
- aString
object.
-
getParentForeignSource
public java.lang.String getParentForeignSource()
Getter for the field
parentForeignSource
.- Returns:
- a
String
object.
-
setParentForeignSource
public void setParentForeignSource(java.lang.String value)
Setter for the field
parentForeignSource
.- Parameters:
value
- aString
object.
-
getParentForeignId
public java.lang.String getParentForeignId()
Getter for the field
parentForeignId
.- Returns:
- a
String
object.
-
setParentForeignId
public void setParentForeignId(java.lang.String value)
Setter for the field
parentForeignId
.- Parameters:
value
- aString
object.
-
getParentNodeLabel
public java.lang.String getParentNodeLabel()
Getter for the field
parentNodeLabel
.- Returns:
- a
String
object.
-
setParentNodeLabel
public void setParentNodeLabel(java.lang.String value)
Setter for the field
parentNodeLabel
.- Parameters:
value
- aString
object.
-
validate
public void validate() throws javax.xml.bind.ValidationException
- Throws:
javax.xml.bind.ValidationException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-