ParameterMode.java :  » Collaboration » JacORB » org » omg » CORBA » Java Open Source

Java Open Source » Collaboration » JacORB 
JacORB » org » omg » CORBA » ParameterMode.java
/***** Copyright (c) 1999-2000 Object Management Group. Unlimited rights to 
       duplicate and use this code are hereby granted provided that this 
       copyright notice is included.
*****/

/***** This class is generated by an IDL compiler and is ORB-vendor specific. 
       A "dummy" implementation is provided so that the "official" org.omg.*
       packages may be compiled.  In order to actually use a Java ORB,
       the ORB vendor's implementation will provide a "real"
       implementation of the class.

       In order to be conformant the class shall support the signatures
       specified here, but will have an orb-specific implementation.

       The class may support additional vendor specific functionality.
       It shall have at least the inheritance relationships specified
       here. Any additional (vendor specific) inheritance relationships may 
       only be with other classes and interfaces that are guaranteed to be 
       present in the JDK core.
*****/

package org.omg.CORBA;

public class  ParameterMode implements org.omg.CORBA.portable.IDLEntity {

    public static final int _PARAM_IN = 0;
    public static final  ParameterMode  PARAM_IN = 
        new ParameterMode(_PARAM_IN);

    public static final int _PARAM_OUT = 1;
    public static final  ParameterMode  PARAM_OUT = 
        new ParameterMode(_PARAM_OUT);

    public static final int _PARAM_INOUT = 2;
    public static final  ParameterMode  PARAM_INOUT = 
        new ParameterMode(_PARAM_INOUT);

    public int value() {
        throw new org.omg.CORBA.NO_IMPLEMENT();
    }

    public static ParameterMode from_int(int val) 
                       /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */ {
    switch (val) {
    case _PARAM_IN:
        return  PARAM_IN;
    case _PARAM_OUT:
        return  PARAM_OUT;
    case _PARAM_INOUT:
        return  PARAM_INOUT;
    default:
        throw new org.omg.CORBA.BAD_PARAM();
    }
    }

    protected  ParameterMode(int _value) {
        throw new org.omg.CORBA.NO_IMPLEMENT();
    }

    public java.lang.Object readResolve() throws java.io.ObjectStreamException
    {
  return from_int( value() ) ;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.