public class JsoupAttributes extends Object implements IAttributes
IAttributes
interface; wrapper for the JSoup Attributes
class.
Constructor and Description |
---|
JsoupAttributes(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, wait
forEach, spliterator
public JsoupAttributes(Attributes attributes)
JsoupAttributes
instance.
attributes
- the attributes
public String getAttribute(String key)
IAttributes
getAttribute
in interface IAttributes
key
- the key
public void setAttribute(String key, String value)
IAttributes
setAttribute
in interface IAttributes
key
- the key
value
- the value
public int size()
IAttributes
size
in interface IAttributes
public Iterator<IAttribute> iterator()
iterator
in interface Iterable<IAttribute>
Copyright © 1998–2019 iText Group NV. All rights reserved.