java.lang.Comparable
public class DisplayString<V extends org.snmp4j.smi.OctetString> extends MOMutableColumn<V>
DisplayString
class implements the DisplayString textual
convention as defined by the SNMPv2-TC MIB specification for columnar
objects.Modifier and Type | Class | Description |
---|---|---|
static class |
DisplayString.DisplayStringValidation |
The
DisplayStringValidation can be used to validate the
contents of OctetString variables that follow the
DisplayString TC rules. |
Constructor | Description |
---|---|
DisplayString(int columnID,
MOAccess access,
V defaultValue) |
|
DisplayString(int columnID,
MOAccess access,
V defaultValue,
boolean mutableInService) |
|
DisplayString(int columnID,
MOAccess access,
V defaultValue,
boolean mutableInService,
int minSize,
int maxSize) |
Modifier and Type | Method | Description |
---|---|---|
int |
validate(V newValue,
V oldValue) |
|
static int |
validateDisplayString(org.snmp4j.smi.Variable displayString,
ValueConstraint sizeConstraints) |
Validates a variable as a DisplayString OCTET STRING.
|
compareTo, get, getAccess, getColumnID, getRestoreValue, getStoreValue, getSyntax, getTable, getValue, isVolatile, setAccess, setColumnID, setSyntax, setTable
addMOValueValidationListener, cleanup, commit, getDefaultValue, isMandatory, isMutableInService, prepare, removeMOValueValidationListener, setDefaultValue, setMandatory, setMutableInService, toString, undo, validate, validateSetRequest
public static final int MIB_SIZE
public static final int MAX_SIZE
public DisplayString(int columnID, MOAccess access, V defaultValue, boolean mutableInService)
public static int validateDisplayString(org.snmp4j.smi.Variable displayString, ValueConstraint sizeConstraints)
displayString
- a variable to validate.sizeConstraints
- a constraint for the size (length) of the string.Copyright © 2018 SNMP4J.org. All rights reserved.