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.
-
Constructor Summary
ConstructorsConstructorDescriptionJsoupAttributes(com.itextpdf.styledxmlparser.jsoup.nodes.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
JsoupAttributes
public JsoupAttributes(com.itextpdf.styledxmlparser.jsoup.nodes.Attributes attributes) 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 key -
value- 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>
-