Class RawExtensionContent
java.lang.Object
com.independentsoft.office.spreadsheet.extensions.RawExtensionContent
- All Implemented Interfaces:
IExtensionContent
Extension content with no dedicated object model, preserved as a raw XML fragment.
The fragment is self-contained: it carries the namespace declarations it uses.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new raw extension content.Instantiates a new raw extension content.RawExtensionContent(String xml)Instantiates a new raw extension content. -
Method Summary
-
Constructor Details
-
RawExtensionContent
public RawExtensionContent()Instantiates a new raw extension content. -
RawExtensionContent
Instantiates a new raw extension content.- Parameters:
xml- a self-contained XML fragment
-
RawExtensionContent
Instantiates a new raw extension content.The capture produces a self-contained fragment (namespace declarations inlined) and leaves the reader ON the captured element's end element, so the caller's loop advances past it.
- Parameters:
reader- the reader- Throws:
XMLStreamException- the XML stream exception
-
-
Method Details
-
clone
Description copied from interface:IExtensionContentClone.- Specified by:
clonein interfaceIExtensionContent- Overrides:
clonein classObject- Returns:
- the extension content
-
toString
-
getXml
Gets the raw XML fragment.- Returns:
- the raw XML fragment
-
setXml
Sets the raw XML fragment.- Parameters:
xml- the new raw XML fragment
-