Class CssPseudoElementNode.AttributesStub
java.lang.Object
com.itextpdf.styledxmlparser.css.pseudo.CssPseudoElementNode.AttributesStub
- All Implemented Interfaces:
IAttributes
,Iterable<IAttribute>
- Enclosing class:
CssPseudoElementNode
A simple
IAttributes
implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) Gets the value of an attribute, given a key.iterator()
void
setAttribute
(String key, String value) Adds a key and a value of an attributes.int
size()
Returns the number of attributes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AttributesStub
private AttributesStub()
-
-
Method Details
-
getAttribute
Gets the value of an attribute, given a key.- Specified by:
getAttribute
in interfaceIAttributes
- Parameters:
key
- the key- Returns:
- the attribute
-
setAttribute
Adds a key and a value of an attributes.- Specified by:
setAttribute
in interfaceIAttributes
- Parameters:
key
- the keyvalue
- the value
-
size
public int size()Returns the number of attributes.- Specified by:
size
in interfaceIAttributes
- Returns:
- the number of attributes
-
iterator
- Specified by:
iterator
in interfaceIterable<IAttribute>
-