public interface VariableTextFormat
VariableTextFormat
provides a textual representation
of SNMP Variable
s, in dependence of their associated (instance) OID.Modifier and Type | Method and Description |
---|---|
String |
format(OID instanceOID,
Variable variable,
boolean withOID)
Returns a textual representation of the supplied variable against the
optionally supplied instance OID.
|
Variable |
parse(int smiSyntax,
String text)
Parses a textual representation of a variable against a SMI type.
|
Variable |
parse(OID classOrInstanceOID,
String text)
Parses a textual representation of a variable against its associated
OBJECT-TYPE OID.
|
VariableBinding |
parseVariableBinding(String text)
Parses a textual representation of a variable binding.
|
String format(OID instanceOID, Variable variable, boolean withOID)
instanceOID
- the instance OID variable
is associated with.
If null
the formatting cannot take any MIB specification
of the variable into account and has to format it based on its type
only.variable
- the variable to format.withOID
- if true
the instanceOID
should be included
in the textual representation to form a VariableBinding
representation.VariableBinding parseVariableBinding(String text) throws ParseException
text
- a textual representation of the variable binding.VariableBinding
instance.ParseException
- if the variable binding cannot be parsed successfully.Variable parse(OID classOrInstanceOID, String text) throws ParseException
classOrInstanceOID
- the instance OID variable
is associated with. Must not
be null
.text
- a textual representation of the variable.Variable
instance.ParseException
- if the variable cannot be parsed successfully.Variable parse(int smiSyntax, String text) throws ParseException
smiSyntax
- the SMI syntax identifier identifying the target Variable
.text
- a textual representation of the variable.Variable
instance.ParseException
- if the variable cannot be parsed successfully.Copyright © 2018 SNMP4J.org. All rights reserved.