Lines Matching defs:arrayNode
115 XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null);
117 if (arrayNode != null)
121 if (!arrayNode.getOptions().isArray())
125 // if (arrayOptions != null && !arrayOptions.equalArrayTypes(arrayNode.getOptions()))
135 arrayNode = XMPNodeUtils.findNode(tree, arrayPath, true, arrayOptions);
136 if (arrayNode == null)
149 doSetArrayItem(arrayNode, ARRAY_LAST_ITEM, itemValue, itemOptions, true);
173 XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null);
175 if (arrayNode == null)
180 if (arrayNode.getOptions().isArray())
182 return arrayNode.getChildrenLength();
394 XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null);
395 if (arrayNode == null)
400 Object[] result = XMPNodeUtils.chooseLocalizedText(arrayNode, genericLang, specificLang);
456 XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, true, new PropertyOptions(
460 if (arrayNode == null)
464 else if (!arrayNode.getOptions().isArrayAltText())
466 if (!arrayNode.hasChildren() && arrayNode.getOptions().isArrayAlternate())
468 arrayNode.getOptions().setArrayAltText(true);
481 for (Iterator it = arrayNode.iterateChildren(); it.hasNext();)
498 if (xdItem != null && arrayNode.getChildrenLength() > 1)
500 arrayNode.removeChild(xdItem);
501 arrayNode.addChild(1, xdItem);
507 Object[] result = XMPNodeUtils.chooseLocalizedText(arrayNode, genericLang, specificLang);
519 XMPNodeUtils.appendLangItem(arrayNode, XMPConst.X_DEFAULT, itemValue);
523 XMPNodeUtils.appendLangItem(arrayNode, specificLang, itemValue);
545 for (Iterator it = arrayNode.iterateChildren(); it.hasNext();)
581 XMPNodeUtils.appendLangItem(arrayNode, specificLang, itemValue);
592 if (xdItem != null && arrayNode.getChildrenLength() == 1)
596 XMPNodeUtils.appendLangItem(arrayNode, specificLang, itemValue);
602 XMPNodeUtils.appendLangItem(arrayNode, specificLang, itemValue);
617 if (!haveXDefault && arrayNode.getChildrenLength() == 1)
619 arrayNode, XMPConst.X_DEFAULT, itemValue);
1042 XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null);
1044 if (arrayNode != null)
1046 doSetArrayItem(arrayNode, itemIndex, itemValue, options, false);
1078 XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null);
1080 if (arrayNode != null)
1082 doSetArrayItem(arrayNode, itemIndex, itemValue, options, true);
1295 * @param arrayNode an array node
1302 private void doSetArrayItem(XMPNode arrayNode, int itemIndex, String itemValue,
1310 int maxIndex = insert ? arrayNode.getChildrenLength() + 1 : arrayNode.getChildrenLength();
1320 arrayNode.removeChild(itemIndex);
1322 arrayNode.addChild(itemIndex, itemNode);