private void findShape() { if (pict.getAnyAndAny()!=null) { for (Object o : pict.getAnyAndAny() ) { if (o instanceof JAXBElement ) { JAXBElement jb = (JAXBElement)o; if (jb.getDeclaredType().getName().equals("org.docx4j.vml.CTShapetype")) { // shapeType = (CTShapetype)jb.getValue(); } else if (jb.getDeclaredType().getName().equals("org.docx4j.vml.CTShape")) { shape = (CTShape)jb.getValue(); break; } else { log.info("Skipping " + XmlUtils.JAXBElementDebug((JAXBElement)o) ); } } else { log.error( o.getClass().getName() ); } } } }
} else { log.error("UNEXPECTED " + XmlUtils.JAXBElementDebug(jb) ); throw new Docx4JException("Expected " + declaredType.getName() + " but got " + XmlUtils.JAXBElementDebug(jb) );
} else { log.error("UNEXPECTED " + XmlUtils.JAXBElementDebug(jb)); return;
Object o = ((JaxbXmlPart)p).getJaxbElement(); if (o instanceof javax.xml.bind.JAXBElement) { sb.append(" containing JaxbElement:" + XmlUtils.JAXBElementDebug((JAXBElement)o) ); } else { sb.append(" containing:" + o.getClass().getName() ); Object o = XmlUtils.unmarshal(doc); if (o instanceof javax.xml.bind.JAXBElement) { sb.append(" containing JaxbElement:" + XmlUtils.JAXBElementDebug((JAXBElement)o) ); } else { sb.append(" containing:" + o.getClass().getName() );
private void findShape() { if (pict.getAnyAndAny()!=null) { for (Object o : pict.getAnyAndAny() ) { if (o instanceof JAXBElement ) { JAXBElement jb = (JAXBElement)o; if (jb.getDeclaredType().getName().equals("org.docx4j.vml.CTShapetype")) { // shapeType = (CTShapetype)jb.getValue(); } else if (jb.getDeclaredType().getName().equals("org.docx4j.vml.CTShape")) { shape = (CTShape)jb.getValue(); break; } else { log.info("Skipping " + XmlUtils.JAXBElementDebug((JAXBElement)o) ); } } else { log.error( o.getClass().getName() ); } } } }
} else { log.error("UNEXPECTED " + XmlUtils.JAXBElementDebug(jb) ); throw new Docx4JException("Expected " + declaredType.getName() + " but got " + XmlUtils.JAXBElementDebug(jb) );
} else { log.error("UNEXPECTED " + XmlUtils.JAXBElementDebug(jb)); return;
Object o = ((JaxbXmlPart)p).getJaxbElement(); if (o instanceof javax.xml.bind.JAXBElement) { sb.append(" containing JaxbElement:" + XmlUtils.JAXBElementDebug((JAXBElement)o) ); } else { sb.append(" containing:" + o.getClass().getName() ); Object o = XmlUtils.unmarshal(doc); if (o instanceof javax.xml.bind.JAXBElement) { sb.append(" containing JaxbElement:" + XmlUtils.JAXBElementDebug((JAXBElement)o) ); } else { sb.append(" containing:" + o.getClass().getName() );