public class JsoupAttributes extends Object implements IAttributes
IAttributes interface; wrapper for the JSoup Attributes class.| Constructor and Description |
|---|
JsoupAttributes(com.itextpdf.styledxmlparser.jsoup.nodes.Attributes attributes)
Creates a new
JsoupAttributes instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String key)
Gets the value of an attribute, given a key.
|
Iterator<IAttribute> |
iterator() |
void |
setAttribute(String key,
String value)
Adds a key and a value of an attributes.
|
int |
size()
Returns the number of attributes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic JsoupAttributes(com.itextpdf.styledxmlparser.jsoup.nodes.Attributes attributes)
JsoupAttributes instance.attributes - the attributespublic String getAttribute(String key)
IAttributesgetAttribute in interface IAttributeskey - the keypublic void setAttribute(String key, String value)
IAttributessetAttribute in interface IAttributeskey - the keyvalue - the valuepublic int size()
IAttributessize in interface IAttributespublic Iterator<IAttribute> iterator()
iterator in interface Iterable<IAttribute>Copyright © 1998–2019 iText Group NV. All rights reserved.