com.aspose.pdf.tagged.logicalstructure.elements

Class Element

    • Method Detail

      • getTrailer

        public final com.aspose.pdf.engine.data.ITrailerable getTrailer()
        Internam method
        Returns:
        Internal element
      • getElementEngine

        public final ElementPdfEngine getElementEngine()

        Get parent element.

        Returns:
        Value: Parent element.
      • getParentElement

        public final Element getParentElement()

        Gets parent collection of Element objects.

        Returns:
        Value: Parent collection of Element objects.
      • getChildElements

        public final ElementList getChildElements()

        Gets children collection of Element objects.

        Returns:
        Value: Children collection of Element objects.
      • findElements

        public <T extends ElementList<T> findElements(Class<T> typeOfTboolean)

        Find Elements of a given type

        Type Parameters:
        T - Type of Structure Element for search

        T: Type of Structure Element for search

        Parameters:
        typeOfTboolean - class instance
        Returns:
        List of found Elements
      • findElements

        public <T extends ElementList<T> findElements(Class<T> typeOfT,
                                                        boolean recursiveSearch)

        Find Elements of a given type

        Type Parameters:
        T - Type of Structure Element for search

        T: Type of Structure Element for search

        T: Type of Structure Element for search

        Parameters:
        typeOfT - class instance
        recursiveSearch - (Optional) Recursive Search (default false, search only from direct children)
        Returns:
        List of found Elements
      • setParentElement

        public void setParentElement(Element parentElement)
      • appendChild

        public final Element appendChild(Element element)

        Append /Aspose.Pdf.LogicalStructure.Element to collection of children.

        Parameters:
        element - /Aspose.Pdf.LogicalStructure.Element object to add.
        Returns:
        /Aspose.Pdf.LogicalStructure.Element which has been added.
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        String that represents the current object.