COSObjectable
PDDefaultAttributeObject
, PDStandardAttributeObject
, PDUserAttributeObject
public abstract class PDAttributeObject extends PDDictionaryWrapper
Constructor | Description |
---|---|
PDAttributeObject() |
Default constructor.
|
PDAttributeObject(COSDictionary dictionary) |
Creates a new attribute object with a given dictionary.
|
Modifier and Type | Method | Description |
---|---|---|
protected static java.lang.String |
arrayToString(float[] array) |
Creates a String representation of a float array.
|
protected static java.lang.String |
arrayToString(java.lang.Object[] array) |
Creates a String representation of an Object array.
|
static PDAttributeObject |
create(COSDictionary dictionary) |
Creates an attribute object.
|
java.lang.String |
getOwner() |
Returns the owner of the attributes.
|
boolean |
isEmpty() |
Detects whether there are no properties in the attribute object.
|
protected void |
notifyChanged() |
Notifies the attribute object change listeners about a change in this
attribute object.
|
protected void |
potentiallyNotifyChanged(COSBase oldBase,
COSBase newBase) |
Notifies the attribute object change listeners if the attribute is changed.
|
protected void |
setOwner(java.lang.String owner) |
Sets the owner of the attributes.
|
protected void |
setStructureElement(PDStructureElement structureElement) |
Sets the structure element.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getCOSDictionary, getCOSObject, hashCode
public PDAttributeObject()
public PDAttributeObject(COSDictionary dictionary)
dictionary
- the dictionarypublic static PDAttributeObject create(COSDictionary dictionary)
dictionary
- the dictionaryprotected void setStructureElement(PDStructureElement structureElement)
structureElement
- the structure elementpublic java.lang.String getOwner()
protected void setOwner(java.lang.String owner)
owner
- the owner of the attributespublic boolean isEmpty()
true
if the attribute object is empty,
false
otherwiseprotected void potentiallyNotifyChanged(COSBase oldBase, COSBase newBase)
oldBase
- old valuenewBase
- new valueprotected void notifyChanged()
public java.lang.String toString()
toString
in class java.lang.Object
protected static java.lang.String arrayToString(java.lang.Object[] array)
array
- the Object arrayprotected static java.lang.String arrayToString(float[] array)
array
- the float array