use of org.javarosa.core.model.instance.TreeElement in project javarosa by opendatakit.
the class ExtUtil method readAttributes.
public static List<TreeElement> readAttributes(DataInputStream in, TreeElement parent) throws IOException {
int size = (int) ExtUtil.readNumeric(in);
List<TreeElement> attributes = new ArrayList<TreeElement>(size);
for (int i = 0; i < size; ++i) {
String namespace = ExtUtil.readString(in);
String name = ExtUtil.readString(in);
String value = ExtUtil.readString(in);
TreeElement attr = TreeElement.constructAttributeElement(namespace, name, value);
attr.setParent(parent);
attributes.add(attr);
}
return attributes;
}
Aggregations