Documentation of 'org.apache.poi.POIXMLDocumentPart' Java class
POIXMLDocumentPart
org.apache.poi

Class POIXMLDocumentPart

    • Field Detail

      • DEFAULT_XML_OPTIONS

        public static final org.apache.xmlbeans.XmlOptions DEFAULT_XML_OPTIONS
    • Method Detail

      • getPackagePart

        public final PackagePart getPackagePart()
        Provides access to the underlying PackagePart
        Returns:
        the underlying PackagePart
      • getPackageRelationship

        public final PackageRelationship getPackageRelationship()
        Provides access to the PackageRelationship that identifies this POIXMLDocumentPart
        Returns:
        the PackageRelationship that identifies this POIXMLDocumentPart
      • getRelations

        public final java.util.List<POIXMLDocumentPart> getRelations()
        Returns the list of child relations for this POIXMLDocumentPart
        Returns:
        child relations
      • addRelation

        public final void addRelation(java.lang.String id,
                                      POIXMLDocumentPart part)
        Add a new child POIXMLDocumentPart
        Parameters:
        part - the child to add
      • getParent

        public final POIXMLDocumentPart getParent()
        Returns the parent POIXMLDocumentPart. All parts except root have not-null parent.
        Returns:
        the parent POIXMLDocumentPart or null for the root element.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • createRelationship

        public final POIXMLDocumentPart createRelationship(POIXMLRelation descriptor,
                                                           POIXMLFactory factory)
        Create a new child POIXMLDocumentPart
        Parameters:
        descriptor - the part descriptor
        factory - the factory that will create an instance of the requested relation
        Returns:
        the created child POIXMLDocumentPart
        Throws:
        PartAlreadyExistsException - If rule M1.12 is not verified : Packages shall not contain equivalent part names and package implementers shall neither create nor recognize packages with equivalent part names.
      • createRelationship

        public final POIXMLDocumentPart createRelationship(POIXMLRelation descriptor,
                                                           POIXMLFactory factory,
                                                           int idx)
        Create a new child POIXMLDocumentPart
        Parameters:
        descriptor - the part descriptor
        factory - the factory that will create an instance of the requested relation
        idx - part number
        Returns:
        the created child POIXMLDocumentPart
        Throws:
        PartAlreadyExistsException - If rule M1.12 is not verified : Packages shall not contain equivalent part names and package implementers shall neither create nor recognize packages with equivalent part names.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.