Searched refs:arrayNode (Results 1 – 5 of 5) sorted by relevance
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | XMPNodeUtils.java | 561 private static int findIndexedItem(XMPNode arrayNode, String segment, boolean createNodes) in findIndexedItem() argument 581 if (createNodes && index == arrayNode.getChildrenLength() + 1) in findIndexedItem() 586 arrayNode.addChild(newItem); in findIndexedItem() 604 private static int lookupFieldSelector(XMPNode arrayNode, String fieldName, String fieldValue) in lookupFieldSelector() argument 609 for (int index = 1; index <= arrayNode.getChildrenLength() && result < 0; index++) in lookupFieldSelector() 611 XMPNode currItem = arrayNode.getChild(index); in lookupFieldSelector() 652 private static int lookupQualSelector(XMPNode arrayNode, String qualName, in lookupQualSelector() argument 658 int index = XMPNodeUtils.lookupLanguageItem(arrayNode, qualValue); in lookupQualSelector() 664 arrayNode.addChild(1, langNode); in lookupQualSelector() 674 for (int index = 1; index < arrayNode.getChildrenLength(); index++) in lookupQualSelector() [all …]
|
D | XMPMetaImpl.java | 115 XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null); in appendArrayItem() local 117 if (arrayNode != null) in appendArrayItem() 121 if (!arrayNode.getOptions().isArray()) in appendArrayItem() 135 arrayNode = XMPNodeUtils.findNode(tree, arrayPath, true, arrayOptions); in appendArrayItem() 136 if (arrayNode == null) in appendArrayItem() 149 doSetArrayItem(arrayNode, ARRAY_LAST_ITEM, itemValue, itemOptions, true); in appendArrayItem() 173 XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null); in countArrayItems() local 175 if (arrayNode == null) in countArrayItems() 180 if (arrayNode.getOptions().isArray()) in countArrayItems() 182 return arrayNode.getChildrenLength(); in countArrayItems() [all …]
|
D | XMPUtilsImpl.java | 99 XMPNode arrayNode = null; in catenateArrayItems() local 105 arrayNode = XMPNodeUtils.findNode(xmpImpl.getRoot(), arrayPath, false, null); in catenateArrayItems() 106 if (arrayNode == null) in catenateArrayItems() 110 else if (!arrayNode.getOptions().isArray() || arrayNode.getOptions().isArrayAlternate()) in catenateArrayItems() 126 for (Iterator it = arrayNode.iterateChildren(); it.hasNext();) in catenateArrayItems() 183 XMPNode arrayNode = separateFindCreateArray(schemaNS, arrayName, arrayOptions, xmpImpl); in separateArrayItems() local 315 for (int oldChild = 1; oldChild <= arrayNode.getChildrenLength(); oldChild++) in separateArrayItems() 317 if (itemValue.equals(arrayNode.getChild(oldChild).getValue())) in separateArrayItems() 328 arrayNode.addChild(newItem); in separateArrayItems() 355 XMPNode arrayNode = XMPNodeUtils.findNode(xmp.getRoot(), arrayPath, false, null); in separateFindCreateArray() local [all …]
|
D | XMPNormalizer.java | 145 XMPNode arrayNode = XMPNodeUtils.findChildNode(currSchema, "exif:UserComment", in touchUpDataModel() local 147 if (arrayNode != null) in touchUpDataModel() 149 repairAltText(arrayNode); in touchUpDataModel() 165 XMPNode arrayNode = XMPNodeUtils.findChildNode(currSchema, "xmpRights:UsageTerms", in touchUpDataModel() local 167 if (arrayNode != null) in touchUpDataModel() 169 repairAltText(arrayNode); in touchUpDataModel() 242 private static void repairAltText(XMPNode arrayNode) throws XMPException in repairAltText() argument 244 if (arrayNode == null || in repairAltText() 245 !arrayNode.getOptions().isArray()) in repairAltText() 252 arrayNode.getOptions().setArrayOrdered(true).setArrayAlternate(true).setArrayAltText(true); in repairAltText() [all …]
|
D | XMPSerializerRDF.java | 1143 private void emitRDFArrayTag(XMPNode arrayNode, boolean isStartTag, int indent) in emitRDFArrayTag() argument 1146 if (isStartTag || arrayNode.hasChildren()) in emitRDFArrayTag() 1151 if (arrayNode.getOptions().isArrayAlternate()) in emitRDFArrayTag() 1155 else if (arrayNode.getOptions().isArrayOrdered()) in emitRDFArrayTag() 1164 if (isStartTag && !arrayNode.hasChildren()) in emitRDFArrayTag()
|