Class IngestField

    • Constructor Detail

      • IngestField

        public IngestField​(java.lang.String name)
        Construct a new IngestField.
    • Method Detail

      • getEstimatedSize

        public long getEstimatedSize()
        Get the estimated size of this field in bytes.

        NOTE: Includes size of remote content pointers.

      • getName

        public java.lang.String getName()
        Get the name of the field.
      • getLocale

        public java.util.Locale getLocale()
        Get the Locale for this field.
        Specified by:
        getLocale in interface LocaleAware
      • setLocale

        public void setLocale​(java.util.Locale value)
        Set the Locale for this field.
        Specified by:
        setLocale in interface LocaleAware
      • size

        public int size()
        Get the number of field values.
      • forEach

        public void forEach​(java.util.function.Consumer<? super IngestFieldValue> consumer)
        Specified by:
        forEach in interface java.lang.Iterable<IngestFieldValue>
      • filter

        public int filter​(java.util.function.Predicate<? super IngestFieldValue> predicate)
        Filter out all values that do not match predicate.

        Returns the number of removed values.

      • iterator

        public java.util.ListIterator<IngestFieldValue> iterator()
        Get an iterator for iterating over all values.
        Specified by:
        iterator in interface java.lang.Iterable<IngestFieldValue>
      • getFirstValue

        public IngestFieldValue getFirstValue()
        Gets the first field value.

        NOTE: may return null if this field has no values.

      • indexOf

        public int indexOf​(java.lang.Object value)
        Get the index of the IngestFieldValue with value.

        Returns -1 if value does not exist.

      • clear

        public void clear()
        Remove all values.
      • removeValue

        public void removeValue​(java.lang.Object value)
        Remove a field value.
      • addValues

        public void addValues​(java.lang.String... values)
        Add String values to this IngestField.
      • addValues

        public void addValues​(java.lang.Number... values)
        Add numeric values to this IngestField.
      • addValues

        public void addValues​(java.util.Date... values)
        Add Date values to this IngestField.
      • addValues

        public void addValues​(java.lang.Boolean... values)
        Add Boolean values to this IngestField.
      • addValues

        public void addValues​(org.w3c.dom.Document... values)
        Add Document values to this IngestField.
      • addValue

        public void addValue​(java.lang.String value)
        Add a String value to this IngestField.
      • addValue

        public void addValue​(java.lang.Number value)
        Add a numeric value to this IngestField.
      • addValue

        public void addValue​(java.util.Date value)
        Add a Date value to this IngestField.
      • addValue

        public void addValue​(java.lang.Boolean value)
        Add a Boolean value to this IngestField.
      • addValue

        public void addValue​(org.w3c.dom.Document value)
        Add a Document value to this IngestField.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • clone

        public IngestField clone()
        Overrides:
        clone in class java.lang.Object