public class CustomXmlPart extends java.lang.Object implements ICustomXmlPart
Represents custom xml part.
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
getItemId()
Specifies a globally unique identifier (GUID) that uniquely identifies a single custom XML
part within an Office Open XML document.
|
java.lang.String[] |
getNamespaceSchemas()
Returns the collection XML schemas that are associated with the custom XML part.
|
java.lang.String |
getXmlAsString()
Returns or sets xml data as UTF-8 string.
|
byte[] |
getXmlData()
Returns or sets xml data.
|
void |
remove()
Removes the custom xml part from the presentation.
|
void |
setItemId(java.util.UUID value)
Specifies a globally unique identifier (GUID) that uniquely identifies a single custom XML
part within an Office Open XML document.
|
void |
setXmlAsString(java.lang.String value)
Returns or sets xml data as UTF-8 string.
|
void |
setXmlData(byte[] value)
Returns or sets xml data.
|
public final byte[] getXmlData()
Returns or sets xml data.
Read/write byte[]
.
getXmlData
in interface ICustomXmlPart
com.aspose.ms.System.ArgumentNullException
- value is null
.com.aspose.ms.System.ArgumentException
- value is empty or xml-data is invalid.public final void setXmlData(byte[] value)
Returns or sets xml data.
Read/write byte[]
.
setXmlData
in interface ICustomXmlPart
com.aspose.ms.System.ArgumentNullException
- value is null
.com.aspose.ms.System.ArgumentException
- value is empty or xml-data is invalid.public final java.lang.String getXmlAsString()
Returns or sets xml data as UTF-8 string.
Read/write String
.
getXmlAsString
in interface ICustomXmlPart
com.aspose.ms.System.ArgumentNullException
- value is null
.com.aspose.ms.System.ArgumentException
- value is empty or xml-data is invalid.public final void setXmlAsString(java.lang.String value)
Returns or sets xml data as UTF-8 string.
Read/write String
.
setXmlAsString
in interface ICustomXmlPart
com.aspose.ms.System.ArgumentNullException
- value is null
.com.aspose.ms.System.ArgumentException
- value is empty or xml-data is invalid.public final java.util.UUID getItemId()
Specifies a globally unique identifier (GUID) that uniquely identifies a single custom XML
part within an Office Open XML document.
Read-only UUID
.
getItemId
in interface ICustomXmlPart
public final void setItemId(java.util.UUID value)
Specifies a globally unique identifier (GUID) that uniquely identifies a single custom XML
part within an Office Open XML document.
Read-only UUID
.
setItemId
in interface ICustomXmlPart
public final java.lang.String[] getNamespaceSchemas()
Returns the collection XML schemas that are associated with the custom XML part.
Read-only String[]
.
getNamespaceSchemas
in interface ICustomXmlPart
public final void remove()
Removes the custom xml part from the presentation.
remove
in interface ICustomXmlPart
PptxEditException
- Thrown if xml part is already removed.