|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.mib.type.Type | +--net.percederberg.mib.type.SnmpObjectType
A class for handling type information for an SNMP object type.
Field Summary | |
static int |
CURRENT_STATUS
The current status constant. |
static int |
DEPRECATED_STATUS
The deprecated status constant. |
static int |
MANDATORY_STATUS
The mandatory status constant. |
static int |
NO_ACCESS
The access constant for no access. |
static int |
NOTIFY_ACCESS
The access constant for notify access. |
static int |
OBSOLETE_STATUS
The obsolete status constant. |
static int |
OPTIONAL_STATUS
The optional status constant. |
static int |
READ_ACCESS
The access constant for read-only access. |
static int |
READ_CREATE_ACCESS
The access constant for read-create access. |
static int |
READ_WRITE_ACCESS
The access constant for read-write access. |
static int |
WRITE_ACCESS
The access constant for write-only access. |
Constructor Summary | |
SnmpObjectType(Type baseType,
int access,
int status)
Creates a new SNMP object type with the given parameters. |
|
SnmpObjectType(Type baseType,
int access,
int status,
java.lang.String descr,
java.util.Vector index,
java.lang.Object defval)
Creates a new SNMP object type with the given parameters. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks if this type equals another. |
java.lang.String |
getAccess()
Returns the access string. |
Type |
getBaseType()
Returns the basic type. |
java.lang.Object |
getDefaultValue()
Returns the default value. |
java.lang.String |
getDescription()
Returns the type description. |
java.lang.String |
getIndices()
Returns the table indices (as a string). |
java.lang.String |
getStatus()
Returns the status string. |
java.lang.String |
toString()
Returns a description of this type. |
void |
transferType(TypeConverter converter)
Transfers the type information from this type to a type converter object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO_ACCESS
public static final int NOTIFY_ACCESS
public static final int READ_ACCESS
public static final int WRITE_ACCESS
public static final int READ_WRITE_ACCESS
public static final int READ_CREATE_ACCESS
public static final int MANDATORY_STATUS
public static final int OPTIONAL_STATUS
public static final int CURRENT_STATUS
public static final int DEPRECATED_STATUS
public static final int OBSOLETE_STATUS
Constructor Detail |
public SnmpObjectType(Type baseType, int access, int status)
baseType
- the basic typeaccess
- an access constant valuestatus
- a status constant valuepublic SnmpObjectType(Type baseType, int access, int status, java.lang.String descr, java.util.Vector index, java.lang.Object defval)
baseType
- the basic typeaccess
- an access constant valuestatus
- a status constant valuedescr
- a string description (or null)index
- the table indices (or null)defval
- the default value (or null)Method Detail |
public java.lang.String getAccess()
public Type getBaseType()
public java.lang.Object getDefaultValue()
public java.lang.String getDescription()
public java.lang.String getIndices()
public java.lang.String getStatus()
public boolean equals(java.lang.Object obj)
equals
in class Type
obj
- an object
public java.lang.String toString()
toString
in class Type
public void transferType(TypeConverter converter)
transferType
in class Type
converter
- a type converter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |