|
||||||||||
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 | |
---|---|
String |
getDefaultAttribArrayClassName()
|
String |
getDefaultAttribClassName()
|
String |
getDefaultClassArrayName()
|
String |
getDefaultClassName()
|
String |
getExtensionMapperPackageName()
Find whether the mapper class name is present |
Map |
getModelMap()
Gets a map of models. |
void |
init(CompilerOptions options)
Initializes the writer with compiler options. |
String |
makeFullyQualifiedClassName(QName qName)
Make the fully qualified class name for an element or named type |
void |
registerExtensionMapperPackageName(String mapperPackageName)
Registers the mapper package name - this is relevant to languages that enforce packaging such as Java or C#. |
String |
write(QName qname,
Map<QName,String> typeMap,
Map<QName,String> groupTypeMap,
BeanWriterMetaInfoHolder metainf,
boolean isAbstract)
Write a complex type |
String |
write(org.apache.ws.commons.schema.XmlSchemaElement element,
Map<QName,String> typeMap,
Map<QName,String> groupTypeMap,
BeanWriterMetaInfoHolder metainf)
Write a element |
String |
write(org.apache.ws.commons.schema.XmlSchemaSimpleType simpleType,
Map<QName,String> typeMap,
Map<QName,String> 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
-
IOException
SchemaCompilationException
void writeBatch() throws SchemaCompilationException
SchemaCompilationException
Map getModelMap()
String makeFullyQualifiedClassName(QName qName)
qName
- the qualified Name for this element or type in the schema
String write(QName qname, Map<QName,String> typeMap, Map<QName,String> groupTypeMap, BeanWriterMetaInfoHolder metainf, boolean isAbstract) throws SchemaCompilationException
complexType
- typeMap
- metainf
- fullyQualifiedClassName
- the name returned by makeFullyQualifiedClassName() or null if it wasn't called
SchemaCompilationException
String write(org.apache.ws.commons.schema.XmlSchemaElement element, Map<QName,String> typeMap, Map<QName,String> groupTypeMap, BeanWriterMetaInfoHolder metainf) throws SchemaCompilationException
element
- typeMap
- metainf
-
SchemaCompilationException
String write(org.apache.ws.commons.schema.XmlSchemaSimpleType simpleType, Map<QName,String> typeMap, Map<QName,String> groupTypeMap, BeanWriterMetaInfoHolder metainf) throws SchemaCompilationException
simpleType
- typeMap
- metainf
-
SchemaCompilationException
String getExtensionMapperPackageName()
mapperPackageName
- void registerExtensionMapperPackageName(String mapperPackageName)
mapperPackageName
- void writeExtensionMapper(BeanWriterMetaInfoHolder[] metainfArray) throws SchemaCompilationException
metainfArray
- namespaceToUse
-
SchemaCompilationException
String getDefaultClassName()
String getDefaultClassArrayName()
String getDefaultAttribClassName()
String getDefaultAttribArrayClassName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |