Class UriItem

  • All Implemented Interfaces:
    HasIndexItem, IndexedItem, TaggableItem, java.lang.Cloneable

    public class UriItem
    extends PhraseItem
    An item matching a uri field. This is syntactic sugar for a phrase with anchor items.
    • Constructor Detail

      • UriItem

        public UriItem()
      • UriItem

        public UriItem​(java.lang.String indexName)
    • Method Detail

      • addStartAnchorItem

        public void addStartAnchorItem()
        Adds a start anchor as the *current* first item. This does not enforce that the items stays at the start if further items are added.
      • addEndAnchorItem

        public void addEndAnchorItem()
        Adds an end anchor as the *current* last item. This does not enforce that the items stays at the end if further items are added.
      • hasStartAnchor

        public boolean hasStartAnchor()
        Returns whether the first item of this is a start anchor
      • hasEndAnchor

        public boolean hasEndAnchor()
        Returns whether the last item of this is an end anchor
      • isStartAnchorDefault

        public boolean isStartAnchorDefault()
      • setStartAnchorDefault

        public void setStartAnchorDefault​(boolean startAnchorDefault)
      • isEndAnchorDefault

        public boolean isEndAnchorDefault()
      • setEndAnchorDefault

        public void setEndAnchorDefault​(boolean endAnchorDefault)
      • setSourceString

        public void setSourceString​(java.lang.String sourceString)
      • getArgumentString

        public java.lang.String getArgumentString()
        Returns the canonical form of the tokens of this: Either the source string, or if none each token except the start and end anchor separated by space