disman
Class Extension

java.lang.Object
  |
  +--disman.Extension

public class Extension
extends java.lang.Object


Constructor Summary
Extension(Disman disman, Language language, int index)
          Create an Extension object for a given Disman object, Language object, and extension index.
 
Method Summary
 java.lang.String getDescription()
          Return the description string (smExtsnDescr).
 int getIndex()
          Return the unique index part of the Extension used in the smExtsnTable.
 Language getLanguage()
          Return the associated Language object.
 java.lang.String getOid()
          Return the object identifier of the Extension object (smExtsnExtension) as a dotted decimal string.
 java.lang.String getRevision()
          Return the revision of the Extension object (smExtsnRevision).
 java.lang.String getVendor()
          Return the vendor of the Extension object (smExtsnVendor) as a dotted decimal string.
 java.lang.String getVersion()
          Return the version of the Extension object (smExtsnVersion).
 java.lang.String toString()
          Return a String representation of the Extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Extension

public Extension(Disman disman,
                 Language language,
                 int index)
Create an Extension object for a given Disman object, Language object, and extension index.
Parameters:
disman - the Disman object associated with this extension
language - the Language object associated with this extension
index - the table index of this extension
Method Detail

getIndex

public int getIndex()
Return the unique index part of the Extension used in the smExtsnTable.
Returns:
the extension's index

getOid

public java.lang.String getOid()
                        throws SnmpException,
                               java.io.IOException
Return the object identifier of the Extension object (smExtsnExtension) as a dotted decimal string.
Returns:
the OID that represents this extension
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getVersion

public java.lang.String getVersion()
                            throws SnmpException,
                                   java.io.IOException
Return the version of the Extension object (smExtsnVersion).
Returns:
the version of this extension
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getVendor

public java.lang.String getVendor()
                           throws SnmpException,
                                  java.io.IOException
Return the vendor of the Extension object (smExtsnVendor) as a dotted decimal string.
Returns:
the vendor of this extension
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getRevision

public java.lang.String getRevision()
                             throws SnmpException,
                                    java.io.IOException
Return the revision of the Extension object (smExtsnRevision).
Returns:
the revision of this extension
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getDescription

public java.lang.String getDescription()
                                throws SnmpException,
                                       java.io.IOException
Return the description string (smExtsnDescr).
Returns:
the description string of this extension
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getLanguage

public Language getLanguage()
Return the associated Language object.
Returns:
the Language object associated with this extension

toString

public java.lang.String toString()
Return a String representation of the Extension. Overrides java.lang.Object.
Overrides:
toString in class java.lang.Object
Returns:
a String representation of the Extension object