Class UriItem

    • Constructor Detail

      • UriItem

        public UriItem()
      • UriItem

        public UriItem​(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​(String sourceString)
      • getArgumentString

        public 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
      • equals

        public boolean equals​(Object o)
        Description copied from class: CompositeItem
        Returns whether this item is of the same class and contains the same state as the given item
        Overrides:
        equals in class PhraseItem