Class FieldDescription

  • All Implemented Interfaces:
    Serializable

    public class FieldDescription
    extends Object
    implements Serializable
    A FieldDescription pack all the needed information to parse and index a generic field (xml field, iptc field) We need :
    • the name of the field
    • its content
    • its language
    • to know if its value must be stored in the index (then value could be exploited directly by search engine as facet for example)
    See Also:
    Serialized Form
    • Constructor Detail

      • FieldDescription

        public FieldDescription​(String fieldName,
                                String content,
                                String lang)
      • FieldDescription

        public FieldDescription​(String fieldName,
                                String content,
                                String lang,
                                boolean stored)
      • FieldDescription

        public FieldDescription​(String fieldName,
                                Date date,
                                String lang,
                                boolean stored)
      • FieldDescription

        public FieldDescription​(String fieldName,
                                Date begin,
                                Date end,
                                String lang)
    • Method Detail

      • isBasedOnDate

        public boolean isBasedOnDate()
      • getFieldName

        public String getFieldName()
        Return the fieldName
      • getContent

        public String getContent()
        Return the content itself
      • getLang

        public String getLang()
        Return the content language
      • isStored

        public boolean isStored()
      • getStartDate

        public LocalDate getStartDate()
      • isEmpty

        public boolean isEmpty()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object