@Override public Object updateXML(Object obj, Object xmlNode) { if (null == obj || null == xmlNode) { throw new IllegalArgumentException(); } if (obj instanceof JAXBElement && !(obj instanceof WrappedValue)) { obj = ((JAXBElement) obj).getValue(); } xmlBinder.updateXML(obj, ((Element) xmlNode)); return xmlNode; }
public Object updateXML(Object obj, Object xmlNode) { if (null == obj || null == xmlNode) { throw new IllegalArgumentException(); } if (obj instanceof JAXBElement && !(obj instanceof WrappedValue)) { obj = ((JAXBElement) obj).getValue(); } xmlBinder.updateXML(obj, ((Element) xmlNode)); return xmlNode; }
/** * This method will update the cached XML node for the provided object. If no node exists for this * object, then no operation is performed. * @param obj */ public void updateXML(Object obj) { if(obj instanceof Root) { obj = ((Root)obj).getObject(); } Node associatedNode = documentPreservationPolicy.getNodeForObject(obj); if(associatedNode == null) { return; } updateXML(obj, associatedNode); }
/** * This method will update the cached XML node for the provided object. If no node exists for this * object, then no operation is performed. * @param obj */ public void updateXML(Object obj) { if(obj instanceof Root) { obj = ((Root)obj).getObject(); } Node associatedNode = documentPreservationPolicy.getNodeForObject(obj); if(associatedNode == null) { return; } updateXML(obj, associatedNode); }
/** * This method will update the cached XML node for the provided object. If no node exists for this * object, then no operation is performed. * @param obj */ public void updateXML(Object obj) { if(obj instanceof XMLRoot) { obj = ((XMLRoot)obj).getObject(); } Node associatedNode = documentPreservationPolicy.getNodeForObject(obj); if(associatedNode == null) { return; } updateXML(obj, associatedNode); }