public class PDDefaultAttributeObject extends PDAttributeObject
| Constructor and Description | 
|---|
| PDDefaultAttributeObject()Default constructor. | 
| PDDefaultAttributeObject(COSDictionary dictionary)Creates a default attribute object with a given dictionary. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<String> | getAttributeNames()Gets the attribute names. | 
| COSBase | getAttributeValue(String attrName)Gets the attribute value for a given name. | 
| protected COSBase | getAttributeValue(String attrName,
                 COSBase defaultValue)Gets the attribute value for a given name. | 
| void | setAttribute(String attrName,
            COSBase attrValue)Sets an attribute. | 
| String | toString() | 
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElementequals, getCOSObject, hashCodepublic PDDefaultAttributeObject()
public PDDefaultAttributeObject(COSDictionary dictionary)
dictionary - the dictionarypublic List<String> getAttributeNames()
public COSBase getAttributeValue(String attrName)
attrName - the given attribute nameprotected COSBase getAttributeValue(String attrName, COSBase defaultValue)
attrName - the given attribute namedefaultValue - the default valuepublic void setAttribute(String attrName, COSBase attrValue)
attrName - the attribute nameattrValue - the attribute valuepublic String toString()
toString in class PDAttributeObjectCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.