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