org.apache.wsif.compiler.schema.tools
Class Schema2Java

java.lang.Object
  extended byorg.apache.wsif.compiler.schema.tools.Schema2Java

public class Schema2Java
extends java.lang.Object

Convert XML schema file into Java class files.

Author:
Owen Burroughs

Constructor Summary
Schema2Java(java.lang.String schemaURI)
          Deprecated. Insert the method's description here.
 
Method Summary
 java.util.Map createJavaMapping(org.w3c.dom.Element root, java.util.Map reg)
          Deprecated. This method takes inputs of an Schema Element, a HashMap and returns the same HashMap filled with the mappings from schema QNames to Java class names or primitive types.
 java.lang.String getNamespaceURIMapping(java.lang.String namespaceURI)
          Deprecated. Insert the method's description here.
 boolean getOverwrite()
          Deprecated.  
 java.util.Map getRegistry(java.util.Map reg)
          Deprecated. Insert the method's description here.
 boolean getVerbose()
          Deprecated.  
 java.lang.String getWorkingDirectory()
          Deprecated. Gets the current working directory for generated Java files.
 void outputJavaMapping()
          Deprecated. Output the Java class files created from XML Schema models to the working directory.
 void setJavac(boolean javac)
          Deprecated.  
 void setNamespaceURIMapping(java.lang.String namespaceURI, java.lang.String javaPath)
          Deprecated. Set the mapping between namespace URI and the java package name used in the generated class files.
 void setOverwrite(boolean overwrite)
          Deprecated.  
 void setPackageName(java.lang.String packageName)
          Deprecated. Set the Java package into which the generated code should be placed.
 void setVerbose(boolean verbose)
          Deprecated.  
 void setWorkingDirectory(java.lang.String dir)
          Deprecated. Set the working directory for generated Java files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema2Java

public Schema2Java(java.lang.String schemaURI)
Deprecated. 
Insert the method's description here. Creation date: (6/22/00 10:08:16 AM)

Method Detail

createJavaMapping

public java.util.Map createJavaMapping(org.w3c.dom.Element root,
                                       java.util.Map reg)
                                throws SchemaException
Deprecated. 
This method takes inputs of an Schema Element, a HashMap and returns the same HashMap filled with the mappings from schema QNames to Java class names or primitive types. Repeatedly call this method on the same object will have cumulative effect. That is, the registry returned will have all the mappings for every DOM elements processed. To output the java class files, call the public method: outputJavaMapping () once all the schema elements have been processed. Creation date: (6/22/00 6:04:35 PM)

Parameters:
root - org.w3c.dom.Element
Returns:
java.util.HashMap
Throws:
SchemaException

setPackageName

public void setPackageName(java.lang.String packageName)
Deprecated. 
Set the Java package into which the generated code should be placed. Defaults to unnamed package.


getNamespaceURIMapping

public java.lang.String getNamespaceURIMapping(java.lang.String namespaceURI)
Deprecated. 
Insert the method's description here. Creation date: (6/22/00 12:23:44 PM)

Parameters:
namespaceURI - java.lang.String
Returns:
java.lang.String

getRegistry

public java.util.Map getRegistry(java.util.Map reg)
Deprecated. 
Insert the method's description here. Creation date: (7/2/00 4:06:35 PM)

Parameters:
reg - java.util.HashMap
Returns:
java.util.HashMap

getWorkingDirectory

public java.lang.String getWorkingDirectory()
Deprecated. 
Gets the current working directory for generated Java files.

Returns:
dir java.lang.String defaults to the "user.dir" system property
See Also:
setWorkingDirectory(java.lang.String)

outputJavaMapping

public void outputJavaMapping()
                       throws SchemaException,
                              java.io.IOException
Deprecated. 
Output the Java class files created from XML Schema models to the working directory. Call public method: setWorkingDirectory (String directory) to set the output directory. Creation date: (5/28/00 2:56:06 PM)

Throws:
SchemaException
java.io.IOException

setNamespaceURIMapping

public void setNamespaceURIMapping(java.lang.String namespaceURI,
                                   java.lang.String javaPath)
Deprecated. 
Set the mapping between namespace URI and the java package name used in the generated class files. Creation date: (6/22/00 12:20:21 PM)

Parameters:
namespaceURI - java.lang.String
javaPath - java.lang.String

setWorkingDirectory

public void setWorkingDirectory(java.lang.String dir)
                         throws java.lang.IllegalArgumentException
Deprecated. 
Set the working directory for generated Java files. Creation date: (5/30/00 9:17:36 PM)

Parameters:
dir - java.lang.String
Throws:
java.lang.IllegalArgumentException

setVerbose

public void setVerbose(boolean verbose)
Deprecated. 

getVerbose

public boolean getVerbose()
Deprecated. 

setOverwrite

public void setOverwrite(boolean overwrite)
Deprecated. 

getOverwrite

public boolean getOverwrite()
Deprecated. 

setJavac

public void setJavac(boolean javac)
Deprecated. 


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.