public class SDOTypeBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SDO_WRAPPER_SUFFIX |
Constructor and Description |
---|
SDOTypeBuilder()
Deprecated.
Replaced by
SDOTypeBuilder(HelperContext) |
SDOTypeBuilder(commonj.sdo.helper.HelperContext helperContext) |
Modifier and Type | Method and Description |
---|---|
static boolean |
addRemoveSchemaImports(java.io.Reader inputSchema,
java.io.Writer outputSchema,
java.util.Map<java.lang.String,java.lang.String> locationToNSMap,
java.util.Set<java.lang.String> deleteLocationSet)
Adds and removes schema imports/includes to a schema file.
|
static void |
addRemoveSchemaImports(java.lang.String absoluteDocName,
java.util.Map<java.lang.String,java.lang.String> locationToNSMap,
java.util.Set<java.lang.String> deleteLocationSet)
Adds and removes schema imports/includes to a schema file.
|
static boolean |
addSchemaImports(java.io.Reader inputSchema,
java.io.Writer outputSchema,
java.util.Map<java.lang.String,java.lang.String> locationToNSMap)
Adds schema imports/includes to a schema file.
|
static void |
addSchemaImports(java.lang.String absoluteDocName,
java.util.Map<java.lang.String,java.lang.String> locationToNSMap)
Adds schema imports/includes to a schema file.
|
static void |
createSchemaFile(SDOBuilderSrc src,
boolean genWrapper,
commonj.sdo.helper.HelperContext hContext,
SDOAnnotationProvider provider)
Generates XSD by dynamically-defining SDO Type.
|
static void |
createSchemaFile(SDOBuilderSrc src,
boolean genWrapper,
java.lang.String displayName,
commonj.sdo.helper.HelperContext hContext)
Deprecated.
|
static void |
createSchemaFile(SDOBuilderSrc src,
boolean genWrapper,
java.lang.String displayName,
java.io.Writer writer,
commonj.sdo.helper.HelperContext hContext)
Deprecated.
|
static void |
createSchemaFile(SDOBuilderSrc src,
boolean genWrapper,
java.io.Writer writer)
Deprecated.
|
static void |
createSchemaFile(SDOBuilderSrc src,
boolean genWrapper,
java.io.Writer writer,
commonj.sdo.helper.HelperContext hContext)
Generates XSD by dynamically-defining SDO Types.
|
static void |
createSchemaFile(SDOBuilderSrc src,
boolean genWrapper,
java.io.Writer writer,
commonj.sdo.helper.HelperContext hContext,
SDOAnnotationProvider provider)
Generates XSD by dynamically-defining SDO Types.
|
static void |
createSchemaFile(SDOBuilderSrc src,
commonj.sdo.helper.HelperContext hContext)
Deprecated.
Please call
createSchemaFile(SDOBuilderSrc, boolean, HelperContext, SDOAnnotationProvider)
to ensure that the genWrapper flag is passed. This method assumes genWrapper==false
which may not be correct. |
static void |
createSchemaFile(SDOBuilderSrc src,
commonj.sdo.helper.HelperContext hContext,
SDOAnnotationProvider provider)
Deprecated.
Please call
createSchemaFile(SDOBuilderSrc, boolean, HelperContext, SDOAnnotationProvider)
to ensure that the genWrapper flag is passed. This method assumes genWrapper==false
which may not be correct. |
static void |
createSchemaFile(SDOBuilderSrc src,
java.lang.String displayName,
commonj.sdo.helper.HelperContext hContext)
Deprecated.
|
static void |
createSchemaFile(SDOBuilderSrc src,
java.io.Writer writer)
Deprecated.
|
static void |
createSchemaFile(SDOBuilderSrc src,
java.io.Writer writer,
commonj.sdo.helper.HelperContext hContext)
Generates XSD by dynamically-defining SDO Type.
|
commonj.sdo.Type |
defineSDOTypes(SDOBuilderSrc src,
java.util.Map<commonj.sdo.Type,java.net.URL> schemaLocationMap)
Defines new SDO types dynamically using TypeHelper.
|
static boolean |
deleteSchemaFile(SDOBuilderSrc src)
Deletes the SDO schema file that was persisted to MDS.
|
static void |
updateXsdDocumentation(Document xsdDoc,
java.lang.String displayName)
Deprecated.
|
public static final java.lang.String SDO_WRAPPER_SUFFIX
@Deprecated public SDOTypeBuilder()
SDOTypeBuilder(HelperContext)
public SDOTypeBuilder(commonj.sdo.helper.HelperContext helperContext)
@Deprecated public static void createSchemaFile(SDOBuilderSrc src, commonj.sdo.helper.HelperContext hContext) throws java.lang.Exception
createSchemaFile(SDOBuilderSrc, boolean, HelperContext, SDOAnnotationProvider)
to ensure that the genWrapper flag is passed. This method assumes genWrapper==false
which may not be correct.Note: If there are already existing types with the same name/uri in the provided context, then they are not modified. See ER 9306924.
src
- the source from which to generate schemahContext
- context where the types are definedjava.lang.Exception
- an error occurs writing to MDS@Deprecated public static void createSchemaFile(SDOBuilderSrc src, java.lang.String displayName, commonj.sdo.helper.HelperContext hContext) throws java.lang.Exception
createSchemaFile(SDOBuilderSrc, HelperContext, SDOAnnotationProvider)
Note: If there are already existing types with the same name/uri in the provided context, then they are not modified. See ER 9306924.
src
- the source from which to generate schemadisplayName
- the SDO display namehContext
- context where the types are definedjava.lang.NullPointerException
- src.getSchemaLocation() returns nulljava.lang.Exception
- an error occurs writing to MDS@Deprecated public static void createSchemaFile(SDOBuilderSrc src, commonj.sdo.helper.HelperContext hContext, SDOAnnotationProvider provider) throws java.lang.Exception
createSchemaFile(SDOBuilderSrc, boolean, HelperContext, SDOAnnotationProvider)
to ensure that the genWrapper flag is passed. This method assumes genWrapper==false
which may not be correct.Note: If there are already existing types with the same name/uri in the provided context, then they are not modified. See ER 9306924.
src
- the source from which to generate schemahContext
- context where the types are definedprovider
- the SDO annotation providerjava.lang.NullPointerException
- src.getSchemaLocation() returns nulljava.lang.Exception
- an error occurs writing to MDS@Deprecated public static void createSchemaFile(SDOBuilderSrc src, boolean genWrapper, java.lang.String displayName, commonj.sdo.helper.HelperContext hContext) throws java.lang.Exception
createSchemaFile(SDOBuilderSrc, boolean, HelperContext, SDOAnnotationProvider)
Note: If there are already existing types with the same name/uri in the provided context, then they are not modified. See ER 9306924.
src
- the source from which to generate schemagenWrapper
- whether to generate an additional SDO Wrapper typedisplayName
- the SDO display namehContext
- context where the types are definedjava.lang.NullPointerException
- src.getSchemaLocation() returns nulljava.lang.Exception
- an error occurs writing to MDSpublic static void createSchemaFile(SDOBuilderSrc src, boolean genWrapper, commonj.sdo.helper.HelperContext hContext, SDOAnnotationProvider provider) throws java.lang.Exception
Note: If there are already existing types with the same name/uri in the provided context, then they are not modified. See ER 9306924.
src
- the source from which to generate schemagenWrapper
- whether to generate an additional SDO Wrapper typehContext
- context where the types are definedprovider
- the SDO annotation providerjava.lang.NullPointerException
- src.getSchemaLocation() returns nulljava.lang.Exception
- an error occurs writing to MDSpublic static boolean deleteSchemaFile(SDOBuilderSrc src) throws java.lang.Exception
src
- the source for which to delete schemajava.lang.NullPointerException
- src.getSchemaLocation() returns nulljava.lang.Exception
- an error occurs writing to MDS@Deprecated public static void createSchemaFile(SDOBuilderSrc src, java.io.Writer writer) throws java.lang.Exception
createSchemaFile(SDOBuilderSrc, Writer, HelperContext)
java.lang.Exception
public static void createSchemaFile(SDOBuilderSrc src, java.io.Writer writer, commonj.sdo.helper.HelperContext hContext) throws java.lang.Exception
Note: If there are already existing types with the same name/uri in the provided context, then they are not modified.
src
- the source from which to generate schemawriter
- a stream for writing the generated schemahContext
- context where the types are definedjava.lang.Exception
- an error occurs writing to stream@Deprecated public static void createSchemaFile(SDOBuilderSrc src, boolean genWrapper, java.io.Writer writer) throws java.lang.Exception
createSchemaFile(SDOBuilderSrc, boolean, Writer, HelperContext)
java.lang.Exception
public static void createSchemaFile(SDOBuilderSrc src, boolean genWrapper, java.io.Writer writer, commonj.sdo.helper.HelperContext hContext) throws java.lang.Exception
Note: If there are already existing types with the same name/uri in the provided context, then they are not modified.
src
- the source from which to generate schemagenWrapper
- whether to generate an additional SDO Wrapper typewriter
- a stream for writing the generated schemahContext
- context where the types are definedjava.lang.Exception
- an error occurs writing to stream@Deprecated public static void createSchemaFile(SDOBuilderSrc src, boolean genWrapper, java.lang.String displayName, java.io.Writer writer, commonj.sdo.helper.HelperContext hContext) throws java.lang.Exception
createSchemaFile(SDOBuilderSrc, boolean, Writer, HelperContext, SDOAnnotationProvider)
Note: If there are already existing types with the same name/uri in the provided context, then they are not modified.
src
- the source from which to generate schemagenWrapper
- whether to generate an additional SDO Wrapper typedisplayName
- the SDO display namewriter
- a stream for writing the generated schemahContext
- context where the types are definedjava.lang.Exception
- an error occurs writing to streampublic static void createSchemaFile(SDOBuilderSrc src, boolean genWrapper, java.io.Writer writer, commonj.sdo.helper.HelperContext hContext, SDOAnnotationProvider provider) throws java.lang.Exception
Note: If there are already existing types with the same name/uri in the provided context, then they are not modified.
src
- the source from which to generate schemagenWrapper
- whether to generate an additional SDO Wrapper typewriter
- a stream for writing the generated schemahContext
- context where the types are definedprovider
- the SDO annotation providerjava.lang.Exception
- an error occurs writing to stream@Deprecated public static void updateXsdDocumentation(Document xsdDoc, java.lang.String displayName) throws java.lang.Exception
SDOXsdDocumentHelper.updateXsdDocumentation(Document, SDOAnnotationProvider)
xsdDoc
- the enclosing XSD documentdisplayName
- the service data object display namejava.lang.Exception
- an error occurs parsing the schemapublic static boolean addSchemaImports(java.io.Reader inputSchema, java.io.Writer outputSchema, java.util.Map<java.lang.String,java.lang.String> locationToNSMap) throws java.lang.Exception
inputSchema
- a reader for an existing schema fileoutputSchema
- a writer for the updated schema filelocationToNSMap
- a mapping of schemaLocation to namespacetrue
if the output schema is written,
false
if there is no change.java.lang.Exception
- an error occurs parsing the schema or writing
to streampublic static boolean addRemoveSchemaImports(java.io.Reader inputSchema, java.io.Writer outputSchema, java.util.Map<java.lang.String,java.lang.String> locationToNSMap, java.util.Set<java.lang.String> deleteLocationSet) throws java.lang.Exception
inputSchema
- a reader for an existing schema fileoutputSchema
- a writer for the updated schema filelocationToNSMap
- a mapping of schemaLocation to namespacedeleteLocationSet
- a set of schemaLocation to removetrue
if the output schema is written,
false
if there is no change.java.lang.Exception
- an error occurs parsing the schema or writing
to streampublic static void addSchemaImports(java.lang.String absoluteDocName, java.util.Map<java.lang.String,java.lang.String> locationToNSMap) throws java.lang.Exception
absoluteDocName
- the document name for an existing schema filelocationToNSMap
- a mapping of schemaLocation to namespacejava.lang.Exception
- an error occurs reading from or writing to MDSpublic static void addRemoveSchemaImports(java.lang.String absoluteDocName, java.util.Map<java.lang.String,java.lang.String> locationToNSMap, java.util.Set<java.lang.String> deleteLocationSet) throws java.lang.Exception
absoluteDocName
- the document name for an existing schema filelocationToNSMap
- a mapping of schemaLocation to namespacedeleteLocationSet
- a set of schemaLocation to removejava.lang.Exception
- an error occurs reading from or writing to MDSpublic commonj.sdo.Type defineSDOTypes(SDOBuilderSrc src, java.util.Map<commonj.sdo.Type,java.net.URL> schemaLocationMap)
src
- the source from which to define SDO typeschemaLocationMap
- a table of defined SDO types and their
corresponding schema location URLs