Class PDUserAttributeObject
java.lang.Object
org.apache.pdfbox.pdmodel.common.PDDictionaryWrapper
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDUserAttributeObject
- All Implemented Interfaces:
COSObjectable
A User attribute object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addUserProperty
(PDUserProperty userProperty) Adds a user property.Returns the user properties.void
removeUserProperty
(PDUserProperty userProperty) Removes a user property.void
setUserProperties
(List<PDUserProperty> userProperties) Sets the user properties.toString()
void
userPropertyChanged
(PDUserProperty userProperty) Methods inherited from class org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElement
Methods inherited from class org.apache.pdfbox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Field Details
-
OWNER_USER_PROPERTIES
Attribute owner for user properties- See Also:
-
-
Constructor Details
-
PDUserAttributeObject
public PDUserAttributeObject()Default constructor -
PDUserAttributeObject
- Parameters:
dictionary
- the dictionary
-
-
Method Details
-
getOwnerUserProperties
Returns the user properties.- Returns:
- the user properties
-
setUserProperties
Sets the user properties.- Parameters:
userProperties
- the user properties
-
addUserProperty
Adds a user property.- Parameters:
userProperty
- the user property
-
removeUserProperty
Removes a user property.- Parameters:
userProperty
- the user property
-
userPropertyChanged
- Parameters:
userProperty
- the changed user property.
-
toString
- Overrides:
toString
in classPDAttributeObject
-