com.adventnet.snmp.mibs
Class JdbcMibTC
java.lang.Object
|
+--com.adventnet.snmp.mibs.LeafSyntax
|
+--com.adventnet.snmp.mibs.MibTC
|
+--com.adventnet.snmp.mibs.JdbcMibTC
- class JdbcMibTC
- extends MibTC
- implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.String |
getDisplayHint()
Gets the DISPLAY-HINT field in this TC. |
java.lang.String |
getName()
Returns the name of this TEXTUAL-CONVENTION. |
java.lang.String |
getReference()
Gets the REFERENCE string for this TC. |
java.lang.String |
getStatus()
Gets the STATUS field value for this TC. |
LeafSyntax |
getSyntax()
Gets the syntax associated with this TC. |
java.lang.String |
getTCDescription()
Gets the DESCRIPTION string for this TC. |
byte |
getType()
Retrieves the SNMP ASN.1 tag value for this syntax. |
java.lang.String |
toString()
Returns the name of this TEXTUAL-CONVENTION. |
| Methods inherited from class com.adventnet.snmp.mibs.LeafSyntax |
checkValue,
checkValue,
createVariable,
createvariable,
createVariable,
decodeInstanceString,
encodeInstanceString,
getBaseSyntaxName,
getBITSRange,
getDescription,
getEnumint,
getEnumlabels,
getEquivname,
getInt,
getLabel,
getMax,
getMin,
getRange,
getRangeItems,
getSize,
getSnmpType,
getTypeStr,
initializeMINandMAXvalues,
isConstrained,
isEnumerated,
isFixedLen,
isFixedLength,
isRanged,
readType,
readType,
setEquivname,
setMax,
setMin,
setName,
setRange,
setSize,
setSyntax,
setType,
stringToArray,
toTagString |
| Methods inherited from class java.lang.Object |
,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
moduleName
java.lang.String moduleName
name
java.lang.String name
queryString
java.lang.String queryString
rs
java.sql.ResultSet rs
tableName
java.lang.String tableName
jMibOps
JdbcMibOperations jMibOps
JdbcMibTC
JdbcMibTC()
JdbcMibTC
JdbcMibTC(java.lang.String modulename,
java.lang.String Name,
JdbcMibOperations jdbcMibOps)
getDisplayHint
public java.lang.String getDisplayHint()
- Description copied from class: MibTC
- Gets the DISPLAY-HINT field in this TC.
The DISPLAY-HINT is the optional field of the TEXTUAL-CONVENTION.
This DISPLAY-HINT gives a hint as to how the value of an instance
of an object with the syntax defined using this textual convention
might be displayed.
- Overrides:
- getDisplayHint in class MibTC
- Tags copied from class: MibTC
- Returns:
- the value in the DISPLAY-HINT field, if present.
else return empty string. - See Also:
MibOperations.enableDisplayHint(boolean)
getStatus
public java.lang.String getStatus()
- Description copied from class: MibTC
- Gets the STATUS field value for this TC.
- Overrides:
- getStatus in class MibTC
- Tags copied from class: MibTC
- Returns:
- the value of the STATUS field
empty string
if the STATUS filed is not present or if this
is an SMIv1 Type Assignment.
getTCDescription
public java.lang.String getTCDescription()
- Description copied from class: MibTC
- Gets the DESCRIPTION string for this TC.
- Overrides:
- getTCDescription in class MibTC
- Tags copied from class: MibTC
- Returns:
- the DESCRIPTION value.
empty string,
in case of SMIv1 Type Assignment construct.
getReference
public java.lang.String getReference()
- Description copied from class: MibTC
- Gets the REFERENCE string for this TC.
- Overrides:
- getReference in class MibTC
- Tags copied from class: MibTC
- Returns:
- the REFERENCE value, if present.
empty string,
if not found or if this is a SMIv1 Type Assignment.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Description copied from class: MibTC
- Creates and returns a copy of this object.
- Overrides:
- clone in class MibTC
- Tags copied from class: MibTC
- Throws:
- java.lang.CloneNotSupportedException - is thrown if the object's class
does not support the interface which could be cloned.
getType
public byte getType()
- Description copied from class: LeafSyntax
- Retrieves the SNMP ASN.1 tag value for this syntax.
The following table lists the syntax, corresponding tag values
and the equivalent SnmpAPI types.
| Syntax |
TagValue |
equivalent SnmpAPI types |
| INTEGER/Integer32 |
0x02 |
SnmpAPI.INTEGER |
| OCTET STRING/BITS |
0x04 |
SnmpAPI.STRING |
| NULL |
0x05 |
SnmpAPI.NULL |
| OBJECT IDENTIFIER |
0x06 |
SnmpAPI.OBJID |
| IpAddress |
0x40 |
SnmpAPI.IPADDRESS |
| NetworkAddress |
0x40 |
SnmpAPI.NETWORKADDRESS |
| Counter/Counter32 |
0x41 |
SnmpAPI.COUNTER |
| Unsigned32 |
0x42 |
SnmpAPI.UNSIGNED32 |
| Gauge/Gauge32 |
0x42 |
SnmpAPI.GAUGE |
| TimeTicks |
0x43 |
SnmpAPI.TIMETICKS |
| Opaque |
0x44 |
SnmpAPI.OPAQUE |
| Counter64 |
0x46 |
SnmpAPI.COUNTER64 |
- Overrides:
- getType in class LeafSyntax
- Tags copied from class: LeafSyntax
- Returns:
- the type value of this syntax in bytes
toString
public java.lang.String toString()
- Description copied from class: MibTC
- Returns the name of this TEXTUAL-CONVENTION.
Same as the method getName().
- Overrides:
- toString in class MibTC
- Tags copied from class: MibTC
- Returns:
- String - the name of this TEXTUAL-CONVENTION
- See Also:
MibTC.getName()
getSyntax
public LeafSyntax getSyntax()
- Description copied from class: MibTC
- Gets the syntax associated with this TC.
For example, if the syntax of the TC "LevelA" is
OCTET STRING, then this method will return
OCTET STRING as a LeafSyntax object.
- Overrides:
- getSyntax in class MibTC
- Tags copied from class: MibTC
- Returns:
- LeafSyntax object.
getName
public java.lang.String getName()
- Description copied from class: MibTC
- Returns the name of this TEXTUAL-CONVENTION.
Same as the mehod toString().
- Overrides:
- getName in class MibTC
- Tags copied from class: MibTC
- Returns:
- String - the name of this TEXTUAL-CONVENTION
- See Also:
MibTC.toString()