Top Description Inners Fields Constructors Methods
org.apache.pdfbox.pdmodel.interactive.form

public Class PDFieldTree

extends Object
implements Iterable<PDField>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Imports
java.util.ArrayDeque, .Collections, .IdentityHashMap, .Iterator, .Queue, .List, .NoSuchElementException, .Set, org.apache.commons.logging.Log, .LogFactory, org.apache.pdfbox.cos.COSDictionary

The field tree.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
PDFieldTree.FieldIterator

Iterator which walks all fields in the tree, in order.

Field Summary

Modifier and TypeField and Description
private final PDAcroForm
private static final Log

Constructor Summary

AccessConstructor and Description
public
PDFieldTree(PDAcroForm
the AcroForm containing the fields.
acroForm
)

Constructor for reading.

Method Summary

Modifier and TypeMethod and Description
public Iterator<PDField>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator which walks all fields in the tree, in order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

acroFormback to summary
private final PDAcroForm acroForm
LOGback to summary
private static final Log LOG

Constructor Detail

PDFieldTreeback to summary
public PDFieldTree(PDAcroForm acroForm)

Constructor for reading.

Parameters
acroForm:PDAcroForm

the AcroForm containing the fields.

Method Detail

iteratorback to summary
public Iterator<PDField> iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator which walks all fields in the tree, in order.

Returns:Iterator<PDField>

Doc from java.lang.Iterable.iterator.

an Iterator.

Annotations
@Override
org.apache.pdfbox.pdmodel.interactive.form back to summary

private final Class PDFieldTree.FieldIterator

extends Object
implements Iterator<PDField>
Class Inheritance
  • java.lang.Object
  • org.apache.pdfbox.pdmodel.interactive.form.PDFieldTree.FieldIterator
All Implemented Interfaces
java.util.Iterator

Iterator which walks all fields in the tree, in order.

Field Summary

Modifier and TypeField and Description
private final Queue<PDField>
private final Set<COSDictionary>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private void
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.

public PDField
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

public void
remove()

Overrides default java.util.Iterator.remove.

Removes from the underlying collection the last element returned by this iterator (optional operation).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

queueback to summary
private final Queue<PDField> queue
setback to summary
private final Set<COSDictionary> set

Constructor Detail

FieldIteratorback to summary
private FieldIterator(PDAcroForm form)

Method Detail

enqueueKidsback to summary
private void enqueueKids(PDField node)
hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:boolean

true if the iteration has more elements

Annotations
@Override
nextback to summary
public PDField next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:PDField

the next element in the iteration

Annotations
@Override
removeback to summary
public void remove()

Overrides default java.util.Iterator.remove.

Doc from java.util.Iterator.remove.

Removes from the underlying collection the last element returned by this iterator (optional operation). This method can be called only once per call to next.

The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.

The behavior of an iterator is unspecified if this method is called after a call to the forEachRemaining method.

Annotations
@Override