/** * @return the jaxbContext * @throws WSDLException */ public JAXBContext getJaxbContext() throws CoreException { try { return SchemaJAXBContext.getInstance().getJaxbContext(); } catch (SchemaException e) { throw new CoreException(e); } }
/** * @return the jaxbContext * @throws ExtendedActivityInitializationException */ public JAXBContext getJaxbContext() throws ExtendedActivityInitializationException { try { return SchemaJAXBContext.getInstance().getJaxbContext(); } catch (SchemaException e) { throw new ExtendedActivityInitializationException(e); } } }
public void writeSchema(final Schema schemaDef, OutputStream output) throws SchemaException { if ((schemaDef != null) && (schemaDef instanceof org.ow2.easywsdl.schema.impl.SchemaImpl)) { try { org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema schemaDescriptor = ((org.ow2.easywsdl.schema.impl.SchemaImpl) schemaDef).getModel(); final JAXBElement element = new JAXBElement(new QName(Constants.SCHEMA_NAMESPACE, Constants.SCHEMA_ROOT_TAG), schemaDescriptor.getClass(), schemaDescriptor); Marshaller marshaller = SchemaJAXBContext.getInstance().getJaxbContext().createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); // NamespaceMapperImpl namespaceMapper = schemaDef.getAllNamespaces(); // marshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper", // namespaceMapper); marshaller.marshal(element, output); } catch (final JAXBException e) { throw new SchemaException("Failed to build XML binding from Agreement descriptor Java classes", e); } } } }
@SuppressWarnings("unchecked") public Document convertSchema2DOMElement(final org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema schemaDescriptor, NamespaceMapperImpl namespaceMapper) throws SchemaException { Document doc = null; try { doc = builder.newDocumentBuilder().newDocument(); // TODO : Check if it is a Thread safe method final JAXBElement element = new JAXBElement(new QName(Constants.SCHEMA_NAMESPACE, Constants.SCHEMA_ROOT_TAG), schemaDescriptor.getClass(), schemaDescriptor); Marshaller marshaller = SchemaJAXBContext.getInstance().getJaxbContext().createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); // marshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper", // namespaceMapper); marshaller.marshal(element, doc); } catch (final JAXBException ex) { throw new SchemaException("Failed to build XML binding from SchemaImpl descriptor Java classes", ex); } catch (final ParserConfigurationException ex) { throw new SchemaException("Failed to build XML binding from SchemaImpl descriptor Java classes", ex); } return doc; }
/** * @return the jaxbContext * @throws Exception */ public JAXBContext getJaxbContext() throws BPELException { try { return SchemaJAXBContext.getInstance().getJaxbContext(); } catch (SchemaException e) { throw new BPELException(e); } }
/** * @return the jaxbContext * @throws WSDLException */ public JAXBContext getJaxbContext() throws CoreException { try { return SchemaJAXBContext.getInstance().getJaxbContext(); } catch (SchemaException e) { throw new CoreException(e); } }
/** * @return the jaxbContext * @throws Exception */ public JAXBContext getJaxbContext() throws ExtendedActivityConfigurationException { try { return SchemaJAXBContext.getInstance().getJaxbContext(); } catch (SchemaException e) { throw new ExtendedActivityConfigurationException(e); } } }
/** * @return the jaxbContext * @throws ExtendedActivityInitializationException */ public JAXBContext getJaxbContext() throws ExtendedActivityInitializationException { try { return SchemaJAXBContext.getInstance().getJaxbContext(); } catch (SchemaException e) { throw new ExtendedActivityInitializationException(e); } } }
/** * @return the jaxbContext * @throws Exception */ public JAXBContext getJaxbContext() throws ExtendedActivityConfigurationException { try { return SchemaJAXBContext.getInstance().getJaxbContext(); } catch (SchemaException e) { throw new ExtendedActivityConfigurationException(e); } } }
public void loadJaxbContext() throws BPELException { try { List<Class> list = new ArrayList<Class>(); list.add(com.ebmwebsourcing.easybpel.extension.activities._package.debug.ObjectFactory.class); SchemaJAXBContext.getInstance().addOtherObjectFactory(list); this.jaxbContext = SchemaJAXBContext.getInstance().getJaxbContext(); //this.jaxbContext = JAXBContext.newInstance(new Class[]{com.ebmwebsourcing.easybpel.extension.activities._package.debug.ObjectFactory.class}); } catch (final SchemaException e) { throw new BPELException(e); } }
/** * Private object initializations */ private ExtendedActivityInitializationJAXBContext() throws ExtendedActivityInitializationException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(DEFAULTOBJECTFACTORIES); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new ExtendedActivityInitializationException(e); } }
/** * Private object initializations */ private ViperJAXBContext() throws CoreException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(defaultObjectFactoriesClasses); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new CoreException(e); } }
/** * Private object initializations */ private ExtendedActivityConfigurationJAXBContext() throws ExtendedActivityConfigurationException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(DEFAULTOBJECTFACTORIES); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new ExtendedActivityConfigurationException(e); } }
/** * Private object initializations */ private ViperJAXBContext() throws CoreException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(defaultObjectFactoriesClasses); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new CoreException(e); } }
/** * Private object initializations */ private ExtendedActivityConfigurationJAXBContext() throws ExtendedActivityConfigurationException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(DEFAULTOBJECTFACTORIES); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new ExtendedActivityConfigurationException(e); } }
/** * Private object initializations */ private ExtendedActivityInitializationJAXBContext() throws ExtendedActivityInitializationException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(DEFAULTOBJECTFACTORIES); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new ExtendedActivityInitializationException(e); } }
.getInstance().getJaxbContext().createUnmarshaller() .unmarshal(saxSource, org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema.class);
try { SchemaJAXBContext.getInstance().addOtherObjectFactory(DEFAULTOBJECTFACTORIES); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new BPELException(e);