Posted by David on Thu 17th May 13:05
download | new post
- DataSyncPacket dsp = null;
- String uid = null;
- if (this.cdoInstance.getIdentifier() == null) {
- // New CDO make a "Create" packet.
- uid = this.cdoPlugin.getCdoClient().getCDOCache().getNewUID(
- this.cdoInstance);
- uid = uid.replaceAll(":", "");
- // Change any blank elements to spaces
- // (to prevent XSmiles from removing the element when it reads the Instance)
- CDODLCollection dlColl = CDOClient.getInstance().getCDODLCollection();
- CDODL dl = dlColl.getCDODLbyUUID(tempUUID);
- javax.xml.namespace.QName rootName = new javax.xml.namespace.QName(dl.getNameSpace(), dl.getRootElement(), dl.getPrefix());
- Document instanceXML = null;
- try {
- instanceXML = InstanceUtils.toXML(this.cdoInstance, rootName);
- } catch (ParserConfigurationException e2) {
- // TODO Auto-generated catch block
- e2.printStackTrace();
- } catch (InvalidPropertyException e3) {
- //org.mitre.cdo.cdolib.method.MethodConstants.walk()
- }
- fixEmptyLeaves(instanceXML, instanceXML);
- try {
- this.cdoInstance = InstanceUtils.parseInstance(instanceXML.getDocumentElement());
- } catch (SAXException e2) {
- // TODO Auto-generated catch block
- e2.printStackTrace();
- }
- try {
- dsp = ConversionUtils.newCreatePacket(this.cdoInstance);
- } catch (IllegalChildException e1) {
- e1.printStackTrace();
- + e1.getParent().getClass().getName());
- + e1.getChild().getClass().getName());
- }
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.