Package ch.rabanti.nanoxlsx4j.lowLevel
Class XmlDocument.XmlAttributeCollection
java.lang.Object
ch.rabanti.nanoxlsx4j.lowLevel.XmlDocument.XmlAttributeCollection
- All Implemented Interfaces:
Iterable<XmlDocument.XmlAttribute>,Iterator<XmlDocument.XmlAttribute>
- Enclosing class:
- XmlDocument
public static class XmlDocument.XmlAttributeCollection
extends Object
implements Iterable<XmlDocument.XmlAttribute>, Iterator<XmlDocument.XmlAttribute>
Class representing an iterable list of XML attributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(XmlDocument.XmlAttribute attribute) Ads an XML attribute to the node listvoidforEach(Consumer<? super XmlDocument.XmlAttribute> action) Finds the attribute with the defined name (can be null)booleanhasNext()iterator()next()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
XmlAttributeCollection
public XmlAttributeCollection()
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<XmlDocument.XmlAttribute>
-
next
- Specified by:
nextin interfaceIterator<XmlDocument.XmlAttribute>
-
iterator
- Specified by:
iteratorin interfaceIterable<XmlDocument.XmlAttribute>
-
forEach
- Specified by:
forEachin interfaceIterable<XmlDocument.XmlAttribute>
-
add
Ads an XML attribute to the node list- Parameters:
attribute- Item to add
-
getByName
Finds the attribute with the defined name (can be null)- Parameters:
name- Name of the attribute- Returns:
- XM L attribute or null if the attribute was not found
-