Package org.snmp4j.smi
Class SubIndexInfoImpl
java.lang.Object
org.snmp4j.smi.SubIndexInfoImpl
- All Implemented Interfaces:
 SubIndexInfo
The 
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.- Since:
 - 2.5.0
 - Author:
 - Frank Fock
 
- 
Constructor Summary
ConstructorsConstructorDescriptionSubIndexInfoImpl(boolean impliedLength, int minLength, int maxLength, int snmpSyntax) Create a sub index information object. - 
Method Summary
Modifier and TypeMethodDescriptionintGets the maximum length in bytes of the sub-index.intGets the minimum length in bytes of the sub-index.intGets the SNMP syntax value of the sub-index' base syntax.booleanChecks if the sub-index represented by this index info has an implied length or not. 
- 
Constructor Details
- 
SubIndexInfoImpl
public SubIndexInfoImpl(boolean impliedLength, int minLength, int maxLength, int snmpSyntax) Create a sub index information object.- Parameters:
 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.
 
 - 
 - 
Method Details
- 
hasImpliedLength
public boolean hasImpliedLength()Description copied from interface:SubIndexInfoChecks if the sub-index represented by this index info has an implied length or not.- Specified by:
 hasImpliedLengthin interfaceSubIndexInfo- Returns:
 trueif the length of this variable length sub-index is implied (i.e., the sub-index is the last in the index).
 - 
getMinLength
public int getMinLength()Description copied from interface:SubIndexInfoGets the minimum length in bytes of the sub-index. If min and max length are equal, then this sub-index is a fixed length length sub-index.- Specified by:
 getMinLengthin interfaceSubIndexInfo- Returns:
 - the minimum length of the (sub-index) in bytes.
 
 - 
getMaxLength
public int getMaxLength()Description copied from interface:SubIndexInfoGets the maximum length in bytes of the sub-index. If min and max length are equal, then this sub-index is a fixed length length sub-index.- Specified by:
 getMaxLengthin interfaceSubIndexInfo- Returns:
 - the maximum length of the (sub-index) in bytes.
 
 - 
getSnmpSyntax
public int getSnmpSyntax()Description copied from interface:SubIndexInfoGets the SNMP syntax value of the sub-index' base syntax.- Specified by:
 getSnmpSyntaxin interfaceSubIndexInfo- Returns:
 - the SNMP4J (BER) syntax identifier.
 
 
 -