public abstract class Element extends Object
Class representing base element of logical structure.
Modifier and Type | Method and Description |
---|---|
String |
getActualText()
(Optional; PDF 1.4) Text that is an exact replacement for the structure element and its
children.
|
String |
getAlt()
(Optional) An alternate description of the structure element and its children in
human-readableform, which is useful when extracting the document’s contents in support of
accessibility to users with disabilities or for other purposes.
|
List<Element> |
getChildren()
Gets child elements collection.
|
String |
getE()
(Optional; PDF 1.5) The expanded form of an abbreviation.
|
String |
getLang()
(Optional; PDF 1.4) A language specifying the natural language for all text in the structure
element except where overridden by language specifications for nested structure elements or
marked content.
|
void |
setActualText(String value)
(Optional; PDF 1.4) Text that is an exact replacement for the structure element and its
children.
|
void |
setAlt(String value)
(Optional) An alternate description of the structure element and its children in
human-readableform, which is useful when extracting the document’s contents in support of
accessibility to users with disabilities or for other purposes.
|
void |
setE(String value)
(Optional; PDF 1.5) The expanded form of an abbreviation.
|
void |
setLang(String value)
(Optional; PDF 1.4) A language specifying the natural language for all text in the structure
element except where overridden by language specifications for nested structure elements or
marked content.
|
public List<Element> getChildren()
Gets child elements collection.
java.util.List<Element>
objectpublic String getLang()
(Optional; PDF 1.4) A language specifying the natural language for all text in the structure element except where overridden by language specifications for nested structure elements or marked content.
public void setLang(String value)
(Optional; PDF 1.4) A language specifying the natural language for all text in the structure element except where overridden by language specifications for nested structure elements or marked content.
value
- String objectpublic String getActualText()
(Optional; PDF 1.4) Text that is an exact replacement for the structure element and its children. This replacement text (which should apply to as small a piece of content as possible) is useful when extracting the document’s contents in support of accessibility to users with disabilities or for other purposes.
public void setActualText(String value)
(Optional; PDF 1.4) Text that is an exact replacement for the structure element and its children. This replacement text (which should apply to as small a piece of content as possible) is useful when extracting the document’s contents in support of accessibility to users with disabilities or for other purposes.
value
- String objectpublic String getAlt()
(Optional) An alternate description of the structure element and its children in human-readableform, which is useful when extracting the document’s contents in support of accessibility to users with disabilities or for other purposes.
public void setAlt(String value)
(Optional) An alternate description of the structure element and its children in human-readableform, which is useful when extracting the document’s contents in support of accessibility to users with disabilities or for other purposes.
value
- String objectpublic String getE()
(Optional; PDF 1.5) The expanded form of an abbreviation.
public void setE(String value)
(Optional; PDF 1.5) The expanded form of an abbreviation.
value
- String object