Package com.snmp4j.smi
Interface SmiValueType
- All Known Subinterfaces:
SmiObjectType
,SmiObjectTypeIndex
,SmiTextualConvention
public interface SmiValueType
Ths SmiValueType interface abstracts the common element of the OBJECT-TYPE and the
TEXTUAL-CONVENTION SMI constructs.
- Since:
- 1.2 (Pro edition only)
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the SMI syntax as defined bySMIConstants
for this value type.Gets the SYNTAX clause of this OBJECT-TYPE or TEXTUAL-CONVENTION.
-
Method Details
-
getSyntax
SmiSyntax getSyntax()Gets the SYNTAX clause of this OBJECT-TYPE or TEXTUAL-CONVENTION.- Returns:
- a SmiSyntax instance representing the SYNTAX clause.
-
getSmiSyntax
int getSmiSyntax()Gets the SMI syntax as defined bySMIConstants
for this value type. If this SmiObject is not of typeSmiType.OBJECT_TYPE_SCALAR
,SmiType.OBJECT_TYPE_COLUMN
and not of typeSmiType.TEXTUAL_CONVENTION
then zero is returned.- Returns:
- the SMI BER syntax identifier or 0 if this object has no syntax.
- Since:
- 1.3.2
-