com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class CustomXmlPart

  • java.lang.Object
    • com.aspose.slides.CustomXmlPart
  • All Implemented Interfaces:
    ICustomXmlPart


    public class CustomXmlPart
    extends java.lang.Object
    implements ICustomXmlPart

    Represents custom xml part.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getXmlData

        public final byte[] getXmlData()

        Returns or sets xml data. Read/write byte[].

        Specified by:
        getXmlData in interface ICustomXmlPart
        Throws:
        com.aspose.ms.System.ArgumentNullException - value is null.
        com.aspose.ms.System.ArgumentException - value is empty or xml-data is invalid.
      • setXmlData

        public final void setXmlData(byte[] value)

        Returns or sets xml data. Read/write byte[].

        Specified by:
        setXmlData in interface ICustomXmlPart
        Throws:
        com.aspose.ms.System.ArgumentNullException - value is null.
        com.aspose.ms.System.ArgumentException - value is empty or xml-data is invalid.
      • getXmlAsString

        public final java.lang.String getXmlAsString()

        Returns or sets xml data as UTF-8 string. Read/write String.

        Specified by:
        getXmlAsString in interface ICustomXmlPart
        Throws:
        com.aspose.ms.System.ArgumentNullException - value is null.
        com.aspose.ms.System.ArgumentException - value is empty or xml-data is invalid.
      • setXmlAsString

        public final void setXmlAsString(java.lang.String value)

        Returns or sets xml data as UTF-8 string. Read/write String.

        Specified by:
        setXmlAsString in interface ICustomXmlPart
        Throws:
        com.aspose.ms.System.ArgumentNullException - value is null.
        com.aspose.ms.System.ArgumentException - value is empty or xml-data is invalid.
      • getItemId

        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.

        Specified by:
        getItemId in interface ICustomXmlPart
      • setItemId

        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.

        Specified by:
        setItemId in interface ICustomXmlPart
      • getNamespaceSchemas

        public final java.lang.String[] getNamespaceSchemas()

        Returns the collection XML schemas that are associated with the custom XML part. Read-only String[].

        Specified by:
        getNamespaceSchemas in interface ICustomXmlPart
      • remove

        public final void remove()

        Removes the custom xml part from the presentation.

        Specified by:
        remove in interface ICustomXmlPart
        Throws:
        PptxEditException - Thrown if xml part is already removed.