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()
SubIndexInfo
hasImpliedLength
in interface SubIndexInfo
true
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()
SubIndexInfo
getMinLength
in interface SubIndexInfo
public int getMaxLength()
SubIndexInfo
getMaxLength
in interface SubIndexInfo
public int getSnmpSyntax()
SubIndexInfo
getSnmpSyntax
in interface SubIndexInfo
Copyright © 2018 SNMP4J.org. All rights reserved.