public class RequisitionNode extends Object
RequisitionNode class.
Modifier and Type | Field and 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 and Description |
---|
RequisitionNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteAsset(RequisitionAsset asset)
deleteAsset
|
boolean |
deleteAsset(String name)
deleteAsset
|
boolean |
deleteCategory(RequisitionCategory category)
deleteCategory
|
boolean |
deleteCategory(String category)
deleteCategory
|
boolean |
deleteInterface(RequisitionInterface iface)
removeInterface
|
boolean |
deleteInterface(String ipAddress)
deleteInterface
|
boolean |
equals(Object obj) |
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 |
getLocation()
Getter for the field
location . |
List<RequisitionMetaData> |
getMetaData() |
String |
getNodeLabel()
Getter for the field
nodeLabel . |
String |
getParentForeignId()
Getter for the field
parentForeignId . |
String |
getParentForeignSource()
Getter for the field
parentForeignSource . |
String |
getParentNodeLabel()
Getter for the field
parentNodeLabel . |
int |
hashCode() |
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 |
setLocation(String value)
Setter for the field
location . |
void |
setMetaData(List<RequisitionMetaData> metaData) |
void |
setNodeLabel(String value)
Setter for the field
nodeLabel . |
void |
setParentForeignId(String value)
Setter for the field
parentForeignId . |
void |
setParentForeignSource(String value)
Setter for the field
parentForeignSource . |
void |
setParentNodeLabel(String value)
Setter for the field
parentNodeLabel . |
String |
toString() |
void |
validate() |
protected String m_location
protected List<RequisitionInterface> m_interfaces
protected List<RequisitionCategory> m_categories
protected List<RequisitionAsset> m_assets
protected List<RequisitionMetaData> m_metaData
protected String m_building
protected String m_city
protected String m_foreignId
protected String m_nodeLabel
protected String m_parentForeignSource
protected String m_parentForeignId
protected String m_parentNodeLabel
public int getInterfaceCount()
getInterfaceCount
public RequisitionInterface[] getInterface()
getInterface
RequisitionInterface
objects.public List<RequisitionInterface> getInterfaces()
getInterfaces
List
object.public void setInterfaces(Collection<RequisitionInterface> interfaces)
setInterfaces
interfaces
- a List
object.public RequisitionInterface getInterface(String ipAddress)
getInterface
ipAddress
- a String
object.RequisitionInterface
object.public boolean deleteInterface(RequisitionInterface iface)
removeInterface
iface
- a RequisitionInterface
object.public boolean deleteInterface(String ipAddress)
deleteInterface
ipAddress
- a String
object.public void putInterface(RequisitionInterface iface)
putInterface
iface
- a RequisitionInterface
object.public int getCategoryCount()
getCategoryCount
public RequisitionCategory[] getCategory()
getCategory
RequisitionCategory
objects.public List<RequisitionCategory> getCategories()
getCategories
List
object.public void setCategories(Collection<RequisitionCategory> categories)
setCategories
categories
- a List
object.public RequisitionCategory getCategory(String category)
getCategory
category
- a String
object.RequisitionCategory
object.public boolean deleteCategory(RequisitionCategory category)
deleteCategory
category
- a RequisitionCategory
object.public boolean deleteCategory(String category)
deleteCategory
category
- a String
object.public void putCategory(RequisitionCategory category)
putCategory
category
- a RequisitionCategory
object.public int getAssetCount()
getAssetCount
public RequisitionAsset[] getAsset()
getAsset
RequisitionAsset
objects.public List<RequisitionAsset> getAssets()
getAssets
List
object.public void setAssets(Collection<RequisitionAsset> assets)
setAssets
assets
- a List
object.public RequisitionAsset getAsset(String name)
getAsset
name
- a String
object.RequisitionAsset
object.public boolean deleteAsset(RequisitionAsset asset)
deleteAsset
asset
- a RequisitionAsset
object.public void putAsset(RequisitionAsset asset)
putAsset
asset
- a RequisitionAsset
object.public List<RequisitionMetaData> getMetaData()
public void setMetaData(List<RequisitionMetaData> metaData)
public void setLocation(String value)
Setter for the field location
.
value
- a String
object.public void setBuilding(String value)
Setter for the field building
.
value
- a String
object.public void setCity(String value)
Setter for the field city
.
value
- a String
object.public void setForeignId(String value)
Setter for the field foreignId
.
value
- a String
object.public void setNodeLabel(String value)
Setter for the field nodeLabel
.
value
- a String
object.public String getParentForeignSource()
Getter for the field parentForeignSource
.
String
object.public void setParentForeignSource(String value)
Setter for the field parentForeignSource
.
value
- a String
object.public String getParentForeignId()
Getter for the field parentForeignId
.
String
object.public void setParentForeignId(String value)
Setter for the field parentForeignId
.
value
- a String
object.public String getParentNodeLabel()
Getter for the field parentNodeLabel
.
String
object.public void setParentNodeLabel(String value)
Setter for the field parentNodeLabel
.
value
- a String
object.public void validate() throws ValidationException
ValidationException
Copyright © 2021. All rights reserved.