001 package org.omg.CSI;
002
003
004 /**
005 * org/omg/CSI/AuthorizationTokenHelper.java .
006 * Generated by the IDL-to-Java compiler (portable), version "3.2"
007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/CSI.idl
008 * Saturday, November 26, 2011 9:53:36 PM UTC
009 */
010
011
012 // AuthorizationElements
013 abstract public class AuthorizationTokenHelper
014 {
015 private static String _id = "IDL:omg.org/CSI/AuthorizationToken:1.0";
016
017 public static void insert (org.omg.CORBA.Any a, org.omg.CSI.AuthorizationElement[] that)
018 {
019 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
020 a.type (type ());
021 write (out, that);
022 a.read_value (out.create_input_stream (), type ());
023 }
024
025 public static org.omg.CSI.AuthorizationElement[] extract (org.omg.CORBA.Any a)
026 {
027 return read (a.create_input_stream ());
028 }
029
030 private static org.omg.CORBA.TypeCode __typeCode = null;
031 synchronized public static org.omg.CORBA.TypeCode type ()
032 {
033 if (__typeCode == null)
034 {
035 __typeCode = org.omg.CSI.AuthorizationElementHelper.type ();
036 __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
037 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CSI.AuthorizationTokenHelper.id (), "AuthorizationToken", __typeCode);
038 }
039 return __typeCode;
040 }
041
042 public static String id ()
043 {
044 return _id;
045 }
046
047 public static org.omg.CSI.AuthorizationElement[] read (org.omg.CORBA.portable.InputStream istream)
048 {
049 org.omg.CSI.AuthorizationElement value[] = null;
050 int _len0 = istream.read_long ();
051 value = new org.omg.CSI.AuthorizationElement[_len0];
052 for (int _o1 = 0;_o1 < value.length; ++_o1)
053 value[_o1] = org.omg.CSI.AuthorizationElementHelper.read (istream);
054 return value;
055 }
056
057 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CSI.AuthorizationElement[] value)
058 {
059 ostream.write_long (value.length);
060 for (int _i0 = 0;_i0 < value.length; ++_i0)
061 org.omg.CSI.AuthorizationElementHelper.write (ostream, value[_i0]);
062 }
063
064 }