Class PDDefaultAttributeObject

All Implemented Interfaces:
COSObjectable

public class PDDefaultAttributeObject extends PDAttributeObject
A default attribute object.
Author:
Johannes Koch
  • Constructor Details

    • PDDefaultAttributeObject

      public PDDefaultAttributeObject()
      Default constructor.
    • PDDefaultAttributeObject

      public PDDefaultAttributeObject(COSDictionary dictionary)
      Creates a default attribute object with a given dictionary.
      Parameters:
      dictionary - the dictionary
  • Method Details

    • getAttributeNames

      public List<String> getAttributeNames()
      Gets the attribute names.
      Returns:
      the attribute names
    • getAttributeValue

      public COSBase getAttributeValue(String attrName)
      Gets the attribute value for a given name.
      Parameters:
      attrName - the given attribute name
      Returns:
      the attribute value for a given name
    • getAttributeValue

      protected COSBase getAttributeValue(String attrName, COSBase defaultValue)
      Gets the attribute value for a given name.
      Parameters:
      attrName - the given attribute name
      defaultValue - the default value
      Returns:
      the attribute value for a given name
    • setAttribute

      public void setAttribute(String attrName, COSBase attrValue)
      Sets an attribute.
      Parameters:
      attrName - the attribute name
      attrValue - the attribute value
    • toString

      public String toString()
      Overrides:
      toString in class PDAttributeObject