private DataForm.Item parseItem(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("item")) { done = true; } } } return new DataForm.Item(fields); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<item>"); // 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("</item>"); return buf.toString(); } }
List<Field> fieldList = new ArrayList<Field>(columns.size()); FormField field; for (Iterator fields = item.getFields(); fields.hasNext();) { field = (FormField) fields.next();
List fieldList = new ArrayList(columns.size()); FormField field; for (Iterator fields = item.getFields(); fields.hasNext();) { field = (FormField) fields.next();
List<Field> fieldList = new ArrayList<Field>(columns.size()); FormField field; for (Iterator fields = item.getFields(); fields.hasNext();) { field = (FormField) fields.next();
List<Field> fieldList = new ArrayList<Field>(columns.size()); FormField field; for (Iterator fields = item.getFields(); fields.hasNext();) { field = (FormField) fields.next();
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.Item parseItem(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("item")) { done = true; } } } return new DataForm.Item(fields); }
private DataForm.Item parseItem(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("item")) { done = true; } } } return new DataForm.Item(fields); }
private DataForm.Item parseItem(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("item")) { done = true; } } } return new DataForm.Item(fields); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<item>"); // 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("</item>"); return buf.toString(); } }
public String toXML() { StringBuffer buf = new StringBuffer(); buf.append("<item>"); // 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("</item>"); return buf.toString(); } }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<item>"); // 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("</item>"); return buf.toString(); } }