Class JsoupAttributes
java.lang.Object
com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupAttributes
- All Implemented Interfaces:
IAttributes, Iterable<IAttribute>
Implementation of the
IAttributes interface; wrapper for the JSoup Attributes class.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsoupAttributes(Attributes attributes) Creates a newJsoupAttributesinstance. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) Gets the value of an attribute, given a key.iterator()voidsetAttribute(String key, String value) Adds a key and a value of an attributes.intsize()Returns the number of attributes.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
attributes
The JSoupAttributesinstance.
-
-
Constructor Details
-
JsoupAttributes
Creates a newJsoupAttributesinstance.- Parameters:
attributes- the attributes
-
-
Method Details
-
getAttribute
Description copied from interface:IAttributesGets the value of an attribute, given a key.- Specified by:
getAttributein interfaceIAttributes- Parameters:
key- the key- Returns:
- the attribute
-
setAttribute
Description copied from interface:IAttributesAdds a key and a value of an attributes.- Specified by:
setAttributein interfaceIAttributes- Parameters:
key- the keyvalue- the value
-
size
public int size()Description copied from interface:IAttributesReturns the number of attributes.- Specified by:
sizein interfaceIAttributes- Returns:
- the number of attributes
-
iterator
- Specified by:
iteratorin interfaceIterable<IAttribute>
-