public final class XsdTypeImporter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ImportResult |
importFromStream(java.io.InputStream stream_,
boolean visible_,
ServiceContext sc_)
Creates datatypes in the system based on the XML Schema type definitions contained
in an input stream.
|
public static ImportResult importFromStream(java.io.InputStream stream_, boolean visible_, ServiceContext sc_) throws java.io.IOException, ImportException, InvalidTypeException
stream_
- An input stream representation of an XML Schemasc_
- The service context to use when importing typesvisible_
- Whether the types referenced in the schema should be made visibleImportResult
objectInvalidTypeException
- if an invalid type is encountered during the importjava.io.IOException
- if there is a problem with the input streamImportException
- if any other error occursjava.lang.IllegalArgumentException
- if both visible_ and temporary_ are true. A type
cannot be both visible and temporary.Copyright © 2003-2023 Appian Corporation. All Rights Reserved.