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 TypeMethodDescriptionintGets the SMI syntax as defined bySMIConstantsfor 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 bySMIConstantsfor this value type. If this SmiObject is not of typeSmiType.OBJECT_TYPE_SCALAR,SmiType.OBJECT_TYPE_COLUMNand not of typeSmiType.TEXTUAL_CONVENTIONthen zero is returned.- Returns:
- the SMI BER syntax identifier or 0 if this object has no syntax.
- Since:
- 1.3.2
-