Package io.atlasmap.core
Class AtlasPath
- java.lang.Object
-
- io.atlasmap.core.AtlasPath
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAtlasPath.SegmentContext
-
Field Summary
Fields Modifier and Type Field Description static StringPATH_ARRAY_ENDstatic StringPATH_ARRAY_STARTstatic StringPATH_ARRAY_SUFFIXstatic StringPATH_ATTRIBUTE_PREFIXstatic StringPATH_LIST_ENDstatic StringPATH_LIST_STARTstatic StringPATH_LIST_SUFFIXstatic StringPATH_MAP_ENDstatic StringPATH_MAP_STARTstatic StringPATH_MAP_SUFFIXstatic StringPATH_NAMESPACE_SEPARATORstatic StringPATH_SEPARATORstatic charPATH_SEPARATOR_CHARstatic StringPATH_SEPARATOR_ESCAPEDprotected List<AtlasPath.SegmentContext>segmentContexts
-
Constructor Summary
Constructors Modifier Constructor Description AtlasPath(String p)protectedAtlasPath(List<AtlasPath.SegmentContext> segments)
-
Method Summary
-
-
-
Field Detail
-
PATH_SEPARATOR
public static final String PATH_SEPARATOR
- See Also:
- Constant Field Values
-
PATH_SEPARATOR_CHAR
public static final char PATH_SEPARATOR_CHAR
- See Also:
- Constant Field Values
-
PATH_SEPARATOR_ESCAPED
public static final String PATH_SEPARATOR_ESCAPED
- See Also:
- Constant Field Values
-
PATH_ARRAY_START
public static final String PATH_ARRAY_START
- See Also:
- Constant Field Values
-
PATH_ARRAY_END
public static final String PATH_ARRAY_END
- See Also:
- Constant Field Values
-
PATH_ARRAY_SUFFIX
public static final String PATH_ARRAY_SUFFIX
- See Also:
- Constant Field Values
-
PATH_LIST_START
public static final String PATH_LIST_START
- See Also:
- Constant Field Values
-
PATH_LIST_END
public static final String PATH_LIST_END
- See Also:
- Constant Field Values
-
PATH_LIST_SUFFIX
public static final String PATH_LIST_SUFFIX
- See Also:
- Constant Field Values
-
PATH_MAP_START
public static final String PATH_MAP_START
- See Also:
- Constant Field Values
-
PATH_MAP_END
public static final String PATH_MAP_END
- See Also:
- Constant Field Values
-
PATH_MAP_SUFFIX
public static final String PATH_MAP_SUFFIX
- See Also:
- Constant Field Values
-
PATH_ATTRIBUTE_PREFIX
public static final String PATH_ATTRIBUTE_PREFIX
- See Also:
- Constant Field Values
-
PATH_NAMESPACE_SEPARATOR
public static final String PATH_NAMESPACE_SEPARATOR
- See Also:
- Constant Field Values
-
segmentContexts
protected List<AtlasPath.SegmentContext> segmentContexts
-
-
Constructor Detail
-
AtlasPath
public AtlasPath(String p)
-
AtlasPath
protected AtlasPath(List<AtlasPath.SegmentContext> segments)
-
-
Method Detail
-
extractChildren
public static io.atlasmap.v2.Field extractChildren(io.atlasmap.v2.Field f, String path)Extract child fields by feeding relative path.- Parameters:
f- Parent field to extract frompath- Relative path string- Returns:
- extracted field(s)
-
setCollectionIndexRecursively
public static void setCollectionIndexRecursively(io.atlasmap.v2.FieldGroup group, int segmentIndex, int index)
-
getSegments
public List<AtlasPath.SegmentContext> getSegments(boolean includeRoot)
-
isRoot
public Boolean isRoot()
-
getRootSegment
public AtlasPath.SegmentContext getRootSegment()
-
isCollectionRoot
public Boolean isCollectionRoot()
-
hasCollectionRoot
public Boolean hasCollectionRoot()
-
getLastSegment
public AtlasPath.SegmentContext getLastSegment()
-
getLastCollectionSegment
public AtlasPath.SegmentContext getLastCollectionSegment()
-
getLastSegmentParent
public AtlasPath.SegmentContext getLastSegmentParent()
-
getLastSegmentParentPath
public AtlasPath getLastSegmentParentPath()
-
getParentSegmentOf
public AtlasPath.SegmentContext getParentSegmentOf(AtlasPath.SegmentContext sc)
-
hasCollection
public boolean hasCollection()
-
isIndexedCollection
public boolean isIndexedCollection()
-
setCollectionIndex
public AtlasPath.SegmentContext setCollectionIndex(int segmentIndex, Integer collectionIndex)
-
getCollectionSegments
public List<AtlasPath.SegmentContext> getCollectionSegments(boolean includeRoot)
-
setVacantCollectionIndex
public AtlasPath.SegmentContext setVacantCollectionIndex(Integer collectionIndex)
-
getSegmentPath
public String getSegmentPath(AtlasPath.SegmentContext sc)
-
getOriginalPath
public String getOriginalPath()
-
getCollectionSegmentCount
public int getCollectionSegmentCount()
-
parse
protected List<AtlasPath.SegmentContext> parse(String path)
-
createSegmentContext
protected AtlasPath.SegmentContext createSegmentContext(String expression)
-
-