public void setAttributeValueNull(ContainerValue containerValue) { this.unmarshalContext.setAttributeValue(this, null, containerValue.getMapping()); int containerIndex = containerValue.getIndex(); populatedContainerValues.remove(containerValue); containerInstances[containerIndex] = null; }
public void setAttributeValueNull(ContainerValue containerValue) { this.unmarshalContext.setAttributeValue(this, null, containerValue.getMapping()); int containerIndex = containerValue.getIndex(); populatedContainerValues.remove(containerValue); containerInstances[containerIndex] = null; }
public void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value, Object collection) { currentSetting.setMapping(containerValue.getMapping()); currentSetting.setObject(unmarshalRecord.getCurrentObject()); currentSetting.addValue(value, true, collection); }
public void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value, Object collection) { currentSetting.setMapping((CoreMapping) containerValue.getMapping()); currentSetting.setObject(unmarshalRecord.getCurrentObject()); currentSetting.addValue(value, true, collection); }
public void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value, Object collection) { currentSetting.setMapping((CoreMapping) containerValue.getMapping()); currentSetting.setObject(unmarshalRecord.getCurrentObject()); currentSetting.addValue(value, true, collection); }
public Object getContainerInstance(ContainerValue c, boolean createContainerIfNecessary) { Object containerInstance = containerInstances[c.getIndex()]; if (containerInstance == null) { Mapping mapping = c.getMapping(); //don't attempt to do a get on a readOnly property. if(c.getReuseContainer() && !(mapping.isReadOnly())) { containerInstance = mapping.getAttributeValueFromObject(currentObject); } if(null == containerInstance && createContainerIfNecessary) { containerInstance = c.getContainerInstance(); } containerInstances[c.getIndex()] = containerInstance; populatedContainerValues.add(c); if(defaultEmptyContainerValues != null){ defaultEmptyContainerValues.remove(c); } } return containerInstance; }
public Object getContainerInstance(ContainerValue c, boolean createContainerIfNecessary) { Object containerInstance = containerInstances[c.getIndex()]; if (containerInstance == null) { Mapping mapping = c.getMapping(); //don't attempt to do a get on a readOnly property. if(c.getReuseContainer() && !(mapping.isReadOnly())) { containerInstance = mapping.getAttributeValueFromObject(currentObject); } if(null == containerInstance && createContainerIfNecessary) { containerInstance = c.getContainerInstance(); } containerInstances[c.getIndex()] = containerInstance; populatedContainerValues.add(c); if(defaultEmptyContainerValues != null){ defaultEmptyContainerValues.remove(c); } } return containerInstance; }
Object containerInstance = null; if(containerValue.getReuseContainer()) { containerInstance = containerValue.getMapping().getAttributeAccessor().getAttributeValueFromObject(object);