Element

Inheritance: java.lang.Object

public abstract class Element

Represents a base class for element in logical structure.

Methods

MethodDescription
getTrailer()Internam method
getTaggedContent()
getElementEngine()Get parent element.
getParentElement()Gets parent collection of Element objects.
getChildElements()Gets children collection of Element objects.
findElements(Class typeOfTboolean)Find Elements of a given type
findElements(Class typeOfT, boolean recursiveSearch)Find Elements of a given type
setParentElement(Element parentElement)
appendChild(Element element)Append /Aspose.Pdf.LogicalStructure.Element to collection of children.
toString()Returns a string that represents the current object.

getTrailer()

public final ITrailerable getTrailer()

Internam method

Returns: ITrailerable - Internal element

getTaggedContent()

public final ITaggedContent getTaggedContent()

Returns: ITaggedContent

getElementEngine()

public final ElementPdfEngine getElementEngine()

Get parent element.

Returns: ElementPdfEngine - Value: Parent element.

getParentElement()

public final Element getParentElement()

Gets parent collection of Element objects.

Returns: Element - Value: Parent collection of Element objects.

getChildElements()

public final ElementList getChildElements()

Gets children collection of Element objects.

Returns: ElementList - Value: Children collection of Element objects.

findElements(Class typeOfTboolean)

public List<T> <T>findElements(Class<T> typeOfTboolean)

Find Elements of a given type

Parameters:

ParameterTypeDescription
typeOfTbooleanjava.lang.Classclass instance

Returns: java.util.List - List of found Elements

findElements(Class typeOfT, boolean recursiveSearch)

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

Find Elements of a given type

Parameters:

ParameterTypeDescription
typeOfTjava.lang.Classclass instance
recursiveSearchboolean(Optional) Recursive Search (default false, search only from direct children)

Returns: java.util.List - List of found Elements

setParentElement(Element parentElement)

public void setParentElement(Element parentElement)

Parameters:

ParameterTypeDescription
parentElementElement

appendChild(Element element)

public final Element appendChild(Element element)

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

Parameters:

ParameterTypeDescription
elementElement/Aspose.Pdf.LogicalStructure.Element object to add.

Returns: Element - /Aspose.Pdf.LogicalStructure.Element which has been added.

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - String that represents the current object.