Package io.atlasmap.core
Class AtlasPath
java.lang.Object
io.atlasmap.core.AtlasPath
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
XmlPath
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final char
static final String
protected List<AtlasPath.SegmentContext>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappendField
(String fieldExpression) clone()
protected AtlasPath.SegmentContext
createSegmentContext
(String expression) static Field
extractChildren
(Field f, String path) Extract child fields by feeding relative path.int
getCollectionSegments
(boolean includeRoot) getSegments
(boolean includeRoot) boolean
boolean
isRoot()
protected List<AtlasPath.SegmentContext>
protected String
setCollectionIndex
(int segmentIndex, Integer collectionIndex) static void
setCollectionIndexRecursively
(FieldGroup group, int segmentIndex, int index) setVacantCollectionIndex
(Integer collectionIndex) toString()
-
Field Details
-
PATH_SEPARATOR
- See Also:
-
PATH_SEPARATOR_CHAR
public static final char PATH_SEPARATOR_CHAR- See Also:
-
PATH_SEPARATOR_ESCAPED
- See Also:
-
PATH_ARRAY_START
- See Also:
-
PATH_ARRAY_END
- See Also:
-
PATH_ARRAY_SUFFIX
- See Also:
-
PATH_LIST_START
- See Also:
-
PATH_LIST_END
- See Also:
-
PATH_LIST_SUFFIX
- See Also:
-
PATH_MAP_START
- See Also:
-
PATH_MAP_END
- See Also:
-
PATH_MAP_SUFFIX
- See Also:
-
PATH_ATTRIBUTE_PREFIX
- See Also:
-
PATH_NAMESPACE_SEPARATOR
- See Also:
-
segmentContexts
-
-
Constructor Details
-
AtlasPath
-
AtlasPath
-
-
Method Details
-
extractChildren
Extract child fields by feeding relative path.- Parameters:
f
- Parent field to extract frompath
- Relative path string- Returns:
- extracted field(s)
-
setCollectionIndexRecursively
-
appendField
-
clone
-
getSegments
-
isRoot
-
getRootSegment
-
isCollectionRoot
-
hasCollectionRoot
-
getLastSegment
-
getLastCollectionSegment
-
getLastSegmentParent
-
getLastSegmentParentPath
-
getParentSegmentOf
-
hasCollection
public boolean hasCollection() -
isIndexedCollection
public boolean isIndexedCollection() -
setCollectionIndex
-
getCollectionSegments
-
setVacantCollectionIndex
-
getSegmentPath
-
toString
-
getOriginalPath
-
getCollectionSegmentCount
public int getCollectionSegmentCount() -
parse
-
sanitize
-
createSegmentContext
-