/** * * @param model * @param parent */ public ElementImpl( final org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Element model, final AbstractSchemaElementImpl parent) { super(model, parent); findType(); //findReferencedElementIfExist(); }
/** * Private object initializations */ private SchemaJAXBContext() throws SchemaException { //SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); this.addOtherObjectFactory(getDefaultObjectFactories()); }
/** * Create a new instance of a SchemaWriterImpl. * @throws SchemaException */ @Override public SchemaWriter newSchemaWriter() throws SchemaException { return new org.ow2.easywsdl.schema.impl.SchemaWriterImpl(); }
/** * Private object initializations */ private ExtendedActivityInitializationJAXBContext() throws ExtendedActivityInitializationException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(DEFAULTOBJECTFACTORIES); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new ExtendedActivityInitializationException(e); } }
/** * @return the jaxbContext * @throws WSDLException */ public JAXBContext getJaxbContext() throws CoreException { try { return SchemaJAXBContext.getInstance().getJaxbContext(); } catch (SchemaException e) { throw new CoreException(e); } }
public SchemaWriterImpl() throws SchemaException { // just to verify everything is ok SchemaJAXBContext.getInstance(); builder = DocumentBuilderFactory.newInstance(); builder.setNamespaceAware(true); }
public SchemaImpl() throws SchemaException { super("./"); this.reader = new SchemaReaderImpl(); this.model = new org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema(); this.getAllNamespaces().addNamespace("xsd", Constants.SCHEMA_NAMESPACE); }
public Import createImport() throws SchemaException { try { return new ImportImpl(new org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Import(), this, null, this.getDocumentURI(), this.reader); } catch (final URISyntaxException e) { // No URI is already set, so this exception cannot occur throw new SchemaException(e); } }
/** * Create a new instance of a Definition, with an instance of a * PopulatedExtensionRegistry as its ExtensionRegistry. * @throws SchemaException */ @Override public Schema newSchema() throws SchemaException { return new SchemaImpl(); }
/** * Create a new instance of a SchemaReaderImpl. * @throws SchemaException */ @Override public SchemaReader newSchemaReader() throws SchemaException { return new org.ow2.easywsdl.schema.impl.SchemaReaderImpl(); }
public Include createInclude() throws SchemaException { try { return new IncludeImpl(new org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Include(), this, null, this.getDocumentURI(), this.reader); } catch (final URISyntaxException e) { // No URI is already set, so this exception cannot occur throw new SchemaException(e); } }
public Redefine createRedefine() throws SchemaException { try { return new RedefineImpl(new org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Redefine(), this, null, this.getDocumentURI(), this.reader); } catch (final URISyntaxException e) { // No URI is already set, so this exception cannot occur throw new SchemaException(e); } }
public ExtensionImpl( final org.ow2.easywsdl.schema.org.w3._2001.xmlschema.ExtensionType model, final AbstractSchemaElementImpl parent) { super(model, parent); // get the base if(this.model.getBase() != null) { this.baseType = (Type) this.getSchema().getType(this.model.getBase()); } // get the sequence if(this.model.getSequence() != null) { this.sequence = new SequenceImpl(this.model.getSequence(), this); } }
protected Schema readSchema(final InputSource source, Map<URI, AbsItfSchema> imports) throws SchemaException, MalformedURLException, URISyntaxException { return readSchema(source, imports, true); }
/** * Create a new instance of a SchemaReaderImpl. * @throws SchemaException */ @Override public SchemaReader newSchemaReader(final Map<FeatureConstants, Object> features) throws SchemaException { final SchemaReader reader = this.newSchemaReader(); ((SchemaReaderImpl) reader).setFeatures(features); return reader; }
public ComplexContentImpl( final org.ow2.easywsdl.schema.org.w3._2001.xmlschema.ComplexContent model, final AbstractSchemaElementImpl parent) { super(model, parent); // get the extension if(this.model.getExtension() != null) { this.extension = new ExtensionImpl(this.model.getExtension(), this); } }
/** * Private object initializations */ private ViperJAXBContext() throws CoreException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(defaultObjectFactoriesClasses); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final 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 SchemaReaderImpl() throws SchemaException { // just to validate that it works SchemaJAXBContext.getInstance(); this.features.put(FeatureConstants.VERBOSE, false); this.features.put(FeatureConstants.IMPORT_DOCUMENTS, true); }
/** * Private object initializations */ private ViperJAXBContext() throws CoreException { try { SchemaJAXBContext.getInstance().addOtherObjectFactory(defaultObjectFactoriesClasses); SchemaJAXBContext.getInstance().getJaxbContext(); } catch (final SchemaException e) { throw new CoreException(e); } }