Element
Inheritance: java.lang.Object
public abstract class Element
Represents a base class for element in logical structure.
Methods
Method | Description |
---|---|
getTrailer() | Internam method |
getTaggedContent() | |
getElementEngine() | Get parent element. |
getParentElement() | Gets parent collection of Element objects. |
getChildElements() | Gets children collection of Element objects. |
Find Elements of a given type | |
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:
Parameter | Type | Description |
---|---|---|
typeOfTboolean | java.lang.Class | class instance |
Returns:
java.util.List
findElements(Class typeOfT, boolean recursiveSearch)
public List<T> <T>findElements(Class<T> typeOfT, boolean recursiveSearch)
Find Elements of a given type
Parameters:
Parameter | Type | Description |
---|---|---|
typeOfT | java.lang.Class | class instance |
recursiveSearch | boolean | (Optional) Recursive Search (default false, search only from direct children) |
Returns:
java.util.List
setParentElement(Element parentElement)
public void setParentElement(Element parentElement)
Parameters:
Parameter | Type | Description |
---|---|---|
parentElement | Element |
appendChild(Element element)
public final Element appendChild(Element element)
Append /Aspose.Pdf.LogicalStructure.Element to collection of children.
Parameters:
Parameter | Type | Description |
---|---|---|
element | Element | /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.