com.sun.xml.ws.db.sdo
Class Xsd2JavaSDOModel

java.lang.Object
  extended by com.sun.xml.ws.db.sdo.Xsd2JavaSDOModel

public class Xsd2JavaSDOModel
extends Object

This class contains the result of java type mapping on a set of schemas. It is only aware of the global elements for now.


Constructor Summary
Xsd2JavaSDOModel(commonj.sdo.helper.HelperContext context, List<org.eclipse.persistence.sdo.SDOType> types)
           
 
Method Summary
 void generateCode(org.eclipse.persistence.sdo.helper.CodeWriter cw)
          write the java class to the code writer, see toplink CodeWriter interface
 List<String> getClassList()
          Receive a list of java classes modeled by this xsd2java model
 String getJavaTypeForElementName(QName qname)
          return the java type used for the element, only Global elements can be located.
 String getJavaTypeForElementType(QName name)
          return the java type for a given xsd type
 QName getXsdTypeName(String javaClass)
          Return the type qname used to define this java class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xsd2JavaSDOModel

public Xsd2JavaSDOModel(commonj.sdo.helper.HelperContext context,
                        List<org.eclipse.persistence.sdo.SDOType> types)
Method Detail

generateCode

public void generateCode(org.eclipse.persistence.sdo.helper.CodeWriter cw)
write the java class to the code writer, see toplink CodeWriter interface

Parameters:
cw -

getClassList

public List<String> getClassList()
Receive a list of java classes modeled by this xsd2java model

Returns:

getXsdTypeName

public QName getXsdTypeName(String javaClass)
Return the type qname used to define this java class

Parameters:
javaClass -
Returns:

getJavaTypeForElementName

public String getJavaTypeForElementName(QName qname)
return the java type used for the element, only Global elements can be located. Containing types are not searched

Parameters:
qname -
Returns:

getJavaTypeForElementType

public String getJavaTypeForElementType(QName name)
return the java type for a given xsd type

Parameters:
name -
Returns:


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.