Package com.adobe.xmp.path
Class XMPPathParser
- java.lang.Object
-
- com.adobe.xmp.path.XMPPathParser
-
-
Constructor Summary
Constructors Constructor Description XMPPathParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMPPath
parse(String path, Map<String,String> prefixContract)
Creates anXMPPath
object by parsing an XMP path String and creates one path segment for each detected segment in the path.
-
-
-
Method Detail
-
parse
public static XMPPath parse(String path, Map<String,String> prefixContract) throws XMPPathParserException
Creates anXMPPath
object 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.
-
-