Package com.adobe.xmp.path
Class XMPPathParser
- java.lang.Object
-
- com.adobe.xmp.path.XMPPathParser
-
public class XMPPathParser extends java.lang.Object
This class provides a parser that parses a path string (using prefixes) and a prefix-to-namespace mapping to construct aXMPPath
object.
-
-
Constructor Summary
Constructors Constructor Description XMPPathParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMPPath
parse(java.lang.String path, java.util.Map<java.lang.String,java.lang.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(java.lang.String path, java.util.Map<java.lang.String,java.lang.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 prefixContractjava.lang.IllegalArgumentException
- If path or prefixContract is null.
-
-