001    package org.omg.CosTransactions;
002    
003    /**
004     * Generated from IDL alias "TransactionPolicyValue".
005     *
006     * @author JacORB IDL compiler V 2.3.0 (JBoss patch 6), 06-Jun-2007
007     * @version generated at Sep 22, 2012 10:58:03 AM
008     */
009    
010    public final class TransactionPolicyValueHelper
011    {
012            private static org.omg.CORBA.TypeCode _type = null;
013    
014            public static void insert (org.omg.CORBA.Any any, short s)
015            {
016                    any.insert_ushort(s);
017            }
018    
019            public static short extract (final org.omg.CORBA.Any any)
020            {
021                    return any.extract_ushort();
022            }
023    
024            public static org.omg.CORBA.TypeCode type ()
025            {
026                    if (_type == null)
027                    {
028                            _type = org.omg.CORBA.ORB.init().create_alias_tc(org.omg.CosTransactions.TransactionPolicyValueHelper.id(), "TransactionPolicyValue",org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(4)));
029                    }
030                    return _type;
031            }
032    
033            public static String id()
034            {
035                    return "IDL:CosTransactions/TransactionPolicyValue:1.0";
036            }
037            public static short read (final org.omg.CORBA.portable.InputStream _in)
038            {
039                    short _result;
040                    _result=_in.read_ushort();
041                    return _result;
042            }
043    
044            public static void write (final org.omg.CORBA.portable.OutputStream _out, short _s)
045            {
046                    _out.write_ushort(_s);
047            }
048    }