Class PdfObjectTree
java.lang.Object
eu.europa.esig.dss.pdf.modifications.PdfObjectTree
Represents a PDF object chain from a root to the current object
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor without starting keyPdfObjectTree(String key) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a keyvoidaddReference(Number objectNumber) Adds a numeric reference numbercopy()Creates a copy of the object (changes within a copy will not affect the original object)booleanintReturns the deepness of the current objects chainGets a complete key chainReturns a last keyinthashCode()booleanisProcessedReference(Number objectNumber) Checks whether a reference to the given object by number has been already processed in this treevoidThis method allows to specify that a stream have been processedtoString()
-
Constructor Details
-
PdfObjectTree
public PdfObjectTree()Constructor without starting key -
PdfObjectTree
Default constructor- Parameters:
key-Stringroot key
-
-
Method Details
-
copy
Creates a copy of the object (changes within a copy will not affect the original object)- Returns:
PdfObjectTreecopy
-
addKey
Adds a key- Parameters:
key-String
-
addReference
Adds a numeric reference number- Parameters:
objectNumber-Number
-
setStream
public void setStream()This method allows to specify that a stream have been processed -
getKeyChain
Gets a complete key chain- Returns:
- a list of
Strings
-
getChainDeepness
public int getChainDeepness()Returns the deepness of the current objects chain- Returns:
- chain deepness
-
getLastKey
Returns a last key- Returns:
String
-
isProcessedReference
Checks whether a reference to the given object by number has been already processed in this tree- Parameters:
objectNumber-Numberreference number to an object- Returns:
- TRUE if the reference has been already processed, FALSE otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-