Class Extension
java.lang.Object
com.independentsoft.office.drawing.Extension
Represents a single extension element (
a:ext / c:ext)
inside an ExtensionList: a uri that identifies the
extension and its content. Known content elements parse into typed
IExtensionContent classes; anything unrecognized is preserved through
RawExtensionContent.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new extension.Extension(InternalXMLStreamReader reader)Instantiates a new extension.Instantiates a new extension. -
Method Summary
-
Constructor Details
-
Extension
public Extension()Instantiates a new extension. -
Extension
Instantiates a new extension.- Parameters:
uri- the extension identifier
-
Extension
Instantiates a new extension.- Parameters:
reader- the reader- Throws:
XMLStreamException- the XML stream exception
-
-
Method Details
-
clone
-
toXml
To xml.- Parameters:
qualifiedName- the qualified element name to emit- Returns:
- the string
-
toString
-
getUri
Gets the extension identifier (theuriattribute).- Returns:
- the uri
-
setUri
Sets the extension identifier (theuriattribute).- Parameters:
uri- the new uri
-
getContent
Gets the content of this extension. Known extensions are typed (for exampleDataModelExtension); unrecognized content is aRawExtensionContent.- Returns:
- the content
-