public class CustomElementCollection extends java.lang.Object implements Extension
| Constructor and Description |
|---|
CustomElementCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearValueLocal(java.lang.String columnHeader)
Locally clears the particular value.
|
void |
generate(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.
|
public java.lang.String getValue(java.lang.String columnHeader)
columnHeader - the lowercase, stripped version of the column headerpublic 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 '=' signjava.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(XmlWriter w, ExtensionProfile extProfile) throws 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 attributesParseException - when an unexpected tag or badly-formatted
XML is detectedjava.io.IOException