Class ItemPathHolder
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.marshaller.ItemPathHolder
-
public final class ItemPathHolder extends Object
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
-
-
-
Method Detail
-
parseFromString
public static UniformItemPath parseFromString(String path)
-
parseFromString
public static UniformItemPath parseFromString(String path, Map<String,String> namespaces)
-
parseFromElement
public static UniformItemPath parseFromElement(Element element)
-
serializeWithDeclarations
public static String serializeWithDeclarations(@NotNull @NotNull ItemPath itemPath)
-
serializeWithForcedDeclarations
public static String serializeWithForcedDeclarations(@NotNull @NotNull ItemPath itemPath)
-
getXPathWithoutDeclarations
public String getXPathWithoutDeclarations()
-
getXPathWithDeclarations
public String getXPathWithDeclarations()
-
serializeToElement
public static Element serializeToElement(ItemPath path, QName elementQName, Document document)
-
toElement
public Element toElement(String elementNamespace, String localElementName, Document document)
-
toSegments
public List<PathHolderSegment> toSegments()
-
toItemPath
@NotNull public @NotNull UniformItemPath toItemPath()
-
isEmpty
public boolean isEmpty()
-
createForTesting
public static ItemPathHolder createForTesting(String xpath)
-
createForTesting
public static ItemPathHolder createForTesting(String xpath, Map<String,String> namespaceMap)
-
createForTesting
public static ItemPathHolder createForTesting(Element element)
-
createForTesting
public static ItemPathHolder createForTesting(QName... segmentQNames)
-
-