@Entity public class OnmsHwEntity extends Object implements Serializable, Comparable<OnmsHwEntity>
Constructor and Description |
---|
OnmsHwEntity()
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(HwEntityAttributeType type,
String value)
Adds the attribute.
|
void |
addChildEntity(OnmsHwEntity child)
Adds the child entity.
|
int |
compareTo(OnmsHwEntity o) |
boolean |
equals(Object obj) |
void |
fixRelationships()
Fix relationships.
|
OnmsHwEntityAttribute |
getAttribute(String typeName)
Gets the attribute.
|
String |
getAttributeClass(String typeName)
Gets the attribute class.
|
String |
getAttributeValue(String typeName)
Gets the attribute value.
|
OnmsHwEntity |
getChildByIndex(Integer entPhysicalIndex)
Gets the child by index.
|
SortedSet<OnmsHwEntity> |
getChildren()
Gets the children.
|
SortedSet<OnmsHwEntityAlias> |
getEntAliases()
Gets the entity alias mappings.
|
String |
getEntPhysicalAlias()
Gets the entity physical alias.
|
String |
getEntPhysicalAssetID()
Gets the entity physical asset id.
|
String |
getEntPhysicalClass()
Gets the entity physical class.
|
Integer |
getEntPhysicalContainedIn()
Gets the entity physical contained in.
|
String |
getEntPhysicalDescr()
Gets the entity physical description.
|
String |
getEntPhysicalFirmwareRev()
Gets the entity physical firmware revision.
|
String |
getEntPhysicalHardwareRev()
Gets the entity physical hardware revision.
|
Integer |
getEntPhysicalIndex()
Gets the entity physical index.
|
Boolean |
getEntPhysicalIsFRU()
Gets the entity physical is FRU.
|
Date |
getEntPhysicalMfgDate()
Gets the entity physical manufactured date.
|
String |
getEntPhysicalMfgName()
Gets the entity physical manufacturer name.
|
String |
getEntPhysicalModelName()
Gets the entity physical model name.
|
String |
getEntPhysicalName()
Gets the entity physical name.
|
Integer |
getEntPhysicalParentRelPos()
Gets the entity physical parent relative position.
|
String |
getEntPhysicalSerialNum()
Gets the entity physical serial number.
|
String |
getEntPhysicalSoftwareRev()
Gets the entity physical software revision.
|
String |
getEntPhysicalUris()
Gets the entity physical URIs.
|
String |
getEntPhysicalVendorType()
Gets the entity physical vendor type.
|
SortedSet<OnmsHwEntityAttribute> |
getHwEntityAttributes()
Gets the hardware entity attributes.
|
Integer |
getId()
Gets the id.
|
OnmsNode |
getNode()
Gets the node.
|
String |
getOnmsHwEntityId()
Gets the entity id.
|
OnmsHwEntity |
getParent()
Gets the parent.
|
Integer |
getParentIndex()
Gets the parent id.
|
boolean |
hasChildren()
Checks for children.
|
int |
hashCode() |
boolean |
isRoot()
Checks if is root.
|
void |
removeChild(OnmsHwEntity child)
Removes the child by index.
|
void |
setChildren(SortedSet<OnmsHwEntity> children)
Sets the children.
|
void |
setEntAliases(SortedSet<OnmsHwEntityAlias> entAliases)
Sets the entity alias mappings.
|
void |
setEntPhysicalAlias(String entPhysicalAlias)
Sets the entity physical alias.
|
void |
setEntPhysicalAssetID(String entPhysicalAssetID)
Sets the entity physical asset id.
|
void |
setEntPhysicalClass(String entPhysicalClass)
Sets the entity physical class.
|
void |
setEntPhysicalContainedIn(Integer entPhysicalContainedIn)
Sets the entity physical contained in.
|
void |
setEntPhysicalDescr(String entPhysicalDescr)
Sets the entity physical description.
|
void |
setEntPhysicalFirmwareRev(String entPhysicalFirmwareRev)
Sets the entity physical firmware revision.
|
void |
setEntPhysicalHardwareRev(String entPhysicalHardwareRev)
Sets the entity physical hardware revision.
|
void |
setEntPhysicalIndex(Integer entPhysicalIndex)
Sets the entity physical index.
|
void |
setEntPhysicalIsFRU(Boolean entPhysicalIsFRU)
Sets the entity physical is FRU.
|
void |
setEntPhysicalMfgDate(Date entPhysicalMfgDate)
Sets the entity physical manufactured date.
|
void |
setEntPhysicalMfgName(String entPhysicalMfgName)
Sets the entity physical manufacturer name.
|
void |
setEntPhysicalModelName(String entPhysicalModelName)
Sets the entity physical model name.
|
void |
setEntPhysicalName(String entPhysicalName)
Sets the entity physical name.
|
void |
setEntPhysicalParentRelPos(Integer entPhysicalParentRelPos)
Sets the entity physical parent relative position.
|
void |
setEntPhysicalSerialNum(String entPhysicalSerialNum)
Sets the entity physical serial number.
|
void |
setEntPhysicalSoftwareRev(String entPhysicalSoftwareRev)
Sets the entity physical software revision.
|
void |
setEntPhysicalUris(String entPhysicalUris)
Sets the entity physical URIs.
|
void |
setEntPhysicalVendorType(String entPhysicalVendorType)
Sets the entity physical vendor type.
|
void |
setHwEntityAttributes(SortedSet<OnmsHwEntityAttribute> hwAttributes)
Sets the hardware entity attributes.
|
void |
setId(Integer id)
Sets the id.
|
void |
setNode(OnmsNode node)
Sets the node.
|
void |
setOnmsHwEntityId(String id)
Sets the entity id.
|
void |
setParent(OnmsHwEntity parent)
Sets the parent.
|
String |
toString() |
public Integer getId()
public void setId(Integer id)
id
- the idpublic SortedSet<OnmsHwEntityAlias> getEntAliases()
public void setEntAliases(SortedSet<OnmsHwEntityAlias> entAliases)
entAliases
- the entity alias mappings to setpublic String getOnmsHwEntityId()
public void setOnmsHwEntityId(String id)
id
- the entity idpublic Integer getEntPhysicalIndex()
public void setEntPhysicalIndex(Integer entPhysicalIndex)
entPhysicalIndex
- the entity physical indexpublic Integer getEntPhysicalContainedIn()
This is used only by the ENTITY-MIB parser, it is not required to persist it on the database.
public void setEntPhysicalContainedIn(Integer entPhysicalContainedIn)
entPhysicalContainedIn
- the entity physical contained inpublic String getEntPhysicalDescr()
public void setEntPhysicalDescr(String entPhysicalDescr)
entPhysicalDescr
- the entity physical descriptionpublic String getEntPhysicalVendorType()
public void setEntPhysicalVendorType(String entPhysicalVendorType)
entPhysicalVendorType
- the entity physical vendor typepublic String getEntPhysicalClass()
public void setEntPhysicalClass(String entPhysicalClass)
entPhysicalClass
- the entity physical classpublic Integer getEntPhysicalParentRelPos()
public void setEntPhysicalParentRelPos(Integer entPhysicalParentRelPos)
entPhysicalParentRelPos
- the entity physical parent relative positionpublic String getEntPhysicalName()
public void setEntPhysicalName(String entPhysicalName)
entPhysicalName
- the entity physical namepublic String getEntPhysicalHardwareRev()
public void setEntPhysicalHardwareRev(String entPhysicalHardwareRev)
entPhysicalHardwareRev
- the entity physical hardware revisionpublic String getEntPhysicalFirmwareRev()
public void setEntPhysicalFirmwareRev(String entPhysicalFirmwareRev)
entPhysicalFirmwareRev
- the entity physical firmware revisionpublic String getEntPhysicalSoftwareRev()
public void setEntPhysicalSoftwareRev(String entPhysicalSoftwareRev)
entPhysicalSoftwareRev
- the entity physical software revisionpublic String getEntPhysicalSerialNum()
public void setEntPhysicalSerialNum(String entPhysicalSerialNum)
entPhysicalSerialNum
- the entity physical serial numberpublic String getEntPhysicalMfgName()
public void setEntPhysicalMfgName(String entPhysicalMfgName)
entPhysicalMfgName
- the entity physical manufacturer namepublic String getEntPhysicalModelName()
public void setEntPhysicalModelName(String entPhysicalModelName)
entPhysicalModelName
- the entity physical model namepublic String getEntPhysicalAlias()
public void setEntPhysicalAlias(String entPhysicalAlias)
entPhysicalAlias
- the entity physical aliaspublic String getEntPhysicalAssetID()
public void setEntPhysicalAssetID(String entPhysicalAssetID)
entPhysicalAssetID
- the entity physical asset idpublic Boolean getEntPhysicalIsFRU()
public void setEntPhysicalIsFRU(Boolean entPhysicalIsFRU)
entPhysicalIsFRU
- the entity physical is FRUpublic Date getEntPhysicalMfgDate()
public void setEntPhysicalMfgDate(Date entPhysicalMfgDate)
entPhysicalMfgDate
- the entity physical manufactured datepublic String getEntPhysicalUris()
public void setEntPhysicalUris(String entPhysicalUris)
entPhysicalUris
- the entity physical URIspublic OnmsHwEntity getParent()
public void setParent(OnmsHwEntity parent)
parent
- the parentpublic Integer getParentIndex()
public SortedSet<OnmsHwEntity> getChildren()
public void setChildren(SortedSet<OnmsHwEntity> children)
children
- the childrenpublic void addChildEntity(OnmsHwEntity child)
child
- the childpublic OnmsHwEntity getChildByIndex(Integer entPhysicalIndex)
entPhysicalIndex
- the entity physical indexpublic void removeChild(OnmsHwEntity child)
entPhysicalIndex
- the entity physical indexpublic OnmsNode getNode()
public void setNode(OnmsNode node)
node
- the nodepublic SortedSet<OnmsHwEntityAttribute> getHwEntityAttributes()
public void setHwEntityAttributes(SortedSet<OnmsHwEntityAttribute> hwAttributes)
hwAttributes
- the hardware entity attributespublic void addAttribute(HwEntityAttributeType type, String value)
type
- the typevalue
- the valuepublic OnmsHwEntityAttribute getAttribute(String typeName)
typeName
- the type namepublic String getAttributeValue(String typeName)
typeName
- the type namepublic String getAttributeClass(String typeName)
typeName
- the type namepublic boolean isRoot()
public boolean hasChildren()
public int compareTo(OnmsHwEntity o)
compareTo
in interface Comparable<OnmsHwEntity>
public void fixRelationships()
Copyright © 2021. All rights reserved.