|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.spreadsheet.CustomElementCollection
public class CustomElementCollection
Extension that globs together all "gsx:" tags into one. Designed for row-based access to spreadsheets. extra tags. Another option is overriding ListEntry's getExtensionHandler method. Finally, this might be embedded as a private class inside of ListEntry.
| Constructor Summary | |
|---|---|
CustomElementCollection()
|
|
| Method Summary | |
|---|---|
void |
clearValueLocal(java.lang.String columnHeader)
Locally clears the particular value. |
void |
generate(com.google.gdata.util.common.xml.XmlWriter w,
ExtensionProfile extProfile)
Writes this cell as XML, omitting any unspecified fields. |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description. |
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Yields an XML handler for parsing a Cell element. |
java.util.Set<java.lang.String> |
getTags()
Gets a list of all tags that are set for this entry. |
java.lang.String |
getValue(java.lang.String columnHeader)
Gets the text at the cell, whose column is named columnHeader. |
void |
replaceWithLocal(CustomElementCollection other)
Locally clears all existing values and copies the contents of the other element collection over. |
void |
setValueLocal(java.lang.String columnHeader,
java.lang.String newContents)
Locally sets the value at the particular cell, specified by the column name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomElementCollection()
| Method Detail |
|---|
public java.lang.String getValue(java.lang.String columnHeader)
columnHeader - the lowercase, stripped version of the column header
public void setValueLocal(java.lang.String columnHeader,
java.lang.String newContents)
columnHeader - the header column (must already exist)newContents - the new contents; may not start with an '=' sign
java.lang.IllegalArgumentException - if the contents begins with an equals
sign
if a non-existent columnHeader is used. But, when adding a new
entry, there needs to be a way to locally know the schema.public void clearValueLocal(java.lang.String columnHeader)
columnHeader - the column header to clear.public void replaceWithLocal(CustomElementCollection other)
other - the custom element collectionpublic java.util.Set<java.lang.String> getTags()
public static ExtensionDescription getDefaultDescription()
public void generate(com.google.gdata.util.common.xml.XmlWriter w,
ExtensionProfile extProfile)
throws java.io.IOException
generate in interface Extensionw - XML writerextProfile - extension profile
java.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws ParseException,
java.io.IOException
getHandler in interface ExtensionextProfile - extension profilenamespace - extension namespacelocalName - tag name, without the namespace prefixattrs - tag attributes
ParseException - when an unexpected tag or badly-formatted
XML is detected
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||