COSObjectable
public class PDDefaultAttributeObject extends PDAttributeObject
Constructor | Description |
---|---|
PDDefaultAttributeObject() |
Default constructor.
|
PDDefaultAttributeObject(COSDictionary dictionary) |
Creates a default attribute object with a given dictionary.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.List<java.lang.String> |
getAttributeNames() |
Gets the attribute names.
|
COSBase |
getAttributeValue(java.lang.String attrName) |
Gets the attribute value for a given name.
|
protected COSBase |
getAttributeValue(java.lang.String attrName,
COSBase defaultValue) |
Gets the attribute value for a given name.
|
void |
setAttribute(java.lang.String attrName,
COSBase attrValue) |
Sets an attribute.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElement
equals, getCOSDictionary, getCOSObject, hashCode
public PDDefaultAttributeObject()
public PDDefaultAttributeObject(COSDictionary dictionary)
dictionary
- the dictionarypublic java.util.List<java.lang.String> getAttributeNames()
public COSBase getAttributeValue(java.lang.String attrName)
attrName
- the given attribute nameprotected COSBase getAttributeValue(java.lang.String attrName, COSBase defaultValue)
attrName
- the given attribute namedefaultValue
- the default valuepublic void setAttribute(java.lang.String attrName, COSBase attrValue)
attrName
- the attribute nameattrValue
- the attribute valuepublic java.lang.String toString()
toString
in class PDAttributeObject