private void initializeNodeValue() { XMLMapping xmlMapping = xmlChoiceCollectionMapping.getChoiceElementMappings().get(xmlField); if(xmlMapping instanceof XMLCompositeDirectCollectionMapping) { choiceElementNodeValue = new XMLCompositeDirectCollectionMappingNodeValue((XMLCompositeDirectCollectionMapping)xmlMapping); } else { choiceElementNodeValue = new XMLCompositeCollectionMappingNodeValue((XMLCompositeCollectionMapping)xmlMapping); } }
mappingsList.addAll(getChoiceElementMappings().values()); if(isAny){ anyMapping = new XMLAnyCollectionMapping();
mappingsList.addAll(getChoiceElementMappings().values()); if(isAny){ anyMapping = new XMLAnyCollectionMapping();
private void initializeNodeValue() { XMLMapping xmlMapping = xmlChoiceCollectionMapping.getChoiceElementMappings().get(xmlField); if(xmlMapping instanceof XMLCompositeDirectCollectionMapping) { choiceElementNodeValue = new XMLCompositeDirectCollectionMappingNodeValue((XMLCompositeDirectCollectionMapping)xmlMapping); } else { choiceElementNodeValue = new XMLCompositeCollectionMappingNodeValue((XMLCompositeCollectionMapping)xmlMapping); } }
mappingsList.addAll(getChoiceElementMappings().values()); for(XMLMapping next:getChoiceElementMappingsByClass().values()) { if(!(mappingsList.contains(next))) {
public void preInitialize(AbstractSession session) throws DescriptorException { getAttributeAccessor().setIsWriteOnly(this.isWriteOnly()); getAttributeAccessor().setIsReadOnly(this.isReadOnly()); super.preInitialize(session); Iterator<XMLMapping> mappings = getChoiceElementMappings().values().iterator(); while(mappings.hasNext()){ DatabaseMapping nextMapping = (DatabaseMapping)mappings.next(); nextMapping.setAttributeName(this.getAttributeName()); if(nextMapping.getAttributeAccessor() == temporaryAccessor){ nextMapping.setAttributeAccessor(getAttributeAccessor()); } nextMapping.setDescriptor(getDescriptor()); nextMapping.preInitialize(session); } }
mappingsList.addAll(getChoiceElementMappings().values()); for(XMLMapping next:getChoiceElementMappingsByClass().values()) { if(!(mappingsList.contains(next))) {
Iterator<XMLMapping> mappings = getChoiceElementMappings().values().iterator(); while(mappings.hasNext()){ DatabaseMapping nextMapping = (DatabaseMapping)mappings.next();
Collection<XMLMapping> nestedMappings = oppositeMapping.getChoiceElementMappings().values(); for(XMLMapping next:nestedMappings) { if(next instanceof XMLCompositeCollectionMapping) {
Collection<XMLMapping> nestedMappings = oppositeMapping.getChoiceElementMappings().values(); for(XMLMapping next:nestedMappings) { if(next instanceof XMLCompositeCollectionMapping) {
} else if(xmlMapping instanceof XMLChoiceCollectionMapping) { XMLChoiceCollectionMapping xmlChoiceMapping = (XMLChoiceCollectionMapping)xmlMapping; Iterator fields = xmlChoiceMapping.getChoiceElementMappings().keySet().iterator(); XMLField firstField = (XMLField)fields.next(); XMLChoiceCollectionMappingUnmarshalNodeValue unmarshalValue = new XMLChoiceCollectionMappingUnmarshalNodeValue(xmlChoiceMapping, firstField);
for(XMLMapping next : choiceMapping.getChoiceElementMappings().values()) { if(((DatabaseMapping)next).isObjectReferenceMapping()) { this.hasReferenceMappings = true;
for(XMLMapping next : choiceMapping.getChoiceElementMappings().values()) { if(((DatabaseMapping)next).isObjectReferenceMapping()) { this.hasReferenceMappings = true;