Package org.opennms.netmgt.model
Class OnmsHwEntityAttribute
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsHwEntityAttribute
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OnmsHwEntityAttribute>
@Entity public class OnmsHwEntityAttribute extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<OnmsHwEntityAttribute>
The Class OnmsHwEntityAttribute.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OnmsHwEntityAttribute()
The Constructor.OnmsHwEntityAttribute(HwEntityAttributeType type, java.lang.String value)
The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(OnmsHwEntityAttribute o)
boolean
equals(java.lang.Object obj)
OnmsHwEntity
getHwEntity()
Gets the hardware entity.java.lang.Integer
getId()
Gets the id.HwEntityAttributeType
getType()
Gets the type.java.lang.String
getTypeClass()
Gets the type class.java.lang.String
getTypeName()
Gets the type name.java.lang.String
getTypeOid()
Gets the type OID.java.lang.String
getValue()
Gets the value.int
hashCode()
void
setHwEntity(OnmsHwEntity hwEntity)
Sets the hardware entity.void
setId(java.lang.Integer id)
Sets the id.void
setType(HwEntityAttributeType attributeType)
Sets the type.void
setTypeClass(java.lang.String typeClass)
Sets the type class.void
setTypeName(java.lang.String typeName)
Sets the type name.void
setTypeOid(java.lang.String typeOid)
Sets the type OID.void
setValue(java.lang.String attributeValue)
Sets the value.java.lang.String
toString()
-
-
-
Constructor Detail
-
OnmsHwEntityAttribute
public OnmsHwEntityAttribute()
The Constructor.
-
OnmsHwEntityAttribute
public OnmsHwEntityAttribute(HwEntityAttributeType type, java.lang.String value)
The Constructor.- Parameters:
type
- the typevalue
- the value
-
-
Method Detail
-
getId
public java.lang.Integer getId()
Gets the id.- Returns:
- the id
-
setId
public void setId(java.lang.Integer id)
Sets the id.- Parameters:
id
- the id
-
getHwEntity
public OnmsHwEntity getHwEntity()
Gets the hardware entity.- Returns:
- the hardware entity
-
setHwEntity
public void setHwEntity(OnmsHwEntity hwEntity)
Sets the hardware entity.- Parameters:
hwEntity
- the hardware entity
-
getType
public HwEntityAttributeType getType()
Gets the type.- Returns:
- the type
-
setType
public void setType(HwEntityAttributeType attributeType)
Sets the type.- Parameters:
attributeType
- the type
-
getTypeName
public java.lang.String getTypeName()
Gets the type name.- Returns:
- the type name
-
setTypeName
public void setTypeName(java.lang.String typeName)
Sets the type name.- Parameters:
typeName
- the type name
-
getTypeOid
public java.lang.String getTypeOid()
Gets the type OID.- Returns:
- the type OID
-
setTypeOid
public void setTypeOid(java.lang.String typeOid)
Sets the type OID.- Parameters:
typeOid
- the type OID
-
getTypeClass
public java.lang.String getTypeClass()
Gets the type class.- Returns:
- the type class
-
setTypeClass
public void setTypeClass(java.lang.String typeClass)
Sets the type class.- Parameters:
typeClass
- the type class
-
getValue
public java.lang.String getValue()
Gets the value.- Returns:
- the value
-
setValue
public void setValue(java.lang.String attributeValue)
Sets the value.- Parameters:
attributeValue
- the value
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(OnmsHwEntityAttribute o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<OnmsHwEntityAttribute>
-
-