Package org.opennms.netmgt.xml.event
Class Snmp
- java.lang.Object
-
- org.opennms.netmgt.xml.event.Snmp
-
- All Implemented Interfaces:
java.io.Serializable
public class Snmp extends java.lang.Object implements java.io.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(java.lang.Object o)
java.lang.String
getCommunity()
Returns the value of field 'community'.java.lang.Integer
getGeneric()
Returns the value of field 'generic'.java.lang.String
getId()
Returns the value of field 'id'.java.lang.String
getIdtext()
Returns the value of field 'idtext'.java.lang.Integer
getSpecific()
Returns the value of field 'specific'.java.lang.Long
getTimeStamp()
Returns the value of field 'timeStamp'.java.lang.String
getVersion()
Returns the value of field 'version'.boolean
hasGeneric()
Method hasGeneric.int
hashCode()
boolean
hasSpecific()
Method hasSpecific.boolean
hasTimeStamp()
Method hasTimeStamp.void
setCommunity(java.lang.String community)
Sets the value of field 'community'.void
setGeneric(java.lang.Integer generic)
Sets the value of field 'generic'.void
setId(java.lang.String id)
Sets the value of field 'id'.void
setIdtext(java.lang.String idtext)
Sets the value of field 'idtext'.void
setSpecific(java.lang.Integer specific)
Sets the value of field 'specific'.void
setTimeStamp(java.lang.Long timeStamp)
Sets the value of field 'timeStamp'.void
setVersion(java.lang.String version)
Sets the value of field 'version'.java.lang.String
toString()
-
-
-
Method Detail
-
deleteGeneric
public void deleteGeneric()
-
deleteSpecific
public void deleteSpecific()
-
deleteTimeStamp
public void deleteTimeStamp()
-
getCommunity
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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
-
hasTimeStamp
public boolean hasTimeStamp()
Method hasTimeStamp.- Returns:
- true if at least one TimeStamp has been added
-
setCommunity
public void setCommunity(java.lang.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(java.lang.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(java.lang.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'.
-
setIdtext
public void setIdtext(java.lang.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(java.lang.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(java.lang.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(java.lang.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'.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-