public class PDUserProperty extends PDDictionaryWrapper
Modifier and Type | Field and Description |
---|---|
private PDUserAttributeObject |
userAttributeObject |
Constructor and Description |
---|
PDUserProperty(COSDictionary dictionary,
PDUserAttributeObject userAttributeObject)
Creates a user property with a given dictionary.
|
PDUserProperty(PDUserAttributeObject userAttributeObject)
Creates a new user property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFormattedValue()
Returns the string for the property value.
|
java.lang.String |
getName()
Returns the property name.
|
COSBase |
getValue()
Returns the property value.
|
int |
hashCode() |
private boolean |
isEntryChanged(java.lang.Object oldEntry,
java.lang.Object newEntry)
Is the value changed?
|
boolean |
isHidden()
Shall the property be hidden?
|
private void |
potentiallyNotifyChanged(java.lang.Object oldEntry,
java.lang.Object newEntry)
Notifies the user attribute object if the user property is changed.
|
void |
setFormattedValue(java.lang.String formattedValue)
Sets the string for the property value.
|
void |
setHidden(boolean hidden)
Specifies whether the property shall be hidden.
|
void |
setName(java.lang.String name)
Sets the property name.
|
void |
setValue(COSBase value)
Sets the property value.
|
java.lang.String |
toString() |
getCOSObject
private final PDUserAttributeObject userAttributeObject
public PDUserProperty(PDUserAttributeObject userAttributeObject)
userAttributeObject
- the user attribute objectpublic PDUserProperty(COSDictionary dictionary, PDUserAttributeObject userAttributeObject)
dictionary
- the dictionaryuserAttributeObject
- the user attribute objectpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the property namepublic COSBase getValue()
public void setValue(COSBase value)
value
- the property valuepublic java.lang.String getFormattedValue()
public void setFormattedValue(java.lang.String formattedValue)
formattedValue
- the string for the property valuepublic boolean isHidden()
true
if the property shall be hidden,
false
otherwisepublic void setHidden(boolean hidden)
hidden
- true
if the property shall be hidden,
false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
private void potentiallyNotifyChanged(java.lang.Object oldEntry, java.lang.Object newEntry)
oldEntry
- old entrynewEntry
- new entryprivate boolean isEntryChanged(java.lang.Object oldEntry, java.lang.Object newEntry)
oldEntry
- old entrynewEntry
- new entrytrue
if the entry is changed, false
otherwisepublic int hashCode()
hashCode
in class PDDictionaryWrapper
public boolean equals(java.lang.Object obj)
equals
in class PDDictionaryWrapper