/// <summary>Reads a group definition object from the supplied stream. </summary> //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader dis, PrototypeFactory pf) { ID = ExtUtil.readInt(dis); AppearanceAttr = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); Bind = (IDataReference)ExtUtil.read(dis, new ExtWrapTagged(), pf); TextID = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); LabelInnerText = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); Repeat = ExtUtil.readBool(dis); Children = (System.Collections.ArrayList)ExtUtil.read(dis, new ExtWrapListPoly(), pf); noAddRemove = ExtUtil.readBool(dis); count = (IDataReference)ExtUtil.read(dis, new ExtWrapNullable(new ExtWrapTagged()), pf); chooseCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); addCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); delCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); doneCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); addEmptyCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); doneEmptyCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); entryHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); delHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); mainHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis)); additionalAttributes = ExtUtil.readAttributes(dis, null); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { expr = (IConditionExpr) ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); contextRef = (TreeReference) ExtUtil.read(in_Renamed, typeof(TreeReference), pf); originalContextRef = (TreeReference) ExtUtil.read(in_Renamed, typeof(TreeReference), pf); targets =(List< TreeReference >) ExtUtil.read(in, new ExtWrapList(TreeReference. }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public override void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { target = (TreeReference)ExtUtil.read(in_Renamed, typeof(TreeReference), pf); explicitValue = ExtUtil.nullIfEmpty(ExtUtil.readString(in_Renamed)); if (explicitValue == null) { value_Renamed = (XPathExpression)ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); } }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { int length = in_Renamed.ReadInt32(); data = new IDataPointer[length]; for (int i = 0; i < data.Length; ++i) { data[i] = (IDataPointer)ExtUtil.read(in_Renamed, new ExtWrapTagged()); } }
/* (non-Javadoc) * @see org.javarosa.core.services.storage.utilities.Externalizable#readExternal(java.io.DataInputStream) */ //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { Id = ((System.String)ExtUtil.read(in_Renamed, new ExtWrapNullable(typeof(System.String)), pf)); DataType = ExtUtil.readInt(in_Renamed); Preload = ((System.String)ExtUtil.read(in_Renamed, new ExtWrapNullable(typeof(System.String)), pf)); PreloadParams = ((System.String)ExtUtil.read(in_Renamed, new ExtWrapNullable(typeof(System.String)), pf)); ref_Renamed = (IDataReference)ExtUtil.read(in_Renamed, new ExtWrapTagged()); //don't bother reading relevancy/required/readonly/constraint/calculate/additionalAttrs right now; they're only used during parse anyway }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public override void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { x = (XPathExpression)ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); System.Collections.ArrayList v = (System.Collections.ArrayList)ExtUtil.read(in_Renamed, new ExtWrapListPoly(), pf); predicates = new XPathExpression[v.Count]; for (int i = 0; i < predicates.Length; i++) { predicates[i] = (XPathExpression)v[i]; } }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { nodesetRef = (TreeReference)ExtUtil.read(in_Renamed, typeof(TreeReference), pf); nodesetExpr = (IConditionExpr)ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); contextRef = (TreeReference)ExtUtil.read(in_Renamed, typeof(TreeReference), pf); labelRef = (TreeReference)ExtUtil.read(in_Renamed, typeof(TreeReference), pf); labelExpr = (IConditionExpr)ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); valueRef = (TreeReference)ExtUtil.read(in_Renamed, new ExtWrapNullable(typeof(TreeReference)), pf); valueExpr = (IConditionExpr)ExtUtil.read(in_Renamed, new ExtWrapNullable(new ExtWrapTagged()), pf); copyRef = (TreeReference)ExtUtil.read(in_Renamed, new ExtWrapNullable(typeof(TreeReference)), pf); labelIsItext = ExtUtil.readBool(in_Renamed); copyMode = ExtUtil.readBool(in_Renamed); }
/// <summary> deserialize a compact instance. note the retrieval of the template data instance</summary> //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { int formID = ExtUtil.readInt(in_Renamed); instance = getTemplateInstance(formID).Clone(); instance.ID = ExtUtil.readInt(in_Renamed); instance.DateSaved = (System.DateTime)ExtUtil.read(in_Renamed, new ExtWrapNullable(typeof(System.DateTime))); //formID, name, schema, versions, and namespaces are all invariants of the template instance TreeElement root = instance.getRoot(); readTreeElement(root, in_Renamed, pf); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public override void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { init_context = ExtUtil.readInt(in_Renamed); if (init_context == INIT_CONTEXT_EXPR) { filtExpr = (XPathFilterExpr)ExtUtil.read(in_Renamed, typeof(XPathFilterExpr), pf); } System.Collections.ArrayList v = (System.Collections.ArrayList)ExtUtil.read(in_Renamed, new ExtWrapList(typeof(XPathStep)), pf); steps = new XPathStep[v.Count]; for (int i = 0; i < steps.Length; i++) { steps[i] = ((XPathStep)v[i]).intern(); } }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public override void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { sbyte flag = (sbyte)in_Renamed.ReadByte(); if (flag == 0x00) { val = null; } else { System.Type answerType = org.javarosa.core.model.instance.utils.CompactInstanceWrapper.classForDataType(dataType); if (answerType == null) { //custom data types val = ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); } else if (answerType == typeof(SelectOneData)) { val = Enclosing_Instance.getSelectOne(ExtUtil.read(in_Renamed, org.javarosa.core.model.instance.utils.CompactInstanceWrapper.CHOICE_MODE == org.javarosa.core.model.instance.utils.CompactInstanceWrapper.CHOICE_VALUE?typeof(System.String):typeof(System.Int32))); } else if (answerType == typeof(SelectMultiData)) { val = Enclosing_Instance.getSelectMulti((System.Collections.ArrayList)ExtUtil.read(in_Renamed, new ExtWrapList(org.javarosa.core.model.instance.utils.CompactInstanceWrapper.CHOICE_MODE == org.javarosa.core.model.instance.utils.CompactInstanceWrapper.CHOICE_VALUE?typeof(System.String):typeof(System.Int32)))); } else { switch (flag) { case (sbyte)(0x40): answerType = typeof(StringData); break; case (sbyte)(0x41): answerType = typeof(IntegerData); break; case (sbyte)(0x42): answerType = typeof(DecimalData); break; case (sbyte)(0x43): answerType = typeof(DateData); break; case (sbyte)(0x44): answerType = typeof(BooleanData); break; } val = (IAnswerData)ExtUtil.read(in_Renamed, answerType); } } }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { axis = ExtUtil.readInt(in_Renamed); test = ExtUtil.readInt(in_Renamed); switch (test) { case TEST_NAME: name = (XPathQName)ExtUtil.read(in_Renamed, typeof(XPathQName)); break; case TEST_NAMESPACE_WILDCARD: namespace_Renamed = ExtUtil.readString(in_Renamed); break; case TEST_TYPE_PROCESSING_INSTRUCTION: literal = ((System.String)ExtUtil.read(in_Renamed, new ExtWrapNullable(typeof(System.String)))); break; } System.Collections.ArrayList v = (System.Collections.ArrayList)ExtUtil.read(in_Renamed, new ExtWrapListPoly(), pf); predicates = new XPathExpression[v.Count]; for (int i = 0; i < predicates.Length; i++) { predicates[i] = (XPathExpression)v[i]; } }
/* * (non-Javadoc) * @see org.javarosa.core.util.Externalizable#readExternal(java.io.DataInputStream) */ //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader dis, PrototypeFactory pf) { ID = ExtUtil.readInt(dis); binding = (IDataReference)ExtUtil.read(dis, new ExtWrapNullable(new ExtWrapTagged()), pf); AppearanceAttr = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); TextID = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); LabelInnerText = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); HelpText = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); HelpTextID = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); HelpInnerText = ((System.String)ExtUtil.read(dis, new ExtWrapNullable(typeof(System.String)), pf)); ControlType = ExtUtil.readInt(dis); additionalAttributes = ExtUtil.readAttributes(dis, null); choices = ExtUtil.nullIfEmpty((System.Collections.ArrayList)ExtUtil.read(dis, new ExtWrapList(typeof(SelectChoice)), pf)); for (int i = 0; i < NumChoices; i++) { choices.elementAt(i).setIndex(i); } DynamicChoices = (ItemsetBinding)ExtUtil.read(dis, new ExtWrapNullable(typeof(ItemsetBinding))); }
/* (non-Javadoc) * @see org.javarosa.core.services.storage.utilities.Externalizable#readExternal(java.io.DataInputStream) */ //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { nodeset = ExtUtil.nullIfEmpty(ExtUtil.readString(in_Renamed)); ref_Renamed = (TreeReference)ExtUtil.read(in_Renamed, typeof(TreeReference), pf); }
/* (non-Javadoc) * @see org.javarosa.core.util.externalizable.Externalizable#readExternal(java.io.DataInputStream, org.javarosa.core.util.externalizable.PrototypeFactory) */ //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { e = (Externalizable)ExtUtil.read(in_Renamed, new ExtWrapTagged()); }
/* * (non-Javadoc) * @see org.javarosa.core.util.externalizable.Externalizable#readExternal(java.io.DataInputStream, org.javarosa.core.util.externalizable.PrototypeFactory) */ //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { payloads = (System.Collections.ArrayList)ExtUtil.read(in_Renamed, new ExtWrapListPoly(), pf); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { v = (System.Collections.ArrayList)ExtUtil.read(in_Renamed, new ExtWrapList(typeof(System.Int32))); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public override void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { a = (XPathExpression)ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); b = (XPathExpression)ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { namespace_Renamed = ((System.String)ExtUtil.read(in_Renamed, new ExtWrapNullable(typeof(System.String)))); name = ExtUtil.readString(in_Renamed); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { s = (Selection)ExtUtil.read(in_Renamed, typeof(Selection), pf); }
public static FormDef getFormFromSerializedResource(System.String resource) { FormDef returnForm = null; //UPGRADE_ISSUE: Method 'java.lang.Class.getResourceAsStream' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javalangClassgetResourceAsStream_javalangString'" //UPGRADE_ISSUE: Class 'java.lang.System' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javalangSystem'" System.IO.Stream is_Renamed = typeof(System_Renamed).getResourceAsStream(resource); //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" System.IO.BinaryReader dis = null; try { if (is_Renamed != null) { dis = new System.IO.BinaryReader(is_Renamed); returnForm = (FormDef)ExtUtil.read(dis, typeof(FormDef)); } else { //#if debug.output==verbose System.Console.Out.WriteLine("ResourceStream NULL"); //#endif } } catch (System.IO.IOException e) { if (e is org.javarosa.core.io.StreamsUtil.DirectionalIOException) { ((org.javarosa.core.io.StreamsUtil.DirectionalIOException)e).printStackTrace(); } else { SupportClass.WriteStackTrace(e, Console.Error); } } catch (DeserializationException e) { SupportClass.WriteStackTrace(e, Console.Error); } finally { if (is_Renamed != null) { try { is_Renamed.Close(); } catch (System.IO.IOException e) { if (e is org.javarosa.core.io.StreamsUtil.DirectionalIOException) { ((org.javarosa.core.io.StreamsUtil.DirectionalIOException)e).printStackTrace(); } else { SupportClass.WriteStackTrace(e, Console.Error); } } } if (dis != null) { try { //UPGRADE_TODO: Method 'java.io.FilterInputStream.close' was converted to 'System.IO.BinaryReader.Close' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioFilterInputStreamclose'" dis.Close(); } catch (System.IO.IOException e) { if (e is org.javarosa.core.io.StreamsUtil.DirectionalIOException) { ((org.javarosa.core.io.StreamsUtil.DirectionalIOException)e).printStackTrace(); } else { SupportClass.WriteStackTrace(e, Console.Error); } } } } return(returnForm); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public override void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { id = (XPathQName)ExtUtil.read(in_Renamed, typeof(XPathQName)); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { constraint = (IConditionExpr)ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); constraintMsg = ExtUtil.nullIfEmpty(ExtUtil.readString(in_Renamed)); attemptConstraintCompile(); }
//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { expr = (XPathExpression)ExtUtil.read(in_Renamed, new ExtWrapTagged(), pf); hasNow = (bool)ExtUtil.readBool(in_Renamed); }
/* * (non-Javadoc) * @see org.javarosa.core.util.externalizable.Externalizable#readExternal(java.io.DataInputStream, org.javarosa.core.util.externalizable.PrototypeFactory) */ //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public virtual void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { pointer = (IDataPointer)ExtUtil.read(in_Renamed, new ExtWrapTagged()); }
/// <summary> recursively read in a node of the instance, by filling out the template instance</summary> /// <param name="e"> /// </param> /// <param name="ref"> /// </param> /// <param name="in"> /// </param> /// <param name="pf"> /// </param> /// <throws> IOException </throws> /// <throws> DeserializationException </throws> //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" private void readTreeElement(TreeElement e, System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { TreeElement templ = instance.getTemplatePath(e.Ref); bool isGroup = !templ.Leaf; if (isGroup) { System.Collections.ArrayList childTypes = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10)); for (int i = 0; i < templ.NumChildren; i++) { System.String childName = templ.getChildAt(i).Name; if (!childTypes.Contains(childName)) { childTypes.Add(childName); } } for (int i = 0; i < childTypes.Count; i++) { System.String childName = (System.String)childTypes[i]; TreeReference childTemplRef = e.Ref.extendRef(childName, 0); TreeElement childTempl = instance.getTemplatePath(childTemplRef); bool repeatable = childTempl.Repeatable; int n = ExtUtil.readInt(in_Renamed); bool relevant = (n > 0); if (!repeatable && n > 1) { throw new DeserializationException("Detected repeated instances of a non-repeatable node"); } if (repeatable) { int mult = e.getChildMultiplicity(childName); for (int j = mult - 1; j >= 0; j--) { e.removeChild(childName, j); } for (int j = 0; j < n; j++) { TreeReference dstRef = e.Ref.extendRef(childName, j); try { instance.copyNode(childTempl, dstRef); } catch (InvalidReferenceException ire) { //If there is an invalid reference, this is a malformed instance, //so we'll throw a Deserialization exception. TreeReference r = ire.InvalidReference; if (r == null) { //UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Throwable.getMessage' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'" throw new DeserializationException("Null Reference while attempting to deserialize! " + ire.Message); } else { //UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Throwable.getMessage' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'" throw new DeserializationException("Invalid Reference while attemtping to deserialize! Reference: " + r.toString(true) + " | " + ire.Message); } } TreeElement child = e.getChild(childName, j); child.setRelevant(true); readTreeElement(child, in_Renamed, pf); } } else { TreeElement child = e.getChild(childName, 0); child.setRelevant(relevant); if (relevant) { readTreeElement(child, in_Renamed, pf); } } } } else { e.Value = (IAnswerData)ExtUtil.read(in_Renamed, new ExtWrapAnswerData(this, e.DataType)); } }