Package org.dlese.dpc.index.reader
Class XMLDocReader.VocabUiLabelsCollection
java.lang.Object
java.util.AbstractCollection
org.dlese.dpc.index.reader.XMLDocReader.VocabUiLabelsCollection
- All Implemented Interfaces:
Iterable,Collection
- Enclosing class:
XMLDocReader
A collection of user interface labels derived from vocabulary field/value IDs.
- Author:
- John Weatherley
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classThe Iterator -
Constructor Summary
ConstructorsConstructorDescriptionVocabUiLabelsCollection(String fieldId, String[] valueIds, String metadataFormat) Constructor for the VocabUiLabelsCollection object -
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
VocabUiLabelsCollection
Constructor for the VocabUiLabelsCollection object- Parameters:
fieldId- A vocab field ID, for example 'gr'valueIds- Vocab value IDs, for example 07, 04, 05metadataFormat- The metadata format, for example 'adn'
-
-
Method Details
-
iterator
The iterator over the UI labels- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin classAbstractCollection- Returns:
- The iterator over the UI labels
-
size
public int size()The number of items in this collection- Specified by:
sizein interfaceCollection- Specified by:
sizein classAbstractCollection- Returns:
- Number of items in this collection
-