Class SolrInputField

    • Constructor Detail

      • SolrInputField

        public SolrInputField​(String n)
    • Method Detail

      • setValue

        public void setValue​(Object v)
        Set the value for a field. Arrays will be converted to a collection. If a collection is given, then that collection will be used as the backing collection for the values.
      • addValue

        public void addValue​(Object v)
        Add values to a field. If the added value is a collection, each value will be added individually.
      • getFirstValue

        public Object getFirstValue()
      • getValue

        public Object getValue()
        Returns:
        the value for this field. If the field has multiple values, this will be a collection.
      • getRawValue

        public Object getRawValue()
        Return a value as is without converting and CharSequence Objects
      • getFirstRawValue

        public Object getFirstRawValue()
        Return the first value as is without converting and CharSequence Objects
      • getValues

        public Collection<Object> getValues()
        Returns:
        the values for this field. This will return a collection even if the field is not multi-valued
      • getValueCount

        public int getValueCount()
        Returns:
        the number of values for this field
      • getName

        public String getName()
      • setName

        public void setName​(String name)