Class Dictionary
java.lang.Object
se.swedenconnect.sigval.pdf.pdfstruct.Dictionary
Utility class for a PDF Dictionary used to compare and extract values from the Dictionary
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValueByName
(String name) Gets the value of an item inside this dictionaryboolean
Compare this dictionary with the values of another dictionary
-
Constructor Details
-
Dictionary
public Dictionary(org.apache.pdfbox.cos.COSDictionary dictionary) Constructor- Parameters:
dictionary
- the dictionary object holding the dictionary data
-
-
Method Details
-
matches
Compare this dictionary with the values of another dictionary- Parameters:
matchDictionary
- the dictionary to match- Returns:
- true on match
-
getValueByName
Gets the value of an item inside this dictionary- Parameters:
name
- the key used to locate the value- Returns:
- the value under the specified key
-