Package com.adobe.xmp.path
Class XMPPathParser
java.lang.Object
com.adobe.xmp.path.XMPPathParser
This class provides a parser that parses a path string (using prefixes) and a
prefix-to-namespace mapping to construct a
XMPPath object.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
XMPPathParser
public XMPPathParser()
-
-
Method Details
-
parse
public static XMPPath parse(String path, Map<String, String> prefixContract) throws XMPPathParserExceptionCreates anXMPPathobject by parsing an XMP path String and creates one path segment for each detected segment in the path.- Parameters:
path- Path string to parseprefixContract- A Map that contains the mapping between Namespaces and their prefixes. This must be provided to interpret the path correctly.- Throws:
XMPPathParserException- If the path has an invalid format or a prefix is found that is not defined in the prefixContractIllegalArgumentException- If path or prefixContract is null.
-