1 11 12 13 package com.sun.jmx.snmp; 14 15 16 17 import java.io.Serializable ; 18 19 29 30 public abstract class SnmpValue implements Cloneable , Serializable , SnmpDataTypeEnums { 31 32 36 public String toAsn1String() { 37 return "[" + getTypeName() + "] " + toString(); 38 } 39 40 46 public abstract SnmpOid toOid() ; 47 48 52 public abstract String getTypeName() ; 53 54 59 public abstract SnmpValue duplicate() ; 60 61 65 public boolean isNoSuchObjectValue() { 66 return false; 67 } 68 69 73 public boolean isNoSuchInstanceValue() { 74 return false; 75 } 76 77 81 public boolean isEndOfMibViewValue() { 82 return false; 83 } 84 } 85 | Popular Tags |