KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > snmp4j > smi > SMIConstants


1 /*_############################################################################
2   _##
3   _## SNMP4J - SMIConstants.java
4   _##
5   _## Copyright 2003-2007 Frank Fock and Jochen Katz (SNMP4J.org)
6   _##
7   _## Licensed under the Apache License, Version 2.0 (the "License");
8   _## you may not use this file except in compliance with the License.
9   _## You may obtain a copy of the License at
10   _##
11   _## http://www.apache.org/licenses/LICENSE-2.0
12   _##
13   _## Unless required by applicable law or agreed to in writing, software
14   _## distributed under the License is distributed on an "AS IS" BASIS,
15   _## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   _## See the License for the specific language governing permissions and
17   _## limitations under the License.
18   _##
19   _##########################################################################*/

20
21 package org.snmp4j.smi;
22
23 import org.snmp4j.asn1.BER;
24
25 /**
26  * The <code>SMIConstants</code> defines the tag values for SMI syntax types.
27  *
28  * @author Frank Fock
29  * @version 1.5
30  */

31 public final class SMIConstants {
32
33   public static final int SYNTAX_INTEGER = BER.ASN_INTEGER;
34   public static final int SYNTAX_OCTET_STRING = BER.ASN_OCTET_STR;
35   public static final int SYNTAX_NULL = BER.ASN_NULL;
36   public static final int SYNTAX_OBJECT_IDENTIFIER = BER.ASN_OBJECT_ID;
37
38   public static final int SYNTAX_IPADDRESS = BER.IPADDRESS;
39   public static final int SYNTAX_INTEGER32 = BER.ASN_INTEGER;
40   public static final int SYNTAX_COUNTER32 = BER.COUNTER32;
41   public static final int SYNTAX_GAUGE32 = BER.GAUGE32;
42   public static final int SYNTAX_UNSIGNED_INTEGER32 = BER.GAUGE32;
43   public static final int SYNTAX_TIMETICKS = BER.TIMETICKS;
44   public static final int SYNTAX_OPAQUE = BER.OPAQUE;
45   public static final int SYNTAX_COUNTER64 = BER.COUNTER64;
46
47   public static final int SYNTAX_BITS = SYNTAX_OCTET_STRING;
48
49   public static final int EXCEPTION_NO_SUCH_OBJECT = BER.NOSUCHOBJECT;
50   public static final int EXCEPTION_NO_SUCH_INSTANCE = BER.NOSUCHINSTANCE;
51   public static final int EXCEPTION_END_OF_MIB_VIEW = BER.ENDOFMIBVIEW;
52 }
53
54
Popular Tags