Home | History | Annotate | Download | only in impl

Lines Matching refs:xmp

10 package com.adobe.xmp.impl;
20 import com.adobe.xmp.XMPConst;
21 import com.adobe.xmp.XMPError;
22 import com.adobe.xmp.XMPException;
23 import com.adobe.xmp.XMPMetaFactory;
24 import com.adobe.xmp.XMPSchemaRegistry;
25 import com.adobe.xmp.options.PropertyOptions;
80 * The main parsing method. The XML tree is walked through from the root node and and XMP tree
81 * is created. This is a raw parse, the normalisation of the XMP tree happens outside.
84 * @return Returns an XMP metadata object (not normalized)
89 XMPMetaImpl xmp = new XMPMetaImpl();
90 rdf_RDF(xmp, xmlRoot);
91 return xmp;
97 * syntax production and adding the appropriate structure to the XMP tree.
100 * @param xmp the xmp metadata object that is generated
104 static void rdf_RDF(XMPMetaImpl xmp, Node rdfRdfNode) throws XMPException
108 rdf_NodeElementList (xmp, xmp.getRoot(), rdfRdfNode);
122 * @param xmp the xmp metadata object that is generated
123 * @param xmpParent the parent xmp node
127 private static void rdf_NodeElementList(XMPMetaImpl xmp, XMPNode xmpParent, Node rdfRdfNode)
136 rdf_NodeElement (xmp, xmpParent, child, true);
155 * @param xmp the xmp metadata object that is generated
156 * @param xmpParent the parent xmp node
161 private static void rdf_NodeElement(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode,
176 rdf_NodeElementAttrs (xmp, xmpParent, xmlNode, isTopLevel);
177 rdf_PropertyElementList (xmp, xmpParent, xmlNode, isTopLevel);
198 * @param xmp the xmp metadata object that is generated
199 * @param xmpParent the parent xmp node
204 private static void rdf_NodeElementAttrs(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode,
240 // the XMP tree name if
242 // the XMP tree name.
259 addChildNode(xmp, xmpParent, attribute, attribute.getNodeValue(), isTopLevel);
274 * @param xmp the xmp metadata object that is generated
275 * @param xmpParent the parent xmp node
280 private static void rdf_PropertyElementList(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlParent,
296 rdf_PropertyElement(xmp, xmpParent, currChild, isTopLevel);
355 * @param xmp the xmp metadata object that is generated
356 * @param xmpParent the parent xmp node
361 private static void rdf_PropertyElement(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode,
399 rdf_EmptyPropertyElement(xmp, xmpParent, xmlNode, isTopLevel);
418 rdf_LiteralPropertyElement (xmp, xmpParent, xmlNode, isTopLevel);
422 rdf_EmptyPropertyElement (xmp, xmpParent, xmlNode, isTopLevel);
430 rdf_ParseTypeResourcePropertyElement(xmp, xmpParent, xmlNode, isTopLevel);
455 rdf_ResourcePropertyElement (xmp, xmpParent, xmlNode, isTopLevel);
460 rdf_LiteralPropertyElement (xmp, xmpParent, xmlNode, isTopLevel);
464 rdf_EmptyPropertyElement (xmp, xmpParent, xmlNode, isTopLevel);
480 * @param xmp the xmp metadata object that is generated
481 * @param xmpParent the parent xmp node
486 private static void rdf_ResourcePropertyElement(XMPMetaImpl xmp, XMPNode xmpParent,
495 XMPNode newCompound = addChildNode(xmp, xmpParent, xmlNode, "", isTopLevel);
568 rdf_NodeElement (xmp, newCompound, currChild, false);
611 * @param xmp the xmp metadata object that is generated
612 * @param xmpParent the parent xmp node
617 private static void rdf_LiteralPropertyElement(XMPMetaImpl xmp, XMPNode xmpParent,
620 XMPNode newChild = addChildNode (xmp, xmpParent, xmlNode, null, isTopLevel);
690 * @param xmp the xmp metadata object that is generated
691 * @param xmpParent the parent xmp node
696 private static void rdf_ParseTypeResourcePropertyElement(XMPMetaImpl xmp, XMPNode xmpParent,
699 XMPNode newStruct = addChildNode (xmp, xmpParent, xmlNode, "", isTopLevel);
731 rdf_PropertyElementList (xmp, newStruct, xmlNode, false);
782 * attributes. An emptyPropertyElt can represent three special cases of simple XMP properties: a
785 * An emptyPropertyElt can also represent an XMP struct whose fields are all simple and
791 * The XMP mapping for an emptyPropertyElt is a bit different from generic RDF, partly for
792 * design reasons and partly for historical reasons. The XMP mapping rules are:
807 * @param xmp the xmp metadata object that is generated
808 * @param xmpParent the parent xmp node
813 private static void rdf_EmptyPropertyElement(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode,
830 // First figure out what XMP this maps to and remember the XML node for a simple value.
910 XMPNode childNode = addChildNode(xmp, xmpParent, xmlNode, "", isTopLevel);
962 addChildNode (xmp, childNode, attribute, attribute.getNodeValue(), false);
978 * @param xmp the xmp metadata object that is generated
979 * @param xmpParent the parent xmp node
986 private static XMPNode addChildNode(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode,
1020 // Lookup the schema node, adjust the XMP parent pointer.
1022 XMPNode schemaNode = XMPNodeUtils.findSchemaNode(xmp.getRoot(), namespace,
1033 xmp.getRoot().setHasAliases(true);
1043 // Create XMP node and so some checks
1048 // Add the new child to the XMP parent node, a value node first.
1084 * @param xmpParent the parent xmp node
1108 * XMP data model. The rdf:value node must be the first child, the other
1113 * @param xmpParent the parent xmp node
1249 * Arranged to hopefully minimize the parse time for large XMP.