Klasse LiteralPathElement

java.lang.Object
org.xbib.net.path.spring.element.PathElement
org.xbib.net.path.spring.element.LiteralPathElement

public class LiteralPathElement extends PathElement
A literal path element. In the pattern '/foo/bar/goo' there are three literal path elements 'foo', 'bar' and 'goo'.
  • Konstruktordetails

    • LiteralPathElement

      public LiteralPathElement(int pos, char[] literalText, boolean caseSensitive, char separator)
  • Methodendetails

    • matches

      public boolean matches(int pathIndex, MatchingContext matchingContext)
      Beschreibung aus Klasse kopiert: PathElement
      Attempt to match this path element.
      Angegeben von:
      matches in Klasse PathElement
      Parameter:
      pathIndex - the current position within the candidate path
      matchingContext - encapsulates context for the match including the candidate
      Gibt zurück:
      true if it matches, otherwise false
    • getNormalizedLength

      public int getNormalizedLength()
      Beschreibung aus Klasse kopiert: PathElement
      Return the length of the path element where captures are considered to be one character long.
      Angegeben von:
      getNormalizedLength in Klasse PathElement
      Gibt zurück:
      the normalized length
    • getChars

      public char[] getChars()
      Angegeben von:
      getChars in Klasse PathElement
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object