T
- specifies the value type of the column.SnmpProxyColumn<T>
SnmpIndexColumn
public class SnmpColumn<T> extends Object implements SnmpProxyColumn<T>
Constructor | Description |
---|---|
SnmpColumn(org.snmp4j.smi.OID oid,
Class<T> valueClass,
org.snmp4j.smi.MaxAccess smiMaxAccess,
int smiSyntax) |
Create a column with an OID (i.e., the object identifier of the columnar MIB object without any
index), value class, maximum supported access and SMI syntax.
|
SnmpColumn(org.snmp4j.smi.OID oid,
Class<T> valueClass,
org.snmp4j.smi.MaxAccess smiMaxAccess,
int smiSyntax,
int minWidth,
int maxWidth) |
Create a column with an OID (i.e., the object identifier of the columnar MIB object without any
index), value class, maximum supported access and SMI syntax.
|
SnmpColumn(org.snmp4j.smi.OID oid,
Class<T> valueClass,
org.snmp4j.smi.MaxAccess smiMaxAccess,
int smiSyntax,
int minWidth,
int maxWidth,
String header) |
Create a column with an OID (i.e., the object identifier of the columnar MIB object without any
index), value class, maximum supported access and SMI syntax.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getHeader() |
Gets the header string for the column.
|
int |
getMaxWidth() |
Gets the maximum width of the column's values in characters.
|
int |
getMinWidth() |
Gets the minimum width of the column's values in characters.
|
org.snmp4j.smi.OID |
getOID() |
Gets the instance OID of the SNMP columnar object associated with this proxy column.
|
org.snmp4j.smi.MaxAccess |
getSmiMaxAccess() |
Gets the SMI maximum access for this column.
|
int |
getSmiSyntax() |
Gets the SMI syntax for this column.
|
Class<T> |
getValueClass() |
Gets the class of the model value type.
|
void |
setHeader(String header) |
Sets the column header.
|
String |
toString() |
public SnmpColumn(org.snmp4j.smi.OID oid, Class<T> valueClass, org.snmp4j.smi.MaxAccess smiMaxAccess, int smiSyntax)
oid
- the object identifier of the columnar MIB object. For example, for the column ifDescr this would be
new OID(1.3.6.1.2.1.2.2.1.2)
.valueClass
- the class of the value representation for this column within the model.smiMaxAccess
- the maximum access that should be supported by the model for this column (the access right should be
less or equal to the maximum access right defined by the corresponding MIB).smiSyntax
- the SMI syntax of the object.public SnmpColumn(org.snmp4j.smi.OID oid, Class<T> valueClass, org.snmp4j.smi.MaxAccess smiMaxAccess, int smiSyntax, int minWidth, int maxWidth)
oid
- the object identifier of the columnar MIB object. For example, for the column ifDescr this would be
new OID(1.3.6.1.2.1.2.2.1.2)
.valueClass
- the class of the value representation for this column within the model.smiMaxAccess
- the maximum access that should be supported by the model for this column (the access right should be
less or equal to the maximum access right defined by the corresponding MIB).smiSyntax
- the SMI syntax of the object.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.public SnmpColumn(org.snmp4j.smi.OID oid, Class<T> valueClass, org.snmp4j.smi.MaxAccess smiMaxAccess, int smiSyntax, int minWidth, int maxWidth, String header)
oid
- the object identifier of the columnar MIB object. For example, for the column ifDescr this would be
new OID(1.3.6.1.2.1.2.2.1.2)
.valueClass
- the class of the value representation for this column within the model.smiMaxAccess
- the maximum access that should be supported by the model for this column (the access right should be
less or equal to the maximum access right defined by the corresponding MIB).smiSyntax
- the SMI syntax of the object.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.public org.snmp4j.smi.OID getOID()
SnmpProxyColumn
getOID
in interface SnmpProxyColumn<T>
public Class<T> getValueClass()
SnmpProxyColumn
getValueClass
in interface SnmpProxyColumn<T>
public int getMinWidth()
getMinWidth
in interface SnmpProxyColumn<T>
public int getMaxWidth()
getMaxWidth
in interface SnmpProxyColumn<T>
public void setHeader(String header)
header
- the header string for this column.public String getHeader()
SnmpProxyColumn
getHeader
in interface SnmpProxyColumn<T>
public org.snmp4j.smi.MaxAccess getSmiMaxAccess()
SnmpProxyColumn
getSmiMaxAccess
in interface SnmpProxyColumn<T>
public int getSmiSyntax()
getSmiSyntax
in interface SnmpProxyColumn<T>
Copyright © 2020 SNMP4J.org. All rights reserved.