Class ItemPathHolder
java.lang.Object
com.evolveum.midpoint.prism.impl.marshaller.ItemPathHolder
Holds internal (parsed) form of midPoint-style XPath-like expressions.
It is able to retrieve/export these expressions from/to various forms (text, text in XML document,
XPathSegment list, prism path specification).
Assumes relative XPath, but somehow can also work with absolute XPaths.
NOT to be used outside prism module (except for XPathTest in schema - but this is also to be resolved).
- Author:
- semancik
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemPathHolder
createForTesting
(String xpath) static ItemPathHolder
createForTesting
(String xpath, Map<String, String> namespaceMap) static ItemPathHolder
createForTesting
(Element element) boolean
int
hashCode()
boolean
isEmpty()
static UniformItemPath
parseFromString
(String path, Map<String, String> namespaces) static String
serializeWithDeclarations
(@NotNull ItemPath itemPath) static String
serializeWithForcedDeclarations
(@NotNull ItemPath itemPath) toString()
-
Method Details
-
parseFromString
-
serializeWithDeclarations
-
serializeWithForcedDeclarations
-
getXPathWithoutDeclarations
-
getXPathWithDeclarations
-
getNamespaceMap
-
toSegments
-
isEmpty
public boolean isEmpty() -
toString
-
equals
-
hashCode
public int hashCode() -
createForTesting
-
createForTesting
-
createForTesting
-