use of org.javarosa.core.util.externalizable.ExtWrapTagged in project javarosa by opendatakit.
the class XPathConditional method writeExternal.
public void writeExternal(DataOutputStream out) throws IOException {
ExtUtil.write(out, new ExtWrapTagged(expr));
ExtUtil.writeBool(out, hasNow);
}
use of org.javarosa.core.util.externalizable.ExtWrapTagged in project javarosa by opendatakit.
the class XPathBinaryOpExpr method writeExternal.
public void writeExternal(DataOutputStream out) throws IOException {
ExtUtil.write(out, new ExtWrapTagged(a));
ExtUtil.write(out, new ExtWrapTagged(b));
}
use of org.javarosa.core.util.externalizable.ExtWrapTagged in project javarosa by opendatakit.
the class XPathFilterExpr method writeExternal.
public void writeExternal(DataOutputStream out) throws IOException {
List<XPathExpression> v = Arrays.asList(predicates);
ExtUtil.write(out, new ExtWrapTagged(x));
ExtUtil.write(out, new ExtWrapListPoly(v));
}
use of org.javarosa.core.util.externalizable.ExtWrapTagged in project javarosa by opendatakit.
the class XPathFilterExpr method readExternal.
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {
x = (XPathExpression) ExtUtil.read(in, new ExtWrapTagged(), pf);
List<Object> v = (List<Object>) ExtUtil.read(in, new ExtWrapListPoly(), pf);
predicates = new XPathExpression[v.size()];
for (int i = 0; i < predicates.length; i++) predicates[i] = (XPathExpression) v.get(i);
}
use of org.javarosa.core.util.externalizable.ExtWrapTagged in project javarosa by opendatakit.
the class FormDef method writeExternal.
/**
* Writes the form definition object to the supplied stream.
*
* @param dos - the stream to write to.
* @throws IOException
*/
@Override
public void writeExternal(DataOutputStream dos) throws IOException {
ExtUtil.writeNumeric(dos, getID());
ExtUtil.writeString(dos, ExtUtil.emptyIfNull(getName()));
ExtUtil.write(dos, new ExtWrapNullable(getTitle()));
ExtUtil.write(dos, new ExtWrapListPoly(getChildren()));
ExtUtil.write(dos, getMainInstance());
ExtUtil.write(dos, new ExtWrapNullable(localizer));
List<Condition> conditions = dagImpl.getConditions();
List<Recalculate> recalcs = dagImpl.getRecalculates();
ExtUtil.write(dos, new ExtWrapList(conditions));
ExtUtil.write(dos, new ExtWrapList(recalcs));
ExtUtil.write(dos, new ExtWrapListPoly(outputFragments));
ExtUtil.write(dos, new ExtWrapMap(submissionProfiles));
// for support of multi-instance forms
ExtUtil.write(dos, new ExtWrapMap(formInstances, new ExtWrapTagged()));
ExtUtil.write(dos, new ExtWrapMap(eventListeners, new ExtWrapListPoly()));
ExtUtil.write(dos, new ExtWrapListPoly(extensions));
}
Aggregations