Package org.opennms.netmgt.xml.event
Class Snmp
- java.lang.Object
-
- org.opennms.netmgt.xml.event.Snmp
-
- All Implemented Interfaces:
Serializable
public class Snmp extends Object implements Serializable
The snmp information from the trap- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Snmp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Snmp
copyFrom(ISnmp source)
void
deleteGeneric()
void
deleteSpecific()
void
deleteTimeStamp()
boolean
equals(Object o)
String
getCommunity()
Returns the value of field 'community'.Integer
getGeneric()
Returns the value of field 'generic'.String
getId()
Returns the value of field 'id'.String
getIdtext()
Returns the value of field 'idtext'.Integer
getSpecific()
Returns the value of field 'specific'.Long
getTimeStamp()
Returns the value of field 'timeStamp'.String
getTrapOID()
String
getVersion()
Returns the value of field 'version'.boolean
hasGeneric()
Method hasGeneric.int
hashCode()
boolean
hasSpecific()
Method hasSpecific.boolean
hasTimeStamp()
Method hasTimeStamp.boolean
hasTrapOID()
void
setCommunity(String community)
Sets the value of field 'community'.void
setGeneric(Integer generic)
Sets the value of field 'generic'.void
setId(String id)
Sets the value of field 'id'.void
setIdtext(String idtext)
Sets the value of field 'idtext'.void
setSpecific(Integer specific)
Sets the value of field 'specific'.void
setTimeStamp(Long timeStamp)
Sets the value of field 'timeStamp'.void
setTrapOID(String _trapOID)
void
setVersion(String version)
Sets the value of field 'version'.String
toString()
-
-
-
Method Detail
-
deleteGeneric
public void deleteGeneric()
-
deleteSpecific
public void deleteSpecific()
-
deleteTimeStamp
public void deleteTimeStamp()
-
getCommunity
public String getCommunity()
Returns the value of field 'community'. The field 'community' has the following description: The community name- Returns:
- the value of field 'Community'.
-
getGeneric
public Integer getGeneric()
Returns the value of field 'generic'. The field 'generic' has the following description: The generic trap number- Returns:
- the value of field 'Generic'.
-
getId
public String getId()
Returns the value of field 'id'. The field 'id' has the following description: The snmp enterprise id- Returns:
- the value of field 'Id'.
-
getIdtext
public String getIdtext()
Returns the value of field 'idtext'. The field 'idtext' has the following description: The snmp enterprise id text- Returns:
- the value of field 'Idtext'.
-
getSpecific
public Integer getSpecific()
Returns the value of field 'specific'. The field 'specific' has the following description: The specific trap number- Returns:
- the value of field 'Specific'.
-
getTimeStamp
public Long getTimeStamp()
Returns the value of field 'timeStamp'. The field 'timeStamp' has the following description: The time stamp- Returns:
- the value of field 'TimeStamp'.
-
getVersion
public String getVersion()
Returns the value of field 'version'. The field 'version' has the following description: The snmp version- Returns:
- the value of field 'Version'.
-
hasGeneric
public boolean hasGeneric()
Method hasGeneric.- Returns:
- true if at least one Generic has been added
-
hasSpecific
public boolean hasSpecific()
Method hasSpecific.- Returns:
- true if at least one Specific has been added
-
hasTrapOID
public boolean hasTrapOID()
-
hasTimeStamp
public boolean hasTimeStamp()
Method hasTimeStamp.- Returns:
- true if at least one TimeStamp has been added
-
setCommunity
public void setCommunity(String community)
Sets the value of field 'community'. The field 'community' has the following description: The community name- Parameters:
community
- the value of field 'community'.
-
setGeneric
public void setGeneric(Integer generic)
Sets the value of field 'generic'. The field 'generic' has the following description: The generic trap number- Parameters:
generic
- the value of field 'generic'.
-
setId
public void setId(String id)
Sets the value of field 'id'. The field 'id' has the following description: The snmp enterprise id- Parameters:
id
- the value of field 'id'.
-
getTrapOID
public String getTrapOID()
-
setTrapOID
public void setTrapOID(String _trapOID)
-
setIdtext
public void setIdtext(String idtext)
Sets the value of field 'idtext'. The field 'idtext' has the following description: The snmp enterprise id text- Parameters:
idtext
- the value of field 'idtext'.
-
setSpecific
public void setSpecific(Integer specific)
Sets the value of field 'specific'. The field 'specific' has the following description: The specific trap number- Parameters:
specific
- the value of field 'specific'.
-
setTimeStamp
public void setTimeStamp(Long timeStamp)
Sets the value of field 'timeStamp'. The field 'timeStamp' has the following description: The time stamp- Parameters:
timeStamp
- the value of field 'timeStamp'.
-
setVersion
public void setVersion(String version)
Sets the value of field 'version'. The field 'version' has the following description: The snmp version- Parameters:
version
- the value of field 'version'.
-
-