Beispiel #1
0
 //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
 public virtual void  writeExternal(System.IO.BinaryWriter out_Renamed)
 {
     ExtUtil.writeNumeric(out_Renamed, points.size());
     for (int i = 0; i < points.size(); ++i)
     {
         GeoPointData t = points.get_Renamed(i);
         t.writeExternal(out_Renamed);
     }
 }
Beispiel #2
0
        /* (non-Javadoc)
         * @see org.javarosa.core.services.storage.utilities.Externalizable#writeExternal(java.io.DataOutputStream)
         */
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public virtual void  writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            ExtUtil.write(out_Renamed, new ExtWrapNullable(Id));
            ExtUtil.writeNumeric(out_Renamed, DataType);
            ExtUtil.write(out_Renamed, new ExtWrapNullable(Preload));
            ExtUtil.write(out_Renamed, new ExtWrapNullable(PreloadParams));
            ExtUtil.write(out_Renamed, new ExtWrapTagged(ref_Renamed));

            //don't bother writing relevancy/required/readonly/constraint/calculate/additionalAttrs right now; they're only used during parse anyway
        }
Beispiel #3
0
        /// <summary> serialize a compact instance</summary>
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public virtual void  writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            if (instance == null)
            {
                throw new System.SystemException("instance has not yet been set via setData()");
            }

            ExtUtil.writeNumeric(out_Renamed, instance.FormId);
            ExtUtil.writeNumeric(out_Renamed, instance.ID);
            ExtUtil.write(out_Renamed, new ExtWrapNullable(instance.DateSaved));

            writeTreeElement(out_Renamed, instance.getRoot());
        }
Beispiel #4
0
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public override void  writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            ExtUtil.writeNumeric(out_Renamed, init_context);
            if (init_context == INIT_CONTEXT_EXPR)
            {
                ExtUtil.write(out_Renamed, filtExpr);
            }

            System.Collections.ArrayList v = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10));
            for (int i = 0; i < steps.Length; i++)
            {
                v.Add(steps[i]);
            }
            ExtUtil.write(out_Renamed, new ExtWrapList(v));
        }
Beispiel #5
0
 //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
 public override void  writeExternal(System.IO.BinaryWriter out_Renamed)
 {
     //UPGRADE_WARNING: Data types in Visual C# might be different.  Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
     if (d == (int)d)
     {
         out_Renamed.Write((System.Byte) 0x00);
         //UPGRADE_WARNING: Data types in Visual C# might be different.  Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
         ExtUtil.writeNumeric(out_Renamed, (int)d);
     }
     else
     {
         out_Renamed.Write((System.Byte) 0x01);
         ExtUtil.writeDecimal(out_Renamed, d);
     }
 }
Beispiel #6
0
        /*
         * (non-Javadoc)
         * @see org.javarosa.core.util.Externalizable#writeExternal(java.io.DataOutputStream)
         */
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public virtual void  writeExternal(System.IO.BinaryWriter dos)
        {
            ExtUtil.writeNumeric(dos, ID);
            ExtUtil.write(dos, new ExtWrapNullable(binding == null?null:new ExtWrapTagged(binding)));
            ExtUtil.write(dos, new ExtWrapNullable(AppearanceAttr));
            ExtUtil.write(dos, new ExtWrapNullable(TextID));
            ExtUtil.write(dos, new ExtWrapNullable(LabelInnerText));
            ExtUtil.write(dos, new ExtWrapNullable(HelpText));
            ExtUtil.write(dos, new ExtWrapNullable(HelpTextID));
            ExtUtil.write(dos, new ExtWrapNullable(HelpInnerText));

            ExtUtil.writeNumeric(dos, ControlType);

            ExtUtil.writeAttributes(dos, additionalAttributes);

            ExtUtil.write(dos, new ExtWrapList(ExtUtil.emptyIfNull(choices)));
            ExtUtil.write(dos, new ExtWrapNullable(dynamicChoices));
        }
Beispiel #7
0
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public virtual void  writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            ExtUtil.writeNumeric(out_Renamed, axis);
            ExtUtil.writeNumeric(out_Renamed, test);

            switch (test)
            {
            case TEST_NAME:  ExtUtil.write(out_Renamed, name); break;

            case TEST_NAMESPACE_WILDCARD:  ExtUtil.writeString(out_Renamed, namespace_Renamed); break;

            case TEST_TYPE_PROCESSING_INSTRUCTION:  ExtUtil.write(out_Renamed, new ExtWrapNullable(literal)); break;
            }

            System.Collections.ArrayList v = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10));
            for (int i = 0; i < predicates.Length; i++)
            {
                v.Add(predicates[i]);
            }
            ExtUtil.write(out_Renamed, new ExtWrapListPoly(v));
        }
Beispiel #8
0
 //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
 public override void  writeExternal(System.IO.BinaryWriter out_Renamed)
 {
     ExtUtil.writeNumeric(out_Renamed, op);
     base.writeExternal(out_Renamed);
 }
Beispiel #9
0
 //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
 public virtual void  writeExternal(System.IO.BinaryWriter out_Renamed)
 {
     ExtUtil.writeNumeric(out_Renamed, n);
 }
Beispiel #10
0
 /* (non-Javadoc)
  * @see org.javarosa.core.services.storage.utilities.Externalizable#writeExternal(java.io.DataOutputStream)
  */
 //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
 public virtual void writeExternal(System.IO.BinaryWriter out_Renamed)
 {
     ExtUtil.writeString(out_Renamed, Value);
     ExtUtil.writeNumeric(out_Renamed, index);
 }
Beispiel #11
0
 //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
 public override void  writeExternal(System.IO.BinaryWriter out_Renamed)
 {
     base.writeExternal(out_Renamed);
     ExtUtil.writeNumeric(out_Renamed, trueAction);
     ExtUtil.writeNumeric(out_Renamed, falseAction);
 }