public class CustomElementCollection extends Object implements Extension
| Constructor and Description |
|---|
CustomElementCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearValueLocal(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,
String namespace,
String localName,
Attributes attrs)
Yields an XML handler for parsing a Cell element.
|
Set<String> |
getTags()
Gets a list of all tags that are set for this entry.
|
String |
getValue(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(String columnHeader,
String newContents)
Locally sets the value at the particular cell, specified by the
column name.
|
public String getValue(String columnHeader)
columnHeader - the lowercase, stripped version of the column headerpublic void setValueLocal(String columnHeader, String newContents)
columnHeader - the header column (must already exist)newContents - the new contents; may not start with an '=' signIllegalArgumentException - 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(String columnHeader)
columnHeader - the column header to clear.public void replaceWithLocal(CustomElementCollection other)
other - the custom element collectionpublic Set<String> getTags()
public static ExtensionDescription getDefaultDescription()
public void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException
generate in interface Extensionw - XML writerextProfile - extension profileIOExceptionpublic XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs) throws ParseException, 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 detectedIOExceptionCopyright © 2012. All Rights Reserved.