Class JPropPathSplitter
java.lang.Object
com.fasterxml.jackson.dataformat.javaprop.util.JPropPathSplitter
- Direct Known Subclasses:
JPropPathSplitter.CharPathOnlySplitter, JPropPathSplitter.FullSplitter, JPropPathSplitter.IndexOnlySplitter, JPropPathSplitter.NonSplitting, JPropPathSplitter.StringPathOnlySplitter
Helper class used for splitting a flattened property key into
nested/structured path that can be used to traverse and/or define
hierarchic structure.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimple variant where we only have path separator, and optional "segment is index iff value is integer number"static classInstance that supports both path separator and index markers (and possibly also "simple" indexes)static classSpecial variant that does not use path separator, but does allow index indicator, at the end of path.static class"No-op" implementation that does no splitting and simply adds entries as is.static classSimple variant where we only have path separator, and optional "segment is index iff value is integer number" -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JPropNode_addSegment(JPropNode parent, String segment) protected intprotected JPropNode_lastSegment(JPropNode parent, String path, int start, int end) static JPropPathSplittercreate(JavaPropsSchema schema) private static JPropPathSplitterpathOnlySplitter(JavaPropsSchema schema) abstract JPropNodesplitAndAdd(JPropNode parent, String key, String value) Main access method for splitting key into one or more segments and using segmentation to add the String value as a node in its proper location.
-
Field Details
-
_useSimpleIndex
protected final boolean _useSimpleIndex
-
-
Constructor Details
-
JPropPathSplitter
protected JPropPathSplitter(boolean useSimpleIndex)
-
-
Method Details
-
create
-
pathOnlySplitter
-
splitAndAdd
-
_addSegment
-
_lastSegment
-
_asInt
-