Class PDUserAttributeObject
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.common.PDDictionaryWrapper
-
- com.tom_roush.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
-
- com.tom_roush.pdfbox.pdmodel.documentinterchange.logicalstructure.PDUserAttributeObject
-
- All Implemented Interfaces:
COSObjectable
public class PDUserAttributeObject extends PDAttributeObject
A User attribute object.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOWNER_USER_PROPERTIESAttribute owner for user properties
-
Constructor Summary
Constructors Constructor Description PDUserAttributeObject()Default constructorPDUserAttributeObject(COSDictionary dictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUserProperty(PDUserProperty userProperty)Adds a user property.List<PDUserProperty>getOwnerUserProperties()Returns the user properties.voidremoveUserProperty(PDUserProperty userProperty)Removes a user property.voidsetUserProperties(List<PDUserProperty> userProperties)Sets the user properties.StringtoString()voiduserPropertyChanged(PDUserProperty userProperty)-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElement
-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
-
-
-
Field Detail
-
OWNER_USER_PROPERTIES
public static final String OWNER_USER_PROPERTIES
Attribute owner for user properties- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PDUserAttributeObject
public PDUserAttributeObject()
Default constructor
-
PDUserAttributeObject
public PDUserAttributeObject(COSDictionary dictionary)
- Parameters:
dictionary- the dictionary
-
-
Method Detail
-
getOwnerUserProperties
public List<PDUserProperty> getOwnerUserProperties()
Returns the user properties.- Returns:
- the user properties
-
setUserProperties
public void setUserProperties(List<PDUserProperty> userProperties)
Sets the user properties.- Parameters:
userProperties- the user properties
-
addUserProperty
public void addUserProperty(PDUserProperty userProperty)
Adds a user property.- Parameters:
userProperty- the user property
-
removeUserProperty
public void removeUserProperty(PDUserProperty userProperty)
Removes a user property.- Parameters:
userProperty- the user property
-
userPropertyChanged
public void userPropertyChanged(PDUserProperty userProperty)
- Parameters:
userProperty- the changed user property.
-
toString
public String toString()
- Overrides:
toStringin classPDAttributeObject
-
-