|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanWriter
The bean writer interface. The schema compiler expects one of these to be presented to it and calls the appropriate methods
Method Summary | |
---|---|
java.lang.String |
getDefaultAttribArrayClassName()
|
java.lang.String |
getDefaultAttribClassName()
|
java.lang.String |
getDefaultClassArrayName()
|
java.lang.String |
getDefaultClassName()
|
java.lang.String |
getExtensionMapperPackageName()
Find whether the mapper class name is present |
java.util.Map |
getModelMap()
Gets a map of models. |
void |
init(CompilerOptions options)
Initializes the writer with compiler options. |
java.lang.String |
makeFullyQualifiedClassName(QName qName)
Make the fully qualified class name for an element or named type |
void |
registerExtensionMapperPackageName(java.lang.String mapperPackageName)
Registers the mapper package name - this is relevant to languages that enforce packaging such as Java or C#. |
java.lang.String |
write(QName qname,
java.util.Map typeMap,
java.util.Map groupTypeMap,
BeanWriterMetaInfoHolder metainf,
boolean isAbstract)
Write a complex type |
java.lang.String |
write(org.apache.ws.commons.schema.XmlSchemaElement element,
java.util.Map typeMap,
java.util.Map groupTypeMap,
BeanWriterMetaInfoHolder metainf)
Write a element |
java.lang.String |
write(org.apache.ws.commons.schema.XmlSchemaSimpleType simpleType,
java.util.Map typeMap,
java.util.Map groupTypeMap,
BeanWriterMetaInfoHolder metainf)
Write a simple type |
void |
writeBatch()
Writes a wrapped class. |
void |
writeExtensionMapper(BeanWriterMetaInfoHolder[] metainfArray)
Write the extensions mapper component - this is relevant to only the OOP languages and a particular implementation may ignore this |
Method Detail |
---|
void init(CompilerOptions options) throws SchemaCompilationException
options
-
java.io.IOException
SchemaCompilationException
void writeBatch() throws SchemaCompilationException
SchemaCompilationException
java.util.Map getModelMap()
java.lang.String makeFullyQualifiedClassName(QName qName)
qName
- the qualified Name for this element or type in the schema
java.lang.String write(QName qname, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf, boolean isAbstract) throws SchemaCompilationException
complexType
- typeMap
- metainf
- fullyQualifiedClassName
- the name returned by makeFullyQualifiedClassName() or null if it wasn't called
SchemaCompilationException
java.lang.String write(org.apache.ws.commons.schema.XmlSchemaElement element, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf) throws SchemaCompilationException
element
- typeMap
- metainf
-
SchemaCompilationException
java.lang.String write(org.apache.ws.commons.schema.XmlSchemaSimpleType simpleType, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf) throws SchemaCompilationException
simpleType
- typeMap
- metainf
-
SchemaCompilationException
java.lang.String getExtensionMapperPackageName()
mapperPackageName
- void registerExtensionMapperPackageName(java.lang.String mapperPackageName)
mapperPackageName
- void writeExtensionMapper(BeanWriterMetaInfoHolder[] metainfArray) throws SchemaCompilationException
metainfArray
- namespaceToUse
-
SchemaCompilationException
java.lang.String getDefaultClassName()
java.lang.String getDefaultClassArrayName()
java.lang.String getDefaultAttribClassName()
java.lang.String getDefaultAttribArrayClassName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |