Package org.ehrbase.aql.dto.path
Class AqlPath
- java.lang.Object
-
- org.ehrbase.aql.dto.path.AqlPath
-
- All Implemented Interfaces:
Serializable
public final class AqlPath extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAqlPath.AqlNodestatic classAqlPath.OtherPredicatesFormat
-
Field Summary
Fields Modifier and Type Field Description static AqlPathHelper.PrefixMatcherATTRIBUTE_SEPARATORstatic AqlPathEMPTY_PATHstatic StringNAME_VALUE_KEYstatic AqlPathHelper.PrefixMatcherPATH_SEPARATORstatic AqlPathROOT_PATH
-
Method Summary
-
-
-
Field Detail
-
EMPTY_PATH
public static final AqlPath EMPTY_PATH
-
ROOT_PATH
public static final AqlPath ROOT_PATH
-
NAME_VALUE_KEY
public static final String NAME_VALUE_KEY
- See Also:
- Constant Field Values
-
ATTRIBUTE_SEPARATOR
public static final AqlPathHelper.PrefixMatcher ATTRIBUTE_SEPARATOR
-
PATH_SEPARATOR
public static final AqlPathHelper.PrefixMatcher PATH_SEPARATOR
-
-
Method Detail
-
getAttributeName
public String getAttributeName()
-
getNodeCount
public int getNodeCount()
-
getNode
public AqlPath.AqlNode getNode(int pos)
-
getNodes
public List<AqlPath.AqlNode> getNodes()
-
getBaseNode
public AqlPath.AqlNode getBaseNode()
-
getLastNode
public AqlPath.AqlNode getLastNode()
-
isEmpty
public boolean isEmpty()
-
hasPath
public boolean hasPath()
-
startsWith
public boolean startsWith(AqlPath aqlPath)
-
removeStart
public AqlPath removeStart(int nodeCount)
-
getEnd
public AqlPath getEnd(int nodeCount)
-
addEnd
public AqlPath addEnd(AqlPath.AqlNode... nodesToAdd)
-
removeEnd
public AqlPath removeEnd(int nodeCount)
-
replaceNode
public AqlPath replaceNode(int pos, AqlPath.AqlNode newNode)
-
replaceLastNode
public AqlPath replaceLastNode(UnaryOperator<AqlPath.AqlNode> op)
-
getPath
public String getPath()
-
format
public String format(boolean withOtherPredicates)
-
enableFormatCache
public AqlPath enableFormatCache()
-
format
public String format(AqlPath.OtherPredicatesFormat otherPredicatesFormat, boolean includeAttributeName)
-
equals
public boolean equals(Object o, boolean withOtherPredicates)
-
-