com.adventnet.snmp.mibs.mibparser
Class SyntaxTrapType

java.lang.Object
  extended by com.adventnet.snmp.mibs.mibparser.SyntaxTrapType
All Implemented Interfaces:
BaseSyntax, MIBConstants

public class SyntaxTrapType
extends java.lang.Object
implements BaseSyntax, MIBConstants

This class defines a data structure to parse, store and write TRAP related informations.


Field Summary
 CommentClass commentObj
           
(package private)  java.lang.String description
           
(package private)  SyntaxOID enterprise
           
(package private)  java.lang.String identity
           
(package private)  java.lang.String reference
           
(package private)  int trapNum
           
(package private)  java.util.Vector varItem
           
 
Fields inherited from interface com.adventnet.snmp.mibs.mibparser.BaseSyntax
NullString
 
Fields inherited from interface com.adventnet.snmp.mibs.mibparser.MIBConstants
ACCESS_ACCESSIBLE_FOR_NOTIFY, ACCESS_NOT_ACCESSIBLE, ACCESS_NOT_IMPLEMENTED, ACCESS_READ_CREATE, ACCESS_READ_ONLY, ACCESS_READ_WRITE, ACCESS_WRITE_ONLY, accessStr, AGENT_CAPABILITIES, alphaStr, BITSTRING, COUNTER, COUNTER32, COUNTER64, GAUGE, GAUGE32, INTEGER, INTEGER32, IPADDRESS, macroStr, MODULE_COMPLIANCE, MODULE_IDENTITY, NETWORKADDRESS, NOTIFICATION_GROUP, NOTIFICATION_TYPE, NULL, numericStr, OBJECT_GROUP, OBJECT_IDENTIFIER, OBJECT_IDENTITY, OBJECT_TYPE, OCTETSTRING, OPAQUE, SEQUENCE, STATUS_CURRENT, STATUS_DEPRECATED, STATUS_MANDATORY, STATUS_OBSOLETE, STATUS_OPTIONAL, statusStr, TEXTUAL_CONVENTION, TIMETICKS, TRAP_TYPE, UNSIGNED32
 
Constructor Summary
SyntaxTrapType()
          Just so as to create a Trap internally
 
Method Summary
 java.lang.String getDescription()
          this tc's decription
 SyntaxOID getEnterprise()
          the enterprise clause for this trap
 java.lang.String getName()
          Returns this TC's name
 int getNumber()
           
 RangeList getRange()
           
 java.lang.String getReference()
          the reference clause for this tc
 BaseSyntax getSyntax()
          returns the base syntax for this TC
 int getType()
           
 java.util.Vector getVariables()
           
 void setDescription(java.lang.String descr)
          the description for this tc
 void setEnterprise(SyntaxOID oident)
          the reference clause for this trap
 void setName(java.lang.String name)
          Sets this TC's's name identifier
 void setNumber(int number)
           
 void setRange(RangeList list)
          Dummy
 void setReference(java.lang.String refr)
          the reference clause for this tc
 void setVariables(java.util.Vector vect)
           
 void writeElements(java.io.DataOutputStream outp, java.io.DataOutputStream descOutp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identity

java.lang.String identity

description

java.lang.String description

reference

java.lang.String reference

enterprise

SyntaxOID enterprise

varItem

java.util.Vector varItem

trapNum

int trapNum

commentObj

public CommentClass commentObj
Constructor Detail

SyntaxTrapType

SyntaxTrapType()
Just so as to create a Trap internally

Method Detail

setName

public void setName(java.lang.String name)
Sets this TC's's name identifier


getName

public java.lang.String getName()
Returns this TC's name

Specified by:
getName in interface BaseSyntax

getSyntax

public BaseSyntax getSyntax()
returns the base syntax for this TC

Specified by:
getSyntax in interface BaseSyntax

setDescription

public void setDescription(java.lang.String descr)
the description for this tc


getDescription

public java.lang.String getDescription()
this tc's decription


setReference

public void setReference(java.lang.String refr)
the reference clause for this tc


getReference

public java.lang.String getReference()
the reference clause for this tc


getEnterprise

public SyntaxOID getEnterprise()
the enterprise clause for this trap


setEnterprise

public void setEnterprise(SyntaxOID oident)
the reference clause for this trap


getVariables

public java.util.Vector getVariables()

setVariables

public void setVariables(java.util.Vector vect)

getNumber

public int getNumber()

setNumber

public void setNumber(int number)

setRange

public void setRange(RangeList list)
Dummy

Specified by:
setRange in interface BaseSyntax

getRange

public RangeList getRange()
Specified by:
getRange in interface BaseSyntax

writeElements

public void writeElements(java.io.DataOutputStream outp,
                          java.io.DataOutputStream descOutp)
                   throws java.io.IOException
Specified by:
writeElements in interface BaseSyntax
Throws:
java.io.IOException

getType

public int getType()
Specified by:
getType in interface BaseSyntax