Package net.minidev.json.actions.path
Class PathDelimiter
- java.lang.Object
-
- net.minidev.json.actions.path.PathDelimiter
-
- Direct Known Subclasses:
DotDelimiter,SlashDelimiter
public abstract class PathDelimiter extends Object
Encapsulates the delimiter of the path parts when given in n-gram format.- Since:
- 31 May 2016
- Author:
- adoneitan@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanacceptDelimInKeyprotected chardelimCharprotected StringdelimStr
-
Constructor Summary
Constructors Constructor Description PathDelimiter(char delim)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaccept(String key)charchr()abstract Stringregex()Stringstr()PathDelimiterwithAcceptDelimiterInNodeName(boolean acceptDelimInKey)
-
-
-
Field Detail
-
delimChar
protected char delimChar
-
delimStr
protected String delimStr
-
acceptDelimInKey
protected boolean acceptDelimInKey
-
-
Method Detail
-
withAcceptDelimiterInNodeName
public PathDelimiter withAcceptDelimiterInNodeName(boolean acceptDelimInKey)
-
accept
public boolean accept(String key)
-
str
public String str()
-
chr
public char chr()
-
regex
public abstract String regex()
-
-