Enum Class SmiType
- All Implemented Interfaces:
Serializable, Comparable<SmiType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSMIv2AGENT-CAPABILITIESmacro.SMIv2MODULE-COMPLIANCEmacro.SMIv2MODULE-IDENTITYmacro.SMIv2NOTIFICATION-GROUPmacro.SMIv2NOTIFICATION-TYPEmacro.SMIv2OBJECT-GROUPmacro.SMIv2OBJECT-IDENTITYmacro.SMIv1/v2OBJECT-TYPEused as a plain object name (not further classified).SMIv2OBJECT-TYPEthat defines a conceptual table column.SMIv2OBJECT-TYPEthat defines a scalar object.SMIv2OBJECT-TYPEthat defines a conceptual table.SMIv2OBJECT-TYPEthat defines a conceptual table row (entry).SMIv2TEXTUAL-CONVENTIONmacro.SMIv1TRAP-TYPEmacro. -
Method Summary
Modifier and TypeMethodDescriptionstatic SmiTypefromJasmiType(int jasmiType) Returns theSmiTypefor a given JASMI type constant.intGets the numeric JASMI type constant corresponding to this SMI type.static SmiTypeReturns the enum constant of this class with the specified name.static SmiType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MODULE_IDENTITY
SMIv2MODULE-IDENTITYmacro. -
OBJECT_NAME
SMIv1/v2OBJECT-TYPEused as a plain object name (not further classified). -
OBJECT_IDENTITY
SMIv2OBJECT-IDENTITYmacro. -
OBJECT_TYPE_SCALAR
SMIv2OBJECT-TYPEthat defines a scalar object. -
OBJECT_TYPE_TABLE
SMIv2OBJECT-TYPEthat defines a conceptual table. -
OBJECT_TYPE_TABLE_ENTRY
SMIv2OBJECT-TYPEthat defines a conceptual table row (entry). -
OBJECT_TYPE_COLUMN
SMIv2OBJECT-TYPEthat defines a conceptual table column. -
NOTIFICATION_TYPE
SMIv2NOTIFICATION-TYPEmacro. -
TEXTUAL_CONVENTION
SMIv2TEXTUAL-CONVENTIONmacro. -
OBJECT_GROUP
SMIv2OBJECT-GROUPmacro. -
NOTIFICATION_GROUP
SMIv2NOTIFICATION-GROUPmacro. -
MODULE_COMPLIANCE
SMIv2MODULE-COMPLIANCEmacro. -
AGENT_CAPABILITIES
SMIv2AGENT-CAPABILITIESmacro. -
TRAP_TYPE
SMIv1TRAP-TYPEmacro.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getJasmiType
public int getJasmiType()Gets the numeric JASMI type constant corresponding to this SMI type.- Returns:
- the JASMI type code as defined in
SMI.
-
fromJasmiType
Returns theSmiTypefor a given JASMI type constant. When multipleSmiTypevalues share the same JASMI code (e.g. allOBJECT_TYPE_*variants), the first matching constant is returned.- Parameters:
jasmiType- the JASMI type code as defined inSMI.- Returns:
- the matching
SmiType, ornullif no match exists.
-