Package com.snmp4j.smi
Interface SmiObjectType
- All Superinterfaces:
Comparable<SmiObject>,SmiObject,SmiValueType
- All Known Subinterfaces:
SmiObjectTypeIndex
The SmiObjectType interface extends the
SmiObject by
attributes specific to the SMI OBJECT-TYPE construct, i.e. the MAX-ACCESS
clause.- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionorg.snmp4j.smi.VariableCreates a newVariableBindingbased on this object type's default value (seegetDefaultVariable()) or if that isnullnew variable matching the object type's syntax created with its default constructor.Gets the columnar OBJECT-TYPE definitions for this table.Gets the DEFVAL clause content if present.org.snmp4j.smi.VariableReturns the default value returned bygetDefaultValue()as aVariableinstance ornullif there is no default value (i.e., no DEFVAL clause).Gets the index objects for this table.org.snmp4j.smi.MaxAccessGets the maximum access allowed for this MIB OBJECT-TYPE.intGets the maximum length (in characters) of a formatted value using the current variable format.intGets the minimum length (in characters) of a formatted value using the current variable format.getUnits()Gets the content of the UNITS clause (if present).Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.snmp4j.smi.SmiObject
getAsn1Comments, getChildren, getDescription, getObjectName, getOID, getParent, getReference, getSmiSyntax, getStatus, getTypeMethods inherited from interface com.snmp4j.smi.SmiValueType
getSmiSyntax, getSyntax
-
Method Details
-
getMaxAccess
org.snmp4j.smi.MaxAccess getMaxAccess()Gets the maximum access allowed for this MIB OBJECT-TYPE.- Returns:
- an access enumeration value.
-
getColumns
List<SmiObjectType> getColumns()Gets the columnar OBJECT-TYPE definitions for this table. If this object is not a tablenullis returned.- Returns:
nullif this OBJECT-TYPE is not a table entry (row) OBJECT-TYPE and the OBJECT-TYPE definitions of the columnar objects of this table.
-
getIndexObjects
List<SmiObjectTypeIndex> getIndexObjects()Gets the index objects for this table. If this object is not a tablenullis returned.- Returns:
nullif this OBJECT-TYPE is not a table entry (row) OBJECT-TYPE and the OBJECT-TYPE definitions of the index objects of this table.
-
getUnits
String getUnits()Gets the content of the UNITS clause (if present).- Returns:
- the UNITS clause content or
nullif the UNITS clause is not present in this OBJECT-TYPE.
-
getMaxValueLength
int getMaxValueLength()Gets the maximum length (in characters) of a formatted value using the current variable format.- Returns:
- the maximum number of characters in a string value of this OBJECT TYPE.
- Since:
- 1.3.1
-
getMinValueLength
int getMinValueLength()Gets the minimum length (in characters) of a formatted value using the current variable format.- Returns:
- the minimum number of characters in a string value of this OBJECT TYPE.
- Since:
- 1.3.1
-
getDefaultValue
String getDefaultValue()Gets the DEFVAL clause content if present. Otherwisenullis returned.- Returns:
- the content of the SMI OBJECT-TYPE DEFVAL clause.
- Since:
- 1.3.2
-
getDefaultVariable
org.snmp4j.smi.Variable getDefaultVariable()Returns the default value returned bygetDefaultValue()as aVariableinstance ornullif there is no default value (i.e., no DEFVAL clause).- Returns:
- the default value as variable.
- Since:
- 1.3.2
-
createNewVariable
org.snmp4j.smi.Variable createNewVariable()Creates a newVariableBindingbased on this object type's default value (seegetDefaultVariable()) or if that isnullnew variable matching the object type's syntax created with its default constructor.- Returns:
- a new variable matching this object type's syntax and default value (if present).
- Since:
- 1.3.2
-