|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides the methods to set the Java object value, get the Java object value, and check the expected Java datatype compatible to SnmpSyntax object. The implemented classes shall support these operations and also comply with the class hierarchy defined in the JoeSNMP API.
Method Summary | |
java.lang.String |
getJavaDataType()
Gets the string description of the expected java datatype. |
java.lang.Object |
getJavaDataValue()
Gets the Java object value corresponding to the the SnmpSyntax object. |
boolean |
isValidJavaDatatype(java.lang.Class c)
Checks if the exptected Class type equals to the passed Class object. |
boolean |
isValidJavaDatatype(java.lang.Object o)
Checks if the expected datatype of the Java object value matches to the passed Java object value. |
void |
setSnmpDataValue(java.lang.Object o)
Sets the Java object value into the SnmpSyntax object. |
Methods inherited from interface org.opennms.protocols.snmp.SnmpSyntax |
decodeASN, duplicate, encodeASN, typeId |
Method Detail |
public void setSnmpDataValue(java.lang.Object o) throws SnmpException
o
- The Java object value.
SnmpException
- Thrown when the Java object value does not
match to the expected datatype in the SnmpSyntax object.public java.lang.Object getJavaDataValue() throws SnmpException
SnmpException
- Thrown when any error occurs during
converting the SnmpSyntax value to the Java object.public boolean isValidJavaDatatype(java.lang.Object o)
o
- The Java object value.
public boolean isValidJavaDatatype(java.lang.Class c)
c
- The Class object to be checked.
public java.lang.String getJavaDataType()
|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |