Class SnmpIndexColumn<T>

java.lang.Object
org.snmp4j.model.snmp.proxy.impl.SnmpColumn<T>
org.snmp4j.model.snmp.proxy.impl.SnmpIndexColumn<T>
Type Parameters:
T - specifies the value type of the index column.
All Implemented Interfaces:
SnmpProxyColumn<T>, SnmpProxyIndexColumn<T>, org.snmp4j.smi.SubIndexInfo

public class SnmpIndexColumn<T> extends SnmpColumn<T> implements SnmpProxyIndexColumn<T>
The SnmpIndexColumn represents a columnar object that is used as an INDEX element of a specific table. An instance of this class can only be used with the table it has been created for, because the SmiIndexInfo may vary from table to table.
Author:
Frank Fock
  • Constructor Details

    • SnmpIndexColumn

      public SnmpIndexColumn(org.snmp4j.smi.OID oid, Class<T> valueClass, org.snmp4j.smi.SubIndexInfo subIndexInfo, int smiSyntax)
      Creates a index column.
      Parameters:
      oid - the OID of the columnar object that represents this (sub-)index column.
      valueClass - the value class of the index column's value.
      subIndexInfo - the description of the index
      smiSyntax - the SMI syntax of the index column.
    • SnmpIndexColumn

      public SnmpIndexColumn(org.snmp4j.smi.OID oid, Class<T> valueClass, int smiSyntax, int minWidth, int maxWidth, org.snmp4j.smi.SubIndexInfo subIndexInfo)
      Creates a index column.
      Parameters:
      oid - the OID of the columnar object that represents this (sub-)index column.
      valueClass - the value class of the index column's value.
      smiSyntax - the SMI syntax of the index column.
      minWidth - the minimum width in characters of the values for this column. This servers as a hint for the column size calculation when this model is being rendered for display.
      maxWidth - the maximum width in characters of the values of this column. This servers as a hint for the column size calculation when this model is being rendered for display.
      subIndexInfo - the description of the index
    • SnmpIndexColumn

      public SnmpIndexColumn(org.snmp4j.smi.OID oid, Class<T> valueClass, int smiSyntax, int minWidth, int maxWidth, String header, org.snmp4j.smi.SubIndexInfo subIndexInfo)
      Creates a index column.
      Parameters:
      oid - the OID of the columnar object that represents this (sub-)index column.
      valueClass - the value class of the index column's value.
      smiSyntax - the SMI syntax of the index column.
      minWidth - the minimum width in characters of the values for this column. This servers as a hint for the column size calculation when this model is being rendered for display.
      maxWidth - the maximum width in characters of the values of this column. This servers as a hint for the column size calculation when this model is being rendered for display.
      header - the header string for this column (this value is not actually used by the proxy but can be used by a column renderer.
      subIndexInfo - the description of the index.
  • Method Details

    • hasImpliedLength

      public boolean hasImpliedLength()
      Specified by:
      hasImpliedLength in interface org.snmp4j.smi.SubIndexInfo
    • getMinLength

      public int getMinLength()
      Specified by:
      getMinLength in interface org.snmp4j.smi.SubIndexInfo
    • getMaxLength

      public int getMaxLength()
      Specified by:
      getMaxLength in interface org.snmp4j.smi.SubIndexInfo
    • getSnmpSyntax

      public int getSnmpSyntax()
      Specified by:
      getSnmpSyntax in interface org.snmp4j.smi.SubIndexInfo