田源
2024-03-07 4b4083fd73dc27ece42f4835483565eef0e4f608
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package com.vci.corba.auth2.data;
 
 
/**
 * Generated from IDL struct "GrandValue".
 *
 * @author JacORB IDL compiler V 3.9
 * @version generated at 2022-12-23 15:42:24
 */
 
public abstract class GrandValueHelper
{
    private volatile static org.omg.CORBA.TypeCode _type;
    public static org.omg.CORBA.TypeCode type ()
    {
        if (_type == null)
        {
            synchronized(GrandValueHelper.class)
            {
                if (_type == null)
                {
                    _type = org.omg.CORBA.ORB.init().create_struct_tc(com.vci.corba.auth2.data.GrandValueHelper.id(),"GrandValue",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("ID", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("users", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("roles", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("userGroups", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("identifier", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("expToSQL", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("isGrand", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(9)), null),new org.omg.CORBA.StructMember("ruleText", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("seniorRuleText", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("ruleName", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("ruleType", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("lexpToSQL", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("lruleText", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("lseniorRuleText", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)});
                }
            }
        }
        return _type;
    }
 
    public static void insert (final org.omg.CORBA.Any any, final com.vci.corba.auth2.data.GrandValue s)
    {
        any.type(type());
        write( any.create_output_stream(),s);
    }
 
    public static com.vci.corba.auth2.data.GrandValue extract (final org.omg.CORBA.Any any)
    {
        org.omg.CORBA.portable.InputStream in = any.create_input_stream();
        try
        {
            return read (in);
        }
        finally
        {
            try
            {
                in.close();
            }
            catch (java.io.IOException e)
            {
            throw new RuntimeException("Unexpected exception " + e.toString() );
            }
        }
    }
 
    public static String id()
    {
        return "IDL:com/vci/corba/auth2/data/GrandValue:1.0";
    }
    public static com.vci.corba.auth2.data.GrandValue read (final org.omg.CORBA.portable.InputStream in)
    {
        com.vci.corba.auth2.data.GrandValue result = new com.vci.corba.auth2.data.GrandValue();
        result.ID=in.read_wstring();
        result.users=in.read_wstring();
        result.roles=in.read_wstring();
        result.userGroups=in.read_wstring();
        result.identifier=in.read_wstring();
        result.expToSQL=in.read_wstring();
        result.isGrand=in.read_char();
        result.ruleText=in.read_wstring();
        result.seniorRuleText=in.read_wstring();
        result.ruleName=in.read_wstring();
        result.ruleType=in.read_wstring();
        result.lexpToSQL=in.read_wstring();
        result.lruleText=in.read_wstring();
        result.lseniorRuleText=in.read_wstring();
        return result;
    }
    public static void write (final org.omg.CORBA.portable.OutputStream out, final com.vci.corba.auth2.data.GrandValue s)
    {
        java.lang.String tmpResult1060 = s.ID;
out.write_wstring( tmpResult1060 );
        java.lang.String tmpResult1061 = s.users;
out.write_wstring( tmpResult1061 );
        java.lang.String tmpResult1062 = s.roles;
out.write_wstring( tmpResult1062 );
        java.lang.String tmpResult1063 = s.userGroups;
out.write_wstring( tmpResult1063 );
        java.lang.String tmpResult1064 = s.identifier;
out.write_wstring( tmpResult1064 );
        java.lang.String tmpResult1065 = s.expToSQL;
out.write_wstring( tmpResult1065 );
        out.write_char(s.isGrand);
        java.lang.String tmpResult1066 = s.ruleText;
out.write_wstring( tmpResult1066 );
        java.lang.String tmpResult1067 = s.seniorRuleText;
out.write_wstring( tmpResult1067 );
        java.lang.String tmpResult1068 = s.ruleName;
out.write_wstring( tmpResult1068 );
        java.lang.String tmpResult1069 = s.ruleType;
out.write_wstring( tmpResult1069 );
        java.lang.String tmpResult1070 = s.lexpToSQL;
out.write_wstring( tmpResult1070 );
        java.lang.String tmpResult1071 = s.lruleText;
out.write_wstring( tmpResult1071 );
        java.lang.String tmpResult1072 = s.lseniorRuleText;
out.write_wstring( tmpResult1072 );
    }
}