Package org.snmp4j.model.snmp.proxy.impl
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
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 Summary
ConstructorsConstructorDescriptionSnmpIndexColumn
(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.SnmpIndexColumn
(org.snmp4j.smi.OID oid, Class<T> valueClass, int smiSyntax, int minWidth, int maxWidth, org.snmp4j.smi.SubIndexInfo subIndexInfo) Creates a index column.SnmpIndexColumn
(org.snmp4j.smi.OID oid, Class<T> valueClass, org.snmp4j.smi.SubIndexInfo subIndexInfo, int smiSyntax) Creates a index column. -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
boolean
Methods inherited from class org.snmp4j.model.snmp.proxy.impl.SnmpColumn
getHeader, getMaxWidth, getMinWidth, getOID, getSmiMaxAccess, getSmiSyntax, getValueClass, setHeader, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.snmp4j.model.snmp.proxy.SnmpProxyColumn
getHeader, getMaxWidth, getMinWidth, getOID, getSmiMaxAccess, getSmiSyntax, getValueClass
-
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 indexsmiSyntax
- 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 interfaceorg.snmp4j.smi.SubIndexInfo
-
getMinLength
public int getMinLength()- Specified by:
getMinLength
in interfaceorg.snmp4j.smi.SubIndexInfo
-
getMaxLength
public int getMaxLength()- Specified by:
getMaxLength
in interfaceorg.snmp4j.smi.SubIndexInfo
-
getSnmpSyntax
public int getSnmpSyntax()- Specified by:
getSnmpSyntax
in interfaceorg.snmp4j.smi.SubIndexInfo
-