public interface TypeMappingBuilder
TypeMappingBuilder
provides a mechansim to build and
populate a TypeMapping
.
It represents a compile-time construct which need not be present
during runtime use of a TypeMapping
.
TypeMapping
Modifier and Type | Method and Description |
---|---|
void |
addMapping(java.lang.Class clazz)
create a TypeMappingEntry for this class by generating a
corresponding xsd type using the binding configuration and class
context information.
|
void |
addMapping(java.lang.Class[] classes)
effecient way to add multiple classes.
|
void |
addMapping(java.lang.Class[] classes,
XMLName[] element_names)
effecient way to add multiple classes.
|
void |
addMapping(java.lang.Class clazz,
ClassContext ctx)
create a TypeMappingEntry for this class by generating a
corresponding xsd type using the binding configuration and class
context information.
|
void |
addMapping(XMLName xml_type)
create a TypeMappingEntry for this class by generating a
corresponding java class using the binding configuration.
|
void |
addMapping(XMLName xml_type,
SchemaContext ctx)
create a TypeMappingEntry for this class by generating a
corresponding java class using the binding configuration.
|
void |
addMapping(XMLName xml_name,
XMLInputStream reader)
create a TypeMappingEntry for this class by generating a
corresponding java class using the binding configuration and
schema context.
|
void |
addMapping(XMLName xml_name,
XMLInputStream reader,
SchemaContext ctx)
create a TypeMappingEntry for this class by generating a
corresponding java class using the binding configuration and
schema context.
|
void |
addWrappedSchemaType(java.lang.Class[] classes,
java.lang.String[] element_names,
XMLName type_name)
Create a schema type that wraps the xml types corresponding to
the passed-in java types.
|
void |
addWrappedSchemaType(java.lang.Class[] classes,
java.lang.String[] element_names,
XMLName[] xml_names,
XMLName type_name) |
void |
fillMappings()
create serializers and deserialzers, in whatever manner is
appropriate for this style, for each mapping added through the
addMapping methods in this object. |
BindingConfiguration |
getBindingConfiguration()
Get the
BindingConfiguration for this builder. |
java.util.Iterator |
getReferredClasses()
get all classes referred to in the java introspection process
|
TypeMapping |
getTypeMapping()
Finalize and return the TypeMapping for this class by generating
appropriate Serializers and Deserializers for those
TypeMappingEntry entries that have been added. |
boolean |
isEmpty()
is this builder's type mapping empty?
|
void |
processSchemas(XMLInputStream reader,
java.lang.String origin_url)
generate the corresponding java classes, serializers, and
deserializers for a group of schemas, mapping schema namespace
URI's to java package names.
|
void |
processSchemaTypes(XMLInputStream reader,
java.lang.String origin_url,
TypeDescriptor[] types)
generate the corresponding java classes, serializers, and
deserializers for a the given types found in the passed in xml
input stream, mapping schema namespace URI's to java package
names.
|
void |
registerSchema(XMLInputStream reader)
register a schema for a possible future mapping.
|
void |
setBindingConfiguration(BindingConfiguration c)
Set the
BindingConfiguration for this builder. |
void |
setTypeMapping(TypeMapping mapping) |
void |
writeGeneratedSchemas(XMLOutputStream stream)
Write out the schemas generated by calls to
addMapping(XMLName,...) to the provided stream. |
void |
writeRegisteredSchemas(XMLOutputStream stream)
Write out the schemas generated by calls to
registerSchema() to the provided stream. |
void setBindingConfiguration(BindingConfiguration c)
BindingConfiguration
for this builder.BindingConfiguration
BindingConfiguration getBindingConfiguration()
BindingConfiguration
for this builder.BindingConfiguration
void addMapping(java.lang.Class clazz, ClassContext ctx) throws BindingException
The serialzer
and deserialzer
portions
of the mapping are not created by this method. That is done when
getTypeMapping()
is called.
BindingException
TypeMappingBuilder.getTypeMapping()
void addMapping(java.lang.Class clazz) throws BindingException
BindingException
void addMapping(java.lang.Class[] classes) throws BindingException
BindingException
TypeMappingBuilder.addMapping(Class)
void addMapping(java.lang.Class[] classes, XMLName[] element_names) throws BindingException
BindingException
TypeMappingBuilder.addMapping(Class)
void addMapping(XMLName xml_name, XMLInputStream reader, SchemaContext ctx) throws BindingException
The serialzer
and deserialzer
portions
of the mapping are not created by this method.
fillMappings
must be called to do that.
xml_name
- The name of the Schema Typereader
- The XML stream containing the Schema to deserializectx
- Context information about the SchemaBindingException
void addMapping(XMLName xml_name, XMLInputStream reader) throws BindingException
xml_name
- The name of the Schema Typereader
- The XML stream containing the Schema to deserializeBindingException
void addMapping(XMLName xml_type) throws BindingException
xml_type
- The name of the type to mapBindingException
TypeMappingBuilder.registerSchema(weblogic.xml.stream.XMLInputStream)
void addMapping(XMLName xml_type, SchemaContext ctx) throws BindingException
xml_type
- The name of the type to mapctx
- context infoBindingException
TypeMappingBuilder.registerSchema(weblogic.xml.stream.XMLInputStream)
void registerSchema(XMLInputStream reader) throws BindingException
BindingException
void processSchemas(XMLInputStream reader, java.lang.String origin_url) throws BindingException
BindingException
void processSchemaTypes(XMLInputStream reader, java.lang.String origin_url, TypeDescriptor[] types) throws BindingException
BindingException
TypeMapping getTypeMapping() throws BindingException
TypeMappingEntry
entries that have been added.BindingException
void setTypeMapping(TypeMapping mapping)
void fillMappings() throws BindingException
addMapping
methods in this object.BindingException
void addWrappedSchemaType(java.lang.Class[] classes, java.lang.String[] element_names, XMLName type_name) throws BindingException
classes
- list of classesclasses
- list of element names -- parallel to classestype_name
- name of the complexTypeBindingException
void addWrappedSchemaType(java.lang.Class[] classes, java.lang.String[] element_names, XMLName[] xml_names, XMLName type_name) throws BindingException
BindingException
void writeGeneratedSchemas(XMLOutputStream stream) throws BindingException
addMapping(XMLName,...)
to the provided stream.BindingException
void writeRegisteredSchemas(XMLOutputStream stream) throws BindingException
registerSchema()
to the provided stream.BindingException
java.util.Iterator getReferredClasses()
boolean isEmpty()