public class SchemaTypeCreator extends Object implements SchemaCreatorIntf
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.logging.Logger |
log |
protected Map<String,String> |
packageNamespaceMap |
protected SchemaUtils |
schemautils |
protected WSSchemaUtils |
sutils |
protected LiteralTypeMapping |
typeMapping |
protected WSDLUtils |
utils |
protected JBossXSModel |
xsModel |
protected String |
xsNS |
| Constructor and Description |
|---|
SchemaTypeCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPackageNamespaceMapping(String pkgname,
String ns)
Add a package - namespace mapping entry
|
String |
allocatePrefix(String nsURI)
If there is a type being used from a different namespace, a custom
prefix will be needed
|
JBossXSTypeDefinition |
generateType(QName xmlType,
Class javaType)
Main method that is involved in generating a Schema Type
|
JBossXSTypeDefinition |
generateType(QName xmlType,
Class javaType,
Map<String,QName> elementNames) |
HashMap<String,String> |
getCustomNamespaceMap()
Return a HashMap of custom namespaces like ns1, ns2 etc
|
Class<?> |
getJavaType(QName xmlType)
Given a XML Type, return the Java class
|
JavaWsdlMapping |
getJavaWsdlMapping() |
Map<String,String> |
getPackageNamespaceMap() |
LiteralTypeMapping |
getTypeMapping()
Return the Type Mapping
|
QName |
getXMLSchemaType(Class javaType)
Given a Java class, return the XML Type
|
JBossXSModel |
getXSModel()
get the XSModel representing the targetNS
|
void |
setPackageNamespaceMap(Map<String,String> packageNamespaceMap)
Users can provide a customized map of java packages to xml namespace
|
void |
setXSModel(JBossXSModel xsm)
Set the XSModel representing the targetNS
|
protected org.jboss.logging.Logger log
protected WSDLUtils utils
protected SchemaUtils schemautils
protected WSSchemaUtils sutils
protected LiteralTypeMapping typeMapping
protected String xsNS
protected JBossXSModel xsModel
public void addPackageNamespaceMapping(String pkgname, String ns)
SchemaCreatorIntfaddPackageNamespaceMapping in interface SchemaCreatorIntfpublic JBossXSTypeDefinition generateType(QName xmlType, Class javaType)
SchemaCreatorIntfgenerateType in interface SchemaCreatorIntfxmlType - QName of the Complex Type. Can be nulljavaType - Java class for the type. Can be nullpublic JBossXSTypeDefinition generateType(QName xmlType, Class javaType, Map<String,QName> elementNames)
generateType in interface SchemaCreatorIntfpublic QName getXMLSchemaType(Class javaType)
SchemaCreatorIntfgetXMLSchemaType in interface SchemaCreatorIntfpublic JavaWsdlMapping getJavaWsdlMapping()
getJavaWsdlMapping in interface SchemaCreatorIntfpublic JBossXSModel getXSModel()
SchemaCreatorIntfgetXSModel in interface SchemaCreatorIntfpublic HashMap<String,String> getCustomNamespaceMap()
SchemaCreatorIntfgetCustomNamespaceMap in interface SchemaCreatorIntfpublic Map<String,String> getPackageNamespaceMap()
getPackageNamespaceMap in interface SchemaCreatorIntfpublic LiteralTypeMapping getTypeMapping()
SchemaCreatorIntfgetTypeMapping in interface SchemaCreatorIntfpublic Class<?> getJavaType(QName xmlType)
SchemaCreatorIntfgetJavaType in interface SchemaCreatorIntfpublic void setXSModel(JBossXSModel xsm)
SchemaCreatorIntfsetXSModel in interface SchemaCreatorIntfpublic String allocatePrefix(String nsURI)
allocatePrefix in interface SchemaCreatorIntfnsuri - public void setPackageNamespaceMap(Map<String,String> packageNamespaceMap)
SchemaCreatorIntfsetPackageNamespaceMap in interface SchemaCreatorIntfpackageNamespaceMap - The packageNamespaceMap to set.Copyright © 2013 JBoss, by Red Hat. All Rights Reserved.