Class ExtensionContentFactory
java.lang.Object
com.independentsoft.office.spreadsheet.extensions.ExtensionContentFactory
Maps the namespace and local name of an extension's child element to a typed model
parser. Elements with no registration are preserved as
RawExtensionContent.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ExtensionContentFactorystatic ExtensionContentFactorystatic ExtensionContentFactorystatic ExtensionContentFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(InternalXMLStreamReader reader)Parses the element the reader is positioned on into a typed model when one is registered, otherwise into aRawExtensionContent.
-
Field Details
-
WORKBOOK
-
WORKSHEET
-
STYLE_SHEET
-
CELL
-
-
Method Details
-
create
Parses the element the reader is positioned on into a typed model when one is registered, otherwise into aRawExtensionContent. In both cases the reader is left ON the element's end element, per codebase convention, so the caller's loop advances past it.- Parameters:
reader- the reader, positioned on the child start element- Returns:
- the extension content
- Throws:
XMLStreamException- the XML stream exception
-