public class SchemaTypeCreator extends Object implements SchemaCreatorIntf
Modifier and Type | Field and Description |
---|---|
protected 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 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)
SchemaCreatorIntf
addPackageNamespaceMapping
in interface SchemaCreatorIntf
public JBossXSTypeDefinition generateType(QName xmlType, Class javaType)
SchemaCreatorIntf
generateType
in interface SchemaCreatorIntf
xmlType
- 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 SchemaCreatorIntf
public QName getXMLSchemaType(Class javaType)
SchemaCreatorIntf
getXMLSchemaType
in interface SchemaCreatorIntf
public JavaWsdlMapping getJavaWsdlMapping()
getJavaWsdlMapping
in interface SchemaCreatorIntf
public JBossXSModel getXSModel()
SchemaCreatorIntf
getXSModel
in interface SchemaCreatorIntf
public HashMap<String,String> getCustomNamespaceMap()
SchemaCreatorIntf
getCustomNamespaceMap
in interface SchemaCreatorIntf
public Map<String,String> getPackageNamespaceMap()
getPackageNamespaceMap
in interface SchemaCreatorIntf
public LiteralTypeMapping getTypeMapping()
SchemaCreatorIntf
getTypeMapping
in interface SchemaCreatorIntf
public Class<?> getJavaType(QName xmlType)
SchemaCreatorIntf
getJavaType
in interface SchemaCreatorIntf
public void setXSModel(JBossXSModel xsm)
SchemaCreatorIntf
setXSModel
in interface SchemaCreatorIntf
public String allocatePrefix(String nsURI)
allocatePrefix
in interface SchemaCreatorIntf
nsuri
- public void setPackageNamespaceMap(Map<String,String> packageNamespaceMap)
SchemaCreatorIntf
setPackageNamespaceMap
in interface SchemaCreatorIntf
packageNamespaceMap
- The packageNamespaceMap to set.Copyright © 2018 JBoss by Red Hat. All rights reserved.