public void writeExternal(BinaryWriter out_renamed) { ExtUtil.writeBool(out_renamed, isLocalizable_); ExtUtil.writeString(out_renamed, ExtUtil.emptyIfNull(labelInnerText)); ExtUtil.writeString(out_renamed, ExtUtil.emptyIfNull(textID)); ExtUtil.writeString(out_renamed, ExtUtil.emptyIfNull(value)); //don't serialize index; it will be restored from questiondef }
public void writeExternal(BinaryWriter out_) { ExtUtil.write(out_, new ExtWrapTagged(ref_)); ExtUtil.writeString(out_, method); ExtUtil.writeString(out_, action); ExtUtil.writeString(out_, ExtUtil.emptyIfNull(mediaType)); ExtUtil.write(out_, new ExtWrapMap(attributeMap)); }
/* (non-Javadoc) * @see org.javarosa.core.util.externalizable.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) { out_Renamed.Write(payload.Length); if (payload.Length > 0) { out_Renamed.Write(payload); } ExtUtil.writeString(out_Renamed, ExtUtil.emptyIfNull(id)); }
public void writeExternal(BinaryWriter out_) { ExtUtil.writeNumeric(out_, axis); ExtUtil.writeNumeric(out_, test); switch (test) { case TEST_NAME: ExtUtil.write(out_, name); break; case TEST_NAMESPACE_WILDCARD: ExtUtil.writeString(out_, namespace_); break; case TEST_TYPE_PROCESSING_INSTRUCTION: ExtUtil.write(out_, new ExtWrapNullable(literal)); break; } ArrayList v = new ArrayList(); for (int i = 0; i < predicates.Length; i++) { v.Add(predicates[i]); } ExtUtil.write(out_, new ExtWrapListPoly(v)); }
/** Write the group definition object to the supplied stream. */ public void writeExternal(BinaryWriter dos) { ExtUtil.writeNumeric(dos, ID); ExtUtil.write(dos, new ExtWrapNullable(AppearanceAttr)); ExtUtil.write(dos, new ExtWrapTagged(Bind)); ExtUtil.write(dos, new ExtWrapNullable(TextID)); ExtUtil.write(dos, new ExtWrapNullable(LabelInnerText)); ExtUtil.writeBool(dos, Repeat); ExtUtil.write(dos, new ExtWrapListPoly(Children)); ExtUtil.writeBool(dos, noAddRemove); ExtUtil.write(dos, new ExtWrapNullable(count != null ? new ExtWrapTagged(count) : null)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(chooseCaption)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(addCaption)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(delCaption)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(doneCaption)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(addEmptyCaption)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(doneEmptyCaption)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(entryHeader)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(delHeader)); ExtUtil.writeString(dos, ExtUtil.emptyIfNull(mainHeader)); }
public void writeExternal(BinaryWriter out_) { ExtUtil.writeString(out_, s); }
public void writeExternal(BinaryWriter out_) { ExtUtil.write(out_, new ExtWrapTagged(constraint)); ExtUtil.writeString(out_, ExtUtil.emptyIfNull(constraintMsg)); }
public void writeExternal(BinaryWriter out_renamed) { ExtUtil.write(out_renamed, new ExtWrapNullable(namespace_)); ExtUtil.writeString(out_renamed, name); }
/* * (non-Javadoc) * * @see * org.javarosa.core.services.storage.utilities.Externalizable#writeExternal * (java.io.DataOutputStream) */ public void writeExternal(BinaryWriter out_renamed) { ExtUtil.writeString(out_renamed, ExtUtil.emptyIfNull(name)); ExtUtil.writeNumeric(out_renamed, multiplicity); ExtUtil.writeBool(out_renamed, repeatable); ExtUtil.write(out_renamed, new ExtWrapNullable(value == null ? null : new ExtWrapTagged(value))); // Jan 22, 2009 - [email protected] // old line: ExtUtil.write(out, new // ExtWrapList(ExtUtil.emptyIfNull(children))); // New Child serialization // 1. write null status as boolean // 2. write number of children // 3. for all child in children // 3.1 if child type == TreeElement write boolean true , then serialize // directly. // 3.2 if child type != TreeElement, write boolean false, then tagged // child if (children == null) { // 1. ExtUtil.writeBool(out_renamed, false); } else { // 1. ExtUtil.writeBool(out_renamed, true); // 2. ExtUtil.writeNumeric(out_renamed, children.Count); // 3. IEnumerator en = children.GetEnumerator(); while (en.MoveNext()) { TreeElement child = (TreeElement)en.Current; if (child.GetType() == typeof(TreeElement)) { // 3.1 ExtUtil.writeBool(out_renamed, true); child.writeExternal(out_renamed); } else { // 3.2 ExtUtil.writeBool(out_renamed, false); ExtUtil.write(out_renamed, new ExtWrapTagged(child)); } } } // end Jan 22, 2009 ExtUtil.writeNumeric(out_renamed, dataType); ExtUtil.writeBool(out_renamed, relevant); ExtUtil.writeBool(out_renamed, required); ExtUtil.writeBool(out_renamed, enabled); ExtUtil.writeBool(out_renamed, relevantInherited); ExtUtil.writeBool(out_renamed, enabledInherited); ExtUtil.write(out_renamed, new ExtWrapNullable(constraint)); // TODO: inefficient for repeats ExtUtil.writeString(out_renamed, ExtUtil.emptyIfNull(preloadHandler)); ExtUtil.writeString(out_renamed, ExtUtil.emptyIfNull(preloadParams)); ArrayList attStrings = getSingleStringAttributeVector(); ArrayList al = ExtUtil.emptyIfNull(attStrings); ExtUtil.write(out_renamed, new ExtWrapList(al)); }
/* (non-Javadoc) * @see org.javarosa.core.services.storage.utilities.Externalizable#writeExternal(java.io.DataOutputStream) */ public void writeExternal(BinaryWriter out_) { ExtUtil.writeString(out_, ExtUtil.emptyIfNull(nodeset)); ExtUtil.write(out_, ref_); }