Class PDAppearanceEntry
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceEntry
-
- All Implemented Interfaces:
COSObjectable
public class PDAppearanceEntry extends java.lang.Object implements COSObjectable
An entry in an appearance dictionary. May contain either a single appearance stream or an appearance subdictionary.
-
-
Field Summary
Fields Modifier and Type Field Description private COSDictionaryentry
-
Constructor Summary
Constructors Modifier Constructor Description privatePDAppearanceEntry()PDAppearanceEntry(COSDictionary entry)Constructor for reading.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDAppearanceStreamgetAppearanceStream()Returns the entry as an appearance stream.COSDictionarygetCOSObject()Convert this standard java object to a COS object.java.util.Map<COSName,PDAppearanceStream>getSubDictionary()Returns the entry as an appearance subdictionary.booleanisStream()Returns true if this entry is an appearance stream.booleanisSubDictionary()Returns true if this entry is an appearance subdictionary.
-
-
-
Field Detail
-
entry
private COSDictionary entry
-
-
Constructor Detail
-
PDAppearanceEntry
private PDAppearanceEntry()
-
PDAppearanceEntry
public PDAppearanceEntry(COSDictionary entry)
Constructor for reading.- Parameters:
entry- the dictionary of the appearance entry
-
-
Method Detail
-
getCOSObject
public COSDictionary getCOSObject()
Description copied from interface:COSObjectableConvert this standard java object to a COS object.- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The cos object that matches this Java object.
-
isSubDictionary
public boolean isSubDictionary()
Returns true if this entry is an appearance subdictionary.- Returns:
- true if this entry is an appearance subdictionary
-
isStream
public boolean isStream()
Returns true if this entry is an appearance stream.- Returns:
- true if this entry is an appearance stream
-
getAppearanceStream
public PDAppearanceStream getAppearanceStream()
Returns the entry as an appearance stream.- Returns:
- the entry as an appearance stream
- Throws:
java.lang.IllegalStateException- if this entry is not an appearance stream
-
getSubDictionary
public java.util.Map<COSName,PDAppearanceStream> getSubDictionary()
Returns the entry as an appearance subdictionary.- Returns:
- the entry as an appearance subdictionary
- Throws:
java.lang.IllegalStateException- if this entry is not an appearance subdictionary
-
-