public class MOTableSubIndex
extends java.lang.Object
MOTableSubIndex
class represents a sub-index definition.Constructor | Description |
---|---|
MOTableSubIndex(int smiSyntax) |
Creates a sub-index definition based on a SMI syntax.
|
MOTableSubIndex(int smiSyntax,
int minLength,
int maxLength) |
Creates a sub-index definition based on a SMI syntax, minimum, and maximum
sub-index length.
|
MOTableSubIndex(org.snmp4j.smi.OID oid,
int smiSyntax) |
Creates a sub-index definition based on a SMI syntax and the OID of the
sub-index OBJECT-TYPE definition.
|
MOTableSubIndex(org.snmp4j.smi.OID oid,
int smiSyntax,
int minLength,
int maxLength) |
Creates a sub-index definition based on a SMI syntax, minimum, and maximum
sub-index length as well as the OID of the sub-index OBJECT-TYPE.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getMaxLength() |
Returns the maximum sub-index length.
|
int |
getMinLength() |
Returns the minimum sub-index length.
|
org.snmp4j.smi.OID |
getOid() |
Returns the optional OID of the sub-index object definition.
|
int |
getSmiSyntax() |
Gets the SMI syntax of the sub-index.
|
java.lang.String |
toString() |
public MOTableSubIndex(int smiSyntax)
smiSyntax
- a SMI syntax ID as defined by SMIConstants
.public MOTableSubIndex(org.snmp4j.smi.OID oid, int smiSyntax)
oid
- the OID of the sub-index definition's OBJECT-TYPE.smiSyntax
- a SMI syntax ID as defined by SMIConstants
.public MOTableSubIndex(int smiSyntax, int minLength, int maxLength)
smiSyntax
- a SMI syntax ID as defined by SMIConstants
.minLength
- the minimum length of the sub-index (must not be greater than
maxLength
).maxLength
- the maximum length of the sub-index (must not be less than
minLength
).public MOTableSubIndex(org.snmp4j.smi.OID oid, int smiSyntax, int minLength, int maxLength)
oid
- the OID of the sub-index definition's OBJECT-TYPE.smiSyntax
- a SMI syntax ID as defined by SMIConstants
.minLength
- the minimum length of the sub-index (must not be greater than
maxLength
).maxLength
- the maximum length of the sub-index (must not be less than
minLength
).public int getSmiSyntax()
SMIConstants
.public int getMinLength()
public int getMaxLength()
public org.snmp4j.smi.OID getOid()
null
if that has not
been specified on sub-index creation.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 SNMP4J.org. All rights reserved.