private DataForm.ReportedData parseReported(XmlPullParser parser) throws Exception { boolean done = false; List fields = new ArrayList(); while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parser.getName().equals("field")) { fields.add(parseField(parser)); } } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("reported")) { done = true; } } } return new DataForm.ReportedData(fields); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<reported>"); // Loop through all the form items and append them to the string buffer for (Iterator<FormField> i = getFields(); i.hasNext();) { FormField field = i.next(); buf.append(field.toXML()); } buf.append("</reported>"); return buf.toString(); } }
for (Iterator fields = dataForm.getReportedData().getFields(); fields.hasNext();) { FormField field = (FormField)fields.next(); columns.add(new Column(field.getLabel(), field.getVariable(), field.getType()));
for (Iterator fields = dataForm.getReportedData().getFields(); fields.hasNext();) { FormField field = (FormField)fields.next(); columns.add(new Column(field.getLabel(), field.getVariable(), field.getType()));
for (Iterator fields = dataForm.getReportedData().getFields(); fields.hasNext();) { FormField field = (FormField)fields.next(); columns.add(new Column(field.getLabel(), field.getVariable(), field.getType()));
for (Iterator fields = dataForm.getReportedData().getFields(); fields.hasNext();) { FormField field = (FormField)fields.next(); columns.add(new Column(field.getLabel(), field.getVariable(), field.getType()));
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( "\" type=\"" + getType() +"\">"); if (getTitle() != null) { buf.append("<title>").append(getTitle()).append("</title>"); } for (Iterator it=getInstructions(); it.hasNext();) { buf.append("<instructions>").append(it.next()).append("</instructions>"); } // Append the list of fields returned from a search if (getReportedData() != null) { buf.append(getReportedData().toXML()); } // Loop through all the items returned from a search and append them to the string buffer for (Iterator i = getItems(); i.hasNext();) { Item item = (Item) i.next(); buf.append(item.toXML()); } // Loop through all the form fields and append them to the string buffer for (Iterator i = getFields(); i.hasNext();) { FormField field = (FormField) i.next(); buf.append(field.toXML()); } buf.append("</").append(getElementName()).append(">"); return buf.toString(); }
public String toXML() { StringBuffer buf = new StringBuffer(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( "\" type=\"" + getType() +"\">"); if (getTitle() != null) { buf.append("<title>").append(getTitle()).append("</title>"); } for (Iterator it=getInstructions(); it.hasNext();) { buf.append("<instructions>").append(it.next()).append("</instructions>"); } // Append the list of fields returned from a search if (getReportedData() != null) { buf.append(getReportedData().toXML()); } // Loop through all the items returned from a search and append them to the string buffer for (Iterator i = getItems(); i.hasNext();) { Item item = (Item) i.next(); buf.append(item.toXML()); } // Loop through all the form fields and append them to the string buffer for (Iterator i = getFields(); i.hasNext();) { FormField field = (FormField) i.next(); buf.append(field.toXML()); } buf.append("</").append(getElementName()).append(">"); return buf.toString(); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( "\" type=\"" + getType() +"\">"); if (getTitle() != null) { buf.append("<title>").append(getTitle()).append("</title>"); } for (Iterator it=getInstructions(); it.hasNext();) { buf.append("<instructions>").append(it.next()).append("</instructions>"); } // Append the list of fields returned from a search if (getReportedData() != null) { buf.append(getReportedData().toXML()); } // Loop through all the items returned from a search and append them to the string buffer for (Iterator i = getItems(); i.hasNext();) { Item item = (Item) i.next(); buf.append(item.toXML()); } // Loop through all the form fields and append them to the string buffer for (Iterator i = getFields(); i.hasNext();) { FormField field = (FormField) i.next(); buf.append(field.toXML()); } buf.append("</").append(getElementName()).append(">"); return buf.toString(); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( "\" type=\"" + getType() +"\">"); if (getTitle() != null) { buf.append("<title>").append(getTitle()).append("</title>"); } for (Iterator<String> it=getInstructions(); it.hasNext();) { buf.append("<instructions>").append(it.next()).append("</instructions>"); } // Append the list of fields returned from a search if (getReportedData() != null) { buf.append(getReportedData().toXML()); } // Loop through all the items returned from a search and append them to the string buffer for (Iterator<Item> i = getItems(); i.hasNext();) { Item item = i.next(); buf.append(item.toXML()); } // Loop through all the form fields and append them to the string buffer for (Iterator<FormField> i = getFields(); i.hasNext();) { FormField field = i.next(); buf.append(field.toXML()); } buf.append("</").append(getElementName()).append(">"); return buf.toString(); }
private DataForm.ReportedData parseReported(XmlPullParser parser) throws Exception { boolean done = false; List<FormField> fields = new ArrayList<FormField>(); while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parser.getName().equals("field")) { fields.add(parseField(parser)); } } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("reported")) { done = true; } } } return new DataForm.ReportedData(fields); }
private DataForm.ReportedData parseReported(XmlPullParser parser) throws Exception { boolean done = false; List fields = new ArrayList(); while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parser.getName().equals("field")) { fields.add(parseField(parser)); } } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("reported")) { done = true; } } } return new DataForm.ReportedData(fields); }
private DataForm.ReportedData parseReported(XmlPullParser parser) throws Exception { boolean done = false; List fields = new ArrayList(); while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parser.getName().equals("field")) { fields.add(parseField(parser)); } } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("reported")) { done = true; } } } return new DataForm.ReportedData(fields); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<reported>"); // Loop through all the form items and append them to the string buffer for (Iterator i = getFields(); i.hasNext();) { FormField field = (FormField) i.next(); buf.append(field.toXML()); } buf.append("</reported>"); return buf.toString(); } }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<reported>"); // Loop through all the form items and append them to the string buffer for (Iterator i = getFields(); i.hasNext();) { FormField field = (FormField) i.next(); buf.append(field.toXML()); } buf.append("</reported>"); return buf.toString(); } }
public String toXML() { StringBuffer buf = new StringBuffer(); buf.append("<reported>"); // Loop through all the form items and append them to the string buffer for (Iterator i = getFields(); i.hasNext();) { FormField field = (FormField) i.next(); buf.append(field.toXML()); } buf.append("</reported>"); return buf.toString(); } }