private NodeValue getNodeValueForMapping(Mapping xmlMapping) { if(xmlMapping instanceof BinaryDataMapping){ return new XMLBinaryDataMappingNodeValue((BinaryDataMapping)xmlMapping); } else if(xmlMapping instanceof DirectMapping) { return new XMLDirectMappingNodeValue((DirectMapping)xmlMapping); } else if(xmlMapping instanceof ObjectReferenceMapping) { return new XMLObjectReferenceMappingNodeValue((ObjectReferenceMapping)xmlMapping, xmlField); } else { return new XMLCompositeObjectMappingNodeValue((CompositeObjectMapping)xmlMapping); } } public void setNullCapableNodeValue(XMLChoiceObjectMappingNodeValue nodeValue) {
private NodeValue getNodeValueForMapping(Mapping xmlMapping) { if(xmlMapping instanceof BinaryDataMapping){ return new XMLBinaryDataMappingNodeValue((BinaryDataMapping)xmlMapping); } else if(xmlMapping instanceof DirectMapping) { return new XMLDirectMappingNodeValue((DirectMapping)xmlMapping); } else if(xmlMapping instanceof ObjectReferenceMapping) { return new XMLObjectReferenceMappingNodeValue((ObjectReferenceMapping)xmlMapping, xmlField); } else { return new XMLCompositeObjectMappingNodeValue((CompositeObjectMapping)xmlMapping); } } public void setNullCapableNodeValue(XMLChoiceObjectMappingNodeValue nodeValue) {
while (fieldIt.hasNext()) { XMLField xmlFld = (XMLField)fieldIt.next(); mappingNodeValue = new XMLObjectReferenceMappingNodeValue(xmlORMapping, xmlFld); if (mappingNodeValue.isContainerValue()) { addContainerValue((ContainerValue)mappingNodeValue);
while (fieldIt.hasNext()) { Field xmlFld = (Field)fieldIt.next(); mappingNodeValue = new XMLObjectReferenceMappingNodeValue(xmlORMapping, xmlFld); addChild(xmlFld.getXPathFragment(), mappingNodeValue, xmlDescriptor.getNamespaceResolver());
while (fieldIt.hasNext()) { Field xmlFld = (Field)fieldIt.next(); mappingNodeValue = new XMLObjectReferenceMappingNodeValue(xmlORMapping, xmlFld); if (mappingNodeValue.isContainerValue()) { addContainerValue((ContainerValue)mappingNodeValue);