|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.common.PDDictionaryWrapper
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDDefaultAttributeObject
public class PDDefaultAttributeObject
A default attribute object.
Constructor Summary | |
---|---|
PDDefaultAttributeObject()
Default constructor. |
|
PDDefaultAttributeObject(COSDictionary dictionary)
Creates a default attribute object with a given dictionary. |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject |
---|
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElement |
Methods inherited from class org.apache.pdfbox.pdmodel.common.PDDictionaryWrapper |
---|
equals, getCOSDictionary, getCOSObject, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PDDefaultAttributeObject()
public PDDefaultAttributeObject(COSDictionary dictionary)
dictionary
- the dictionaryMethod Detail |
---|
public java.util.List<java.lang.String> getAttributeNames()
public COSBase getAttributeValue(java.lang.String attrName)
attrName
- the given attribute name
protected COSBase getAttributeValue(java.lang.String attrName, COSBase defaultValue)
attrName
- the given attribute namedefaultValue
- the default value
public void setAttribute(java.lang.String attrName, COSBase attrValue)
attrName
- the attribute nameattrValue
- the attribute valuepublic java.lang.String toString()
toString
in class PDAttributeObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |