Package com.snmp4j.smi
Interface SmiSyntaxElement
public interface SmiSyntaxElement
The SmiSyntaxElement represents a enumerated value or a range restriction. Which of both is represented is returned
by
getType()
. For enumerations getMin()
equals getMax()
equals getValue()
.- Since:
- 1.2 (Pro edition only)
- Author:
- Frank Fock
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The type of enumerated value. -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Gets the label of the enumerated value.long
getMax()
Gets the maximum value of the range (inclusive).long
getMin()
Gets the minimum value of the range (inclusive).getType()
Gets the enumeration typelong
getValue()
Gets the long value of the enumerated value (or the min value of a range restriction).toString()
-
Method Details
-
getLabel
String getLabel()Gets the label of the enumerated value.- Returns:
- the label string or
null
if this is a range restriction.
-
getValue
long getValue()Gets the long value of the enumerated value (or the min value of a range restriction).- Returns:
- the numeric value of this element.
-
getMin
long getMin()Gets the minimum value of the range (inclusive).- Returns:
- the minimum value.
-
getMax
long getMax()Gets the maximum value of the range (inclusive).- Returns:
- the maximum value.
-
getType
SmiSyntaxElement.Type getType()Gets the enumeration type- Returns:
- an enumeration
SmiSyntaxElement.Type
.
-
toString
String toString()
-