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 intcompareTo(OnmsHwEntityAttribute o)booleanequals(Object obj)OnmsHwEntitygetHwEntity()Gets the hardware entity.IntegergetId()Gets the id.HwEntityAttributeTypegetType()Gets the type.StringgetTypeClass()Gets the type class.StringgetTypeName()Gets the type name.StringgetTypeOid()Gets the type OID.StringgetValue()Gets the value.inthashCode()voidsetHwEntity(OnmsHwEntity hwEntity)Sets the hardware entity.voidsetId(Integer id)Sets the id.voidsetType(HwEntityAttributeType attributeType)Sets the type.voidsetTypeClass(String typeClass)Sets the type class.voidsetTypeName(String typeName)Sets the type name.voidsetTypeOid(String typeOid)Sets the type OID.voidsetValue(String attributeValue)Sets the value.StringtoString()
-
-
-
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:
compareToin interfaceComparable<OnmsHwEntityAttribute>
-
-