Class PDUserProperty
java.lang.Object
org.apache.pdfbox.pdmodel.common.PDDictionaryWrapper
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDUserProperty
- All Implemented Interfaces:
COSObjectable
A user property.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPDUserProperty(COSDictionary dictionary, PDUserAttributeObject userAttributeObject) Creates a user property with a given dictionary.PDUserProperty(PDUserAttributeObject userAttributeObject) Creates a new user property. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the string for the property value.getName()Returns the property name.getValue()Returns the property value.inthashCode()private booleanisEntryChanged(Object oldEntry, Object newEntry) Is the value changed?booleanisHidden()Shall the property be hidden?private voidpotentiallyNotifyChanged(Object oldEntry, Object newEntry) Notifies the user attribute object if the user property is changed.voidsetFormattedValue(String formattedValue) Sets the string for the property value.voidsetHidden(boolean hidden) Specifies whether the property shall be hidden.voidSets the property name.voidSets the property value.toString()Methods inherited from class org.apache.pdfbox.pdmodel.common.PDDictionaryWrapper
getCOSObject
-
Field Details
-
userAttributeObject
-
-
Constructor Details
-
PDUserProperty
Creates a new user property.- Parameters:
userAttributeObject- the user attribute object
-
PDUserProperty
Creates a user property with a given dictionary.- Parameters:
dictionary- the dictionaryuserAttributeObject- the user attribute object
-
-
Method Details
-
getName
Returns the property name.- Returns:
- the property name
-
setName
Sets the property name.- Parameters:
name- the property name
-
getValue
Returns the property value.- Returns:
- the property value
-
setValue
Sets the property value.- Parameters:
value- the property value
-
getFormattedValue
Returns the string for the property value.- Returns:
- the string for the property value
-
setFormattedValue
Sets the string for the property value.- Parameters:
formattedValue- the string for the property value
-
isHidden
public boolean isHidden()Shall the property be hidden?- Returns:
trueif the property shall be hidden,falseotherwise
-
setHidden
public void setHidden(boolean hidden) Specifies whether the property shall be hidden.- Parameters:
hidden-trueif the property shall be hidden,falseotherwise
-
toString
-
potentiallyNotifyChanged
Notifies the user attribute object if the user property is changed.- Parameters:
oldEntry- old entrynewEntry- new entry
-
isEntryChanged
Is the value changed?- Parameters:
oldEntry- old entrynewEntry- new entry- Returns:
trueif the entry is changed,falseotherwise
-
hashCode
public int hashCode()- Overrides:
hashCodein classPDDictionaryWrapper
-
equals
- Overrides:
equalsin classPDDictionaryWrapper
-