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.SerializableThe 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 SnmpcopyFrom(ISnmp source)voiddeleteGeneric()voiddeleteSpecific()voiddeleteTimeStamp()booleanequals(java.lang.Object o)java.lang.StringgetCommunity()Returns the value of field 'community'.java.lang.IntegergetGeneric()Returns the value of field 'generic'.java.lang.StringgetId()Returns the value of field 'id'.java.lang.StringgetIdtext()Returns the value of field 'idtext'.java.lang.IntegergetSpecific()Returns the value of field 'specific'.java.lang.LonggetTimeStamp()Returns the value of field 'timeStamp'.java.lang.StringgetVersion()Returns the value of field 'version'.booleanhasGeneric()Method hasGeneric.inthashCode()booleanhasSpecific()Method hasSpecific.booleanhasTimeStamp()Method hasTimeStamp.voidsetCommunity(java.lang.String community)Sets the value of field 'community'.voidsetGeneric(java.lang.Integer generic)Sets the value of field 'generic'.voidsetId(java.lang.String id)Sets the value of field 'id'.voidsetIdtext(java.lang.String idtext)Sets the value of field 'idtext'.voidsetSpecific(java.lang.Integer specific)Sets the value of field 'specific'.voidsetTimeStamp(java.lang.Long timeStamp)Sets the value of field 'timeStamp'.voidsetVersion(java.lang.String version)Sets the value of field 'version'.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-