|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.schema.writer.CStructWriter
public class CStructWriter
Java Bean writer for the schema compiler.
Field Summary | |
---|---|
static java.lang.String |
AXIS2_PREFIX
|
static java.lang.String |
DEFAULT_ATTRIB_ARRAY_CLASS_NAME
|
static java.lang.String |
DEFAULT_ATTRIB_CLASS_NAME
|
static java.lang.String |
DEFAULT_CLASS_ARRAY_NAME
|
static java.lang.String |
DEFAULT_CLASS_NAME
|
static java.lang.String |
DEFAULT_TYPE_NS
|
protected java.io.File |
rootDir
|
static java.lang.String |
WRAPPED_DATABINDING_CLASS_NAME
|
Constructor Summary | |
---|---|
CStructWriter()
Default constructor |
Method Summary | |
---|---|
protected java.io.File |
createOutFile(java.lang.String fileName,
java.lang.String extension)
Creates the output file |
java.lang.String |
getDefaultAttribArrayClassName()
|
java.lang.String |
getDefaultAttribClassName()
|
java.lang.String |
getDefaultClassArrayName()
|
java.lang.String |
getDefaultClassName()
|
java.lang.String |
getExtensionMapperPackageName()
Keep unimplemented |
java.util.Map |
getModelMap()
This returns a map of Qnames vs DOMDocument models. |
java.lang.String |
getPrefixForURI(java.lang.String uri)
Get a prefix for a namespace URI. |
java.lang.String |
getPrefixForURI(java.lang.String uri,
java.lang.String defaultPrefix)
Get a prefix for the given namespace URI. |
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 |
protected void |
populateListInfo(BeanWriterMetaInfoHolder metainf,
org.w3c.dom.Document model,
org.w3c.dom.Element rootElement,
java.util.Map typeMap,
java.util.Map groupTypeMap)
|
protected void |
populateMemberInfo(BeanWriterMetaInfoHolder metainf,
org.w3c.dom.Document model,
org.w3c.dom.Element rootElement,
java.util.Map typeMap)
|
void |
registerExtensionMapperPackageName(java.lang.String mapperPackageName)
Keep unimplemented |
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)
Keep unimplemented |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WRAPPED_DATABINDING_CLASS_NAME
public static final java.lang.String AXIS2_PREFIX
protected java.io.File rootDir
public static final java.lang.String DEFAULT_CLASS_NAME
public static final java.lang.String DEFAULT_CLASS_ARRAY_NAME
public static final java.lang.String DEFAULT_ATTRIB_CLASS_NAME
public static final java.lang.String DEFAULT_ATTRIB_ARRAY_CLASS_NAME
public static final java.lang.String DEFAULT_TYPE_NS
Constructor Detail |
---|
public CStructWriter()
Method Detail |
---|
public java.util.Map getModelMap()
getModelMap
in interface BeanWriter
BeanWriter.getModelMap()
public java.lang.String getDefaultClassName()
getDefaultClassName
in interface BeanWriter
public java.lang.String getDefaultClassArrayName()
getDefaultClassArrayName
in interface BeanWriter
public java.lang.String getDefaultAttribClassName()
getDefaultAttribClassName
in interface BeanWriter
public java.lang.String getDefaultAttribArrayClassName()
getDefaultAttribArrayClassName
in interface BeanWriter
public void init(CompilerOptions options) throws SchemaCompilationException
BeanWriter
init
in interface BeanWriter
SchemaCompilationException
public java.lang.String write(org.apache.ws.commons.schema.XmlSchemaElement element, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf) throws SchemaCompilationException
BeanWriter
write
in interface BeanWriter
element
- typeMap
- metainf
-
SchemaCompilationException
public java.lang.String write(QName qName, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf, boolean isAbstract) throws SchemaCompilationException
BeanWriter
write
in interface BeanWriter
qName
- typeMap
- metainf
- isAbstract
-
SchemaCompilationException
BeanWriter
public void writeBatch() throws SchemaCompilationException
BeanWriter
writeBatch
in interface BeanWriter
SchemaCompilationException
BeanWriter.writeBatch()
public java.lang.String write(org.apache.ws.commons.schema.XmlSchemaSimpleType simpleType, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf) throws SchemaCompilationException
BeanWriter
write
in interface BeanWriter
simpleType
- typeMap
- metainf
-
SchemaCompilationException
BeanWriter#write(org.apache.ws.commons.schema.XmlSchemaSimpleType, java.util.Map, org.apache.axis2.schema.BeanWriterMetaInfoHolder)
public java.lang.String makeFullyQualifiedClassName(QName qName)
makeFullyQualifiedClassName
in interface BeanWriter
qName
- the qualified Name for this element or type in the schema
protected void populateListInfo(BeanWriterMetaInfoHolder metainf, org.w3c.dom.Document model, org.w3c.dom.Element rootElement, java.util.Map typeMap, java.util.Map groupTypeMap)
protected void populateMemberInfo(BeanWriterMetaInfoHolder metainf, org.w3c.dom.Document model, org.w3c.dom.Element rootElement, java.util.Map typeMap)
protected java.io.File createOutFile(java.lang.String fileName, java.lang.String extension) throws java.lang.Exception
fileName
- extension
-
java.lang.Exception
public java.lang.String getPrefixForURI(java.lang.String uri)
uri
- is the namespace uri
public java.lang.String getPrefixForURI(java.lang.String uri, java.lang.String defaultPrefix)
public void registerExtensionMapperPackageName(java.lang.String mapperPackageName)
registerExtensionMapperPackageName
in interface BeanWriter
mapperPackageName
- BeanWriter.registerExtensionMapperPackageName(String)
public void writeExtensionMapper(BeanWriterMetaInfoHolder[] metainfArray) throws SchemaCompilationException
writeExtensionMapper
in interface BeanWriter
metainfArray
-
SchemaCompilationException
BeanWriter.writeExtensionMapper(org.apache.axis2.schema.BeanWriterMetaInfoHolder[])
public java.lang.String getExtensionMapperPackageName()
getExtensionMapperPackageName
in interface BeanWriter
BeanWriter.getExtensionMapperPackageName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |