Class SMInputCursorIterable

java.lang.Object
com.atlassian.bamboo.utils.xml.SMInputCursorIterable
All Implemented Interfaces:
Iterable<org.codehaus.staxmate.in.SMInputCursor>

public class SMInputCursorIterable extends Object implements Iterable<org.codehaus.staxmate.in.SMInputCursor>
Simple wrapper that allows using foreach constructs and guavization of StaxMate cursor API
  • Method Details

    • iterator

      public Iterator<org.codehaus.staxmate.in.SMInputCursor> iterator()
      Specified by:
      iterator in interface Iterable<org.codehaus.staxmate.in.SMInputCursor>
    • fromCursor

      public static Iterable<org.codehaus.staxmate.in.SMInputCursor> fromCursor(@NotNull @NotNull org.codehaus.staxmate.in.SMInputCursor cursor) throws XMLStreamException
      Throws:
      XMLStreamException
    • fromCursor

      public static Iterable<org.codehaus.staxmate.in.SMInputCursor> fromCursor(@NotNull @NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull @NotNull org.codehaus.staxmate.in.SMFilter filter) throws XMLStreamException
      Throws:
      XMLStreamException