public class SubIndexInfoImpl extends Object implements SubIndexInfo
SubIndexInfoImpl class represents the meta information of a SMI INDEX clause element (= sub-index)
which are relevant for converting an OID index value to an INDEX object and vice versa.| Constructor and Description |
|---|
SubIndexInfoImpl(boolean impliedLength,
int minLength,
int maxLength,
int snmpSyntax)
Create a sub index information object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxLength()
Gets the maximum length in bytes of the sub-index.
|
int |
getMinLength()
Gets the minimum length in bytes of the sub-index.
|
int |
getSnmpSyntax()
Gets the SNMP syntax value of the sub-index' base syntax.
|
boolean |
hasImpliedLength()
Checks if the sub-index represented by this index info has an implied length or not.
|
public SubIndexInfoImpl(boolean impliedLength,
int minLength,
int maxLength,
int snmpSyntax)
impliedLength - indicates if the sub-index value has an implied variable length (must apply to the last variable length
sub-index only).minLength - the minimum length in bytes of the sub-index value.maxLength - the maximum length in bytes of the sub-index value.snmpSyntax - the BER syntax of the sub-index object type's base syntax.public boolean hasImpliedLength()
SubIndexInfohasImpliedLength in interface SubIndexInfotrue if the length of this variable length sub-index is implied (i.e., the sub-index
is the last in the index).public int getMinLength()
SubIndexInfogetMinLength in interface SubIndexInfopublic int getMaxLength()
SubIndexInfogetMaxLength in interface SubIndexInfopublic int getSnmpSyntax()
SubIndexInfogetSnmpSyntax in interface SubIndexInfoCopyright © 2020 SNMP4J.org. All rights reserved.