private void addContainerValue(ContainerValue containerValue) { if (null == this.containerValues) { this.containerValues = new ArrayList(); } containerValue.setIndex(counter++); this.containerValues.add(containerValue); if(containerValue.isDefaultEmptyContainer()){ addDefaultEmptyContainerValue(containerValue); } }
private void addContainerValue(ContainerValue containerValue) { if (null == this.containerValues) { this.containerValues = new ArrayList(); } containerValue.setIndex(counter++); this.containerValues.add(containerValue); if(containerValue.isDefaultEmptyContainer()){ addDefaultEmptyContainerValue(containerValue); } }
containerIndex = ((ContainerValue)mappingNodeValue).getIndex(); }else{ ((ContainerValue)mappingNodeValue).setIndex(containerIndex); ((ContainerValue)unmarshalValue.getChoiceElementNodeValue()).setIndex(unmarshalValue.getIndex()); fieldToNodeValues.put(firstField, unmarshalValue); addChild(firstField.getXPathFragment(), unmarshalValue, xmlDescriptor.getNamespaceResolver()); nodeValue.setContainerNodeValue(unmarshalValue); nodeValue.setIndex(unmarshalValue.getIndex()); ((ContainerValue)nodeValue.getChoiceElementNodeValue()).setIndex(unmarshalValue.getIndex()); addChild(nextField.getXPathFragment(), nodeValue, xmlDescriptor.getNamespaceResolver()); fieldToNodeValues.put(nextField, nodeValue); nodeValue.setContainerNodeValue(unmarshalValue); nodeValue.setIndex(unmarshalValue.getIndex()); ((ContainerValue)nodeValue.getChoiceElementNodeValue()).setIndex(unmarshalValue.getIndex()); addChild(null, nodeValue, xmlDescriptor.getNamespaceResolver()); fieldToNodeValues.put(null, nodeValue);
containerIndex = ((ContainerValue)mappingNodeValue).getIndex(); }else{ ((ContainerValue)mappingNodeValue).setIndex(containerIndex); ((ContainerValue)unmarshalValue.getChoiceElementNodeValue()).setIndex(unmarshalValue.getIndex()); fieldToNodeValues.put(firstField, unmarshalValue); addChild(firstField.getXPathFragment(), unmarshalValue, xmlDescriptor.getNamespaceResolver()); nodeValue.setContainerNodeValue(unmarshalValue); nodeValue.setIndex(unmarshalValue.getIndex()); ((ContainerValue)nodeValue.getChoiceElementNodeValue()).setIndex(unmarshalValue.getIndex()); addChild(nextField.getXPathFragment(), nodeValue, xmlDescriptor.getNamespaceResolver()); fieldToNodeValues.put(nextField, nodeValue); nodeValue.setContainerNodeValue(unmarshalValue); nodeValue.setIndex(unmarshalValue.getIndex()); ((ContainerValue)nodeValue.getChoiceElementNodeValue()).setIndex(unmarshalValue.getIndex()); addChild(null, nodeValue, xmlDescriptor.getNamespaceResolver()); fieldToNodeValues.put(null, nodeValue);