|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.protocols.snmp.SnmpUInt32 | +--org.opennms.protocols.snmp.SnmpTimeTicks | +--snmp.message.datatype.MySnmpCrawlerTimeTicks
Represents TimeTicks.
Field Summary | |
static java.lang.Class |
expectType
|
static java.lang.String |
javaDataType
|
Fields inherited from class org.opennms.protocols.snmp.SnmpTimeTicks |
ASNTYPE |
Fields inherited from class org.opennms.protocols.snmp.SnmpUInt32 |
|
Constructor Summary | |
MySnmpCrawlerTimeTicks()
The default Constructor. |
|
MySnmpCrawlerTimeTicks(long value)
Constructs a MySnmpCrawlerTimeTicks object with the long value. |
|
MySnmpCrawlerTimeTicks(java.lang.Long value)
Constructs a MySnmpCrawlerTimeTicks object with the Long object. |
|
MySnmpCrawlerTimeTicks(MySnmpCrawlerTimeTicks second)
The copy Constructor constructs the MySnmpCrawlerTimeTicks object that is identical to the passed object. |
|
MySnmpCrawlerTimeTicks(org.opennms.protocols.snmp.SnmpUInt32 uint32)
Constructs a MySnmpCrawlerTimeTicks object with the SnmpUInt32 object. |
Method Summary | |
java.lang.Object |
clone()
Creates a new object that is a duplicate of the current object. |
org.opennms.protocols.snmp.SnmpSyntax |
duplicate()
Creates a new object that is a duplicate of the current object. |
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 to see if the exptected Class type equals to the passed Class object. |
boolean |
isValidJavaDatatype(java.lang.Object o)
Checks to see if the exptected Class type equals to the passed Class object. |
void |
setSnmpDataValue(java.lang.Object o)
Sets the Java object value into the SnmpSyntax object. |
static boolean |
validateJavaDatatype(java.lang.Object o)
Validates the Java object value with the expected datatype. |
Methods inherited from class org.opennms.protocols.snmp.SnmpTimeTicks |
toString, typeId |
Methods inherited from class org.opennms.protocols.snmp.SnmpUInt32 |
decodeASN, encodeASN, getValue, setValue, setValue |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opennms.protocols.snmp.SnmpSyntax |
decodeASN, encodeASN, typeId |
Field Detail |
public static final java.lang.String javaDataType
public static java.lang.Class expectType
Constructor Detail |
public MySnmpCrawlerTimeTicks()
public MySnmpCrawlerTimeTicks(long value)
value
- The long value.public MySnmpCrawlerTimeTicks(java.lang.Long value)
value
- The Long object.public MySnmpCrawlerTimeTicks(MySnmpCrawlerTimeTicks second)
second
- The object to be copied from.public MySnmpCrawlerTimeTicks(org.opennms.protocols.snmp.SnmpUInt32 uint32)
Method Detail |
public void setSnmpDataValue(java.lang.Object o) throws SnmpException
setSnmpDataValue
in interface SnmpDatatype
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
getJavaDataValue
in interface SnmpDatatype
SnmpException
- Thrown when any error occurs during
converting the SnmpSyntax value to the Java object.public boolean isValidJavaDatatype(java.lang.Object o)
isValidJavaDatatype
in interface SnmpDatatype
o
- The Java object value.
public boolean isValidJavaDatatype(java.lang.Class c)
isValidJavaDatatype
in interface SnmpDatatype
c
- The Class object to be checked.
public java.lang.Object clone()
clone
in class org.opennms.protocols.snmp.SnmpTimeTicks
public org.opennms.protocols.snmp.SnmpSyntax duplicate()
duplicate
in interface org.opennms.protocols.snmp.SnmpSyntax
duplicate
in class org.opennms.protocols.snmp.SnmpTimeTicks
public java.lang.String getJavaDataType()
getJavaDataType
in interface SnmpDatatype
public static boolean validateJavaDatatype(java.lang.Object o)
|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |