org.opennms.netmgt.xml.event
Class Snmp

java.lang.Object
  extended by 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
Snmp()
           
 
Method Summary
 void deleteGeneric()
          Method deleteGeneric
 void deleteSpecific()
          Method deleteSpecific
 void deleteTimeStamp()
          Method deleteTimeStamp
 java.lang.String getCommunity()
          Returns the value of field 'community'.
 int 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'.
 int getSpecific()
          Returns the value of field 'specific'.
 long getTimeStamp()
          Returns the value of field 'timeStamp'.
 java.lang.String getVersion()
          Returns the value of field 'version'.
 boolean hasGeneric()
          Method hasGeneric
 boolean hasSpecific()
          Method hasSpecific
 boolean hasTimeStamp()
          Method hasTimeStamp
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setCommunity(java.lang.String community)
          Sets the value of field 'community'.
 void setGeneric(int 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(int specific)
          Sets the value of field 'specific'.
 void setTimeStamp(long timeStamp)
          Sets the value of field 'timeStamp'.
 void setVersion(java.lang.String version)
          Sets the value of field 'version'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Snmp

public Snmp()
Method Detail

deleteGeneric

public void deleteGeneric()
Method deleteGeneric


deleteSpecific

public void deleteSpecific()
Method deleteSpecific


deleteTimeStamp

public void deleteTimeStamp()
Method deleteTimeStamp


getCommunity

public java.lang.String getCommunity()
Returns the value of field 'community'. The field 'community' has the following description: The community name

Returns:
String

getGeneric

public int getGeneric()
Returns the value of field 'generic'. The field 'generic' has the following description: The generic trap number

Returns:
int

getId

public java.lang.String getId()
Returns the value of field 'id'. The field 'id' has the following description: The snmp enterprise id

Returns:
String

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:
String

getSpecific

public int getSpecific()
Returns the value of field 'specific'. The field 'specific' has the following description: The specific trap number

Returns:
int

getTimeStamp

public long getTimeStamp()
Returns the value of field 'timeStamp'. The field 'timeStamp' has the following description: The time stamp

Returns:
long

getVersion

public java.lang.String getVersion()
Returns the value of field 'version'. The field 'version' has the following description: The snmp version

Returns:
String

hasGeneric

public boolean hasGeneric()
Method hasGeneric

Returns:
boolean

hasSpecific

public boolean hasSpecific()
Method hasSpecific

Returns:
boolean

hasTimeStamp

public boolean hasTimeStamp()
Method hasTimeStamp

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

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(int 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(int 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(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'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.