Class PDDefaultAttributeObject
java.lang.Object
org.apache.pdfbox.pdmodel.common.PDDictionaryWrapper
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDDefaultAttributeObject
- All Implemented Interfaces:
COSObjectable
A default attribute object.
- Author:
- Johannes Koch
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PDDefaultAttributeObject(COSDictionary dictionary) Creates a default attribute object with a given dictionary. -
Method Summary
Modifier and TypeMethodDescriptionGets the attribute names.getAttributeValue(String attrName) Gets the attribute value for a given name.protected COSBasegetAttributeValue(String attrName, COSBase defaultValue) Gets the attribute value for a given name.voidsetAttribute(String attrName, COSBase attrValue) Sets an attribute.toString()Methods inherited from class PDAttributeObject
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElementMethods inherited from class PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Constructor Details
-
PDDefaultAttributeObject
public PDDefaultAttributeObject()Default constructor. -
PDDefaultAttributeObject
Creates a default attribute object with a given dictionary.- Parameters:
dictionary- the dictionary
-
-
Method Details
-
getAttributeNames
-
getAttributeValue
-
getAttributeValue
-
setAttribute
-
toString
- Overrides:
toStringin classPDAttributeObject
-