01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements;
19:
20: /**
21: * GTK type codes
22: *
23: * @author Marc Johnson (marc_johnson27591@hotmail.com)
24: * @version CVS $Id: GTKTypes.java 433543 2006-08-22 06:22:54Z crossley $
25: */
26: public class GTKTypes {
27: public static final int GTK_TYPE_INVALID = 0;
28: public static final int GTK_TYPE_NONE = 1;
29: public static final int GTK_TYPE_CHAR = 2;
30: public static final int GTK_TYPE_UCHAR = 3;
31: public static final int GTK_TYPE_BOOL = 4;
32: public static final int GTK_TYPE_INT = 5;
33: public static final int GTK_TYPE_UINT = 6;
34: public static final int GTK_TYPE_LONG = 7;
35: public static final int GTK_TYPE_ULONG = 8;
36: public static final int GTK_TYPE_FLOAT = 9;
37: public static final int GTK_TYPE_DOUBLE = 10;
38: public static final int GTK_TYPE_STRING = 11;
39: public static final int GTK_TYPE_ENUM = 12;
40: public static final int GTK_TYPE_FLAGS = 13;
41: public static final int GTK_TYPE_BOXED = 14;
42: public static final int GTK_TYPE_POINTER = 15;
43: public static final int GTK_TYPE_SIGNAL = 16;
44: public static final int GTK_TYPE_ARGS = 17;
45: public static final int GTK_TYPE_CALLBACK = 18;
46: public static final int GTK_TYPE_C_CALLBACK = 19;
47: public static final int GTK_TYPE_FOREIGN = 20;
48: public static final int GTK_TYPE_OBJECT = 21;
49:
50: private GTKTypes() { /* VOID */
51: }
52:
53: /**
54: * Is this a valid GTK value?
55: * @param val value to be checked
56: * @return true if valid, false otherwise
57: */
58: public static boolean isValid(int val) {
59: return (val >= GTK_TYPE_INVALID && val <= GTK_TYPE_OBJECT);
60: }
61: } // end public class GTKTypes
|