Class CssPseudoElementNode.AttributesStub

java.lang.Object
com.itextpdf.styledxmlparser.css.pseudo.CssPseudoElementNode.AttributesStub
All Implemented Interfaces:
IAttributes, Iterable<IAttribute>
Enclosing class:
CssPseudoElementNode

private static class CssPseudoElementNode.AttributesStub extends Object implements IAttributes
A simple IAttributes implementation.
  • Constructor Details

    • AttributesStub

      private AttributesStub()
  • Method Details

    • getAttribute

      public String getAttribute(String key)
      Gets the value of an attribute, given a key.
      Specified by:
      getAttribute in interface IAttributes
      Parameters:
      key - the key
      Returns:
      the attribute
    • setAttribute

      public void setAttribute(String key, String value)
      Adds a key and a value of an attributes.
      Specified by:
      setAttribute in interface IAttributes
      Parameters:
      key - the key
      value - the value
    • size

      public int size()
      Returns the number of attributes.
      Specified by:
      size in interface IAttributes
      Returns:
      the number of attributes
    • iterator

      public Iterator<IAttribute> iterator()
      Specified by:
      iterator in interface Iterable<IAttribute>