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 and Description |
---|---|
static class |
DisplayString.DisplayStringValidation
The
DisplayStringValidation can be used to validate the
contents of OctetString variables that follow the
DisplayString TC rules. |
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SIZE |
static int |
MIB_SIZE |
Constructor and 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 and 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.
|
addMOValueValidationListener, cleanup, commit, getDefaultValue, isMandatory, isMutableInService, prepare, removeMOValueValidationListener, setDefaultValue, setMandatory, setMutableInService, toString, undo, validate, validateSetRequest
compareTo, get, getAccess, getColumnID, getRestoreValue, getStoreValue, getSyntax, getTable, getValue, isVolatile, setAccess, setColumnID, setSyntax, setTable
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 © 2017 SNMP4J.org. All rights reserved.