Package ca.uhn.fhir.parser.path
Class EncodeContextPath
- java.lang.Object
-
- ca.uhn.fhir.parser.path.EncodeContextPath
-
- Direct Known Subclasses:
BaseParser.EncodeContext
public class EncodeContextPath extends Object
-
-
Constructor Summary
Constructors Constructor Description EncodeContextPath()EncodeContextPath(String thePath)EncodeContextPath(List<EncodeContextPathElement> thePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalsPath(String thePath)EncodeContextPathgetCurrentResourcePath()StringgetLeafElementName()StringgetLeafResourceName()StringgetLeafResourcePathFirstField()List<EncodeContextPathElement>getPath()ArrayList<EncodeContextPathElement>getResourcePath()voidpopPath()Remove the element at the end of the pathvoidpushPath(String thePathElement, boolean theResource)Add an element at the end of the pathbooleanstartsWith(EncodeContextPath theCurrentResourcePath, boolean theAllowSymmmetrical)Tests and returns whether this path starts with theCurrentResourcePathStringtoString()
-
-
-
Constructor Detail
-
EncodeContextPath
public EncodeContextPath()
-
EncodeContextPath
public EncodeContextPath(String thePath)
-
EncodeContextPath
public EncodeContextPath(List<EncodeContextPathElement> thePath)
-
-
Method Detail
-
getPath
public List<EncodeContextPathElement> getPath()
-
getCurrentResourcePath
public EncodeContextPath getCurrentResourcePath()
-
pushPath
public void pushPath(String thePathElement, boolean theResource)
Add an element at the end of the path
-
popPath
public void popPath()
Remove the element at the end of the path
-
getResourcePath
public ArrayList<EncodeContextPathElement> getResourcePath()
-
getLeafElementName
public String getLeafElementName()
-
getLeafResourceName
public String getLeafResourceName()
-
getLeafResourcePathFirstField
public String getLeafResourcePathFirstField()
-
startsWith
public boolean startsWith(EncodeContextPath theCurrentResourcePath, boolean theAllowSymmmetrical)
Tests and returns whether this path starts with theCurrentResourcePath- Parameters:
theCurrentResourcePath- The path to testtheAllowSymmmetrical- Iftrue, this method will return true if theCurrentResourcePath starts with this path as well as testing whether this path starts with theCurrentResourcePath
-
equalsPath
public boolean equalsPath(String thePath)
-
-