public class PDStructureElement extends PDStructureNode
| Constructor and Description | 
|---|
| PDStructureElement(COSDictionary dic)Constructor for an existing structure element. | 
| PDStructureElement(String structureType,
                  PDStructureNode parent)Constructor with required values. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAttribute(PDAttributeObject attributeObject)Adds an attribute object. | 
| void | addClassName(String className)Adds a class name. | 
| void | appendKid(PDMarkedContent markedContent)Appends a marked-content sequence kid. | 
| void | appendKid(PDMarkedContentReference markedContentReference)Appends a marked-content reference kid. | 
| void | appendKid(PDObjectReference objectReference)Appends an object reference kid. | 
| void | attributeChanged(PDAttributeObject attributeObject)Updates the revision number for the given attribute object. | 
| String | getActualText()Returns the actual text (ActualText). | 
| String | getAlternateDescription()Returns the alternate description (Alt). | 
| Revisions<PDAttributeObject> | getAttributes()Returns the attributes together with their revision numbers (A). | 
| Revisions<String> | getClassNames()Returns the class names together with their revision numbers (C). | 
| String | getElementIdentifier()Returns the element identifier (ID). | 
| String | getExpandedForm()Returns the expanded form (E). | 
| String | getLanguage()Returns the language (Lang). | 
| PDPage | getPage()Returns the page on which some or all of the content items designated by
  the K entry shall be rendered (Pg). | 
| PDStructureNode | getParent()Returns the parent in the structure hierarchy (P). | 
| int | getRevisionNumber()Returns the revision number (R). | 
| String | getStandardStructureType()Returns the standard structure type, the actual structure type is mapped
 to in the role map. | 
| String | getStructureType()Returns the structure type (S). | 
| String | getTitle()Returns the title (T). | 
| void | incrementRevisionNumber()Increments th revision number. | 
| void | insertBefore(COSInteger markedContentIdentifier,
            Object refKid)Inserts a marked-content identifier kid before a reference kid. | 
| void | insertBefore(PDMarkedContentReference markedContentReference,
            Object refKid)Inserts a marked-content reference kid before a reference kid. | 
| void | insertBefore(PDObjectReference objectReference,
            Object refKid)Inserts an object reference kid before a reference kid. | 
| void | removeAttribute(PDAttributeObject attributeObject)Removes an attribute object. | 
| void | removeClassName(String className)Removes a class name. | 
| void | removeKid(COSInteger markedContentIdentifier)Removes a marked-content identifier kid. | 
| void | removeKid(PDMarkedContentReference markedContentReference)Removes a marked-content reference kid. | 
| void | removeKid(PDObjectReference objectReference)Removes an object reference kid. | 
| void | setActualText(String actualText)Sets the actual text (ActualText). | 
| void | setAlternateDescription(String alternateDescription)Sets the alternate description (Alt). | 
| void | setAttributes(Revisions<PDAttributeObject> attributes)Sets the attributes together with their revision numbers (A). | 
| void | setClassNames(Revisions<String> classNames)Sets the class names together with their revision numbers (C). | 
| void | setElementIdentifier(String id)Sets the element identifier (ID). | 
| void | setExpandedForm(String expandedForm)Sets the expanded form (E). | 
| void | setLanguage(String language)Sets the language (Lang). | 
| void | setPage(PDPage page)Sets the page on which some or all of the content items designated by
  the K entry shall be rendered (Pg). | 
| void | setParent(PDStructureNode structureNode)Sets the parent in the structure hierarchy (P). | 
| void | setRevisionNumber(int revisionNumber)Sets the revision number (R). | 
| void | setStructureType(String structureType)Sets the structure type (S). | 
| void | setTitle(String title)Sets the title (T). | 
appendKid, appendKid, appendObjectableKid, create, createObject, getCOSDictionary, getCOSObject, getKids, getType, insertBefore, insertBefore, insertObjectableBefore, removeKid, removeKid, removeObjectableKid, setKidspublic static final String TYPE
public PDStructureElement(String structureType, PDStructureNode parent)
structureType - the structure typeparent - the parent structure nodepublic PDStructureElement(COSDictionary dic)
dic - The existing dictionary.public String getStructureType()
public void setStructureType(String structureType)
structureType - the structure typepublic PDStructureNode getParent()
public void setParent(PDStructureNode structureNode)
structureNode - the parent in the structure hierarchypublic String getElementIdentifier()
public void setElementIdentifier(String id)
id - the element identifierpublic PDPage getPage()
public void setPage(PDPage page)
page - the page on which some or all of the content items designated
  by the K entry shall be rendered.public Revisions<PDAttributeObject> getAttributes()
public void setAttributes(Revisions<PDAttributeObject> attributes)
attributes - the attributespublic void addAttribute(PDAttributeObject attributeObject)
attributeObject - the attribute objectpublic void removeAttribute(PDAttributeObject attributeObject)
attributeObject - the attribute objectpublic void attributeChanged(PDAttributeObject attributeObject)
attributeObject - the attribute objectpublic Revisions<String> getClassNames()
public void setClassNames(Revisions<String> classNames)
classNames - the class namespublic void addClassName(String className)
className - the class namepublic void removeClassName(String className)
className - the class namepublic int getRevisionNumber()
public void setRevisionNumber(int revisionNumber)
revisionNumber - the revision numberpublic void incrementRevisionNumber()
public String getTitle()
public void setTitle(String title)
title - the titlepublic String getLanguage()
public void setLanguage(String language)
language - the languagepublic String getAlternateDescription()
public void setAlternateDescription(String alternateDescription)
alternateDescription - the alternate descriptionpublic String getExpandedForm()
public void setExpandedForm(String expandedForm)
expandedForm - the expanded formpublic String getActualText()
public void setActualText(String actualText)
actualText - the actual textpublic String getStandardStructureType()
public void appendKid(PDMarkedContent markedContent)
markedContent - the marked-content sequencepublic void appendKid(PDMarkedContentReference markedContentReference)
markedContentReference - the marked-content referencepublic void appendKid(PDObjectReference objectReference)
objectReference - the object referencepublic void insertBefore(COSInteger markedContentIdentifier, Object refKid)
markedContentIdentifier - the marked-content identifierrefKid - the reference kidpublic void insertBefore(PDMarkedContentReference markedContentReference, Object refKid)
markedContentReference - the marked-content referencerefKid - the reference kidpublic void insertBefore(PDObjectReference objectReference, Object refKid)
objectReference - the object referencerefKid - the reference kidpublic void removeKid(COSInteger markedContentIdentifier)
markedContentIdentifier - the marked-content identifierpublic void removeKid(PDMarkedContentReference markedContentReference)
markedContentReference - the marked-content referencepublic void removeKid(PDObjectReference objectReference)
objectReference - the object referenceCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.