ListEntrypublic class ListEntry extends com.google.wireless.gdata.data.Entry Represents an entry in a GData Spreadsheets List feed. |
Fields Summary |
---|
private Hashtable | valuesMap containing the values in the row. | private Vector | namesCaches the list of names, so they don't need to be recomputed. |
Methods Summary |
---|
public java.util.Vector | getNames()Retrieves the column names present in this row.
if (names != null) {
return names;
}
names = new Vector();
Enumeration e = values.keys();
while (e.hasMoreElements()) {
names.add(e.nextElement());
}
return names;
| public java.lang.String | getValue(java.lang.String name)Fetches the value for a column. Equivalent to
getValue(name, null) .
return getValue(name, null);
| public java.lang.String | getValue(java.lang.String name, java.lang.String defaultValue)Fetches the value for a column.
if (StringUtils.isEmpty(name)) {
return defaultValue;
}
String val = (String) values.get(name);
if (val == null) {
return defaultValue;
}
return val;
| public void | setValue(java.lang.String name, java.lang.String value)Sets the value of a column.
values.put(name, value == null ? "" : value);
|
|