1*a046d00fSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*a046d00fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*a046d00fSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*a046d00fSAndrew Rist * distributed with this work for additional information 6*a046d00fSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*a046d00fSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*a046d00fSAndrew Rist * "License"); you may not use this file except in compliance 9*a046d00fSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*a046d00fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*a046d00fSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*a046d00fSAndrew Rist * software distributed under the License is distributed on an 15*a046d00fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*a046d00fSAndrew Rist * KIND, either express or implied. See the License for the 17*a046d00fSAndrew Rist * specific language governing permissions and limitations 18*a046d00fSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*a046d00fSAndrew Rist *************************************************************/ 21*a046d00fSAndrew Rist 22*a046d00fSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir package com.sun.star.uno; 25cdf0e10cSrcweir 26cdf0e10cSrcweir /** 27cdf0e10cSrcweir * The Enum class is the base class for all classes generated 28cdf0e10cSrcweir * as java binding for the IDL type enum. 29cdf0e10cSrcweir * Each java mapped enum class provides static member of this class 30cdf0e10cSrcweir * which represents the enum values. 31cdf0e10cSrcweir * You cannot create a object of this class or subclass direct, to 32cdf0e10cSrcweir * avoid enum values with integer values outside the defined range. 33cdf0e10cSrcweir * <p> 34cdf0e10cSrcweir * @version $Revision: 1.5 $ $ $Date: 2008-04-11 11:11:59 $ 35cdf0e10cSrcweir */ 36cdf0e10cSrcweir public abstract class Enum { 37cdf0e10cSrcweir private int m_value; 38cdf0e10cSrcweir 39cdf0e10cSrcweir /** 40cdf0e10cSrcweir * Constructs a enum value. 41cdf0e10cSrcweir * <p> 42cdf0e10cSrcweir * @param value the integer value of this enum value. 43cdf0e10cSrcweir */ Enum(int value)44cdf0e10cSrcweir protected Enum(int value) { 45cdf0e10cSrcweir m_value = value; 46cdf0e10cSrcweir } 47cdf0e10cSrcweir 48cdf0e10cSrcweir /** 49cdf0e10cSrcweir * Get the integer value of an enum value. 50cdf0e10cSrcweir * <p> 51cdf0e10cSrcweir * @return the integer value. 52cdf0e10cSrcweir */ getValue()53cdf0e10cSrcweir public final int getValue() { 54cdf0e10cSrcweir return m_value; 55cdf0e10cSrcweir } 56cdf0e10cSrcweir } 57cdf0e10cSrcweir 58