Package com.sun.xml.rpc.tools.wscompile
Class CompileTool
- java.lang.Object
-
- com.sun.xml.rpc.util.ToolBase
-
- com.sun.xml.rpc.tools.wscompile.CompileTool
-
- All Implemented Interfaces:
ProcessorNotificationListener,CompileTool
- Direct Known Subclasses:
EndpointClientCompileTool,EndpointCompileTool
public class CompileTool extends ToolBase implements ProcessorNotificationListener, CompileTool
- Author:
- JAX-RPC Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected Mapactionsprotected booleancompilerDebugprotected booleancompilerOptimizeprotected FileconfigFileprotected Configurationconfigurationprotected FiledebugModelFileprotected CompileToolDelegatedelegateprotected FiledestDirprotected booleandoNothingprotected booleandonotOverrideprotected booleandontGenerateRPCStructuresprotected booleandontGenerateWrapperClassesprotected ProcessorEnvironmentenvironmentprotected booleanexplicitServiceContextprotected booleangenerateOneWayMethodsprotected booleanjaxbEnumTypeprotected booleankeepGeneratedprotected ProcessorNotificationListenerlistenerprotected intmodeprotected static intMODE_DEFINEprotected static intMODE_GEN_BOTHprotected static intMODE_GEN_CLIENTprotected static intMODE_GEN_SERVERprotected static intMODE_IMPORTprotected static intMODE_UNSPECIFIEDprotected FilemodelFileprotected booleannoDataBindingprotected booleannoEncodedTypesprotected booleannoMultiRefEncodingprotected FilenonclassDestDirprotected booleannoValidationprotected booleanprintStackTraceprotected Processorprocessorprotected Propertiespropertiesprotected booleanresolveIDREFprotected booleansearchSchemaForSubtypesprotected booleanserializableprotected booleanserializeInterfacesprotected StringserializerInfixprotected FilesourceDirprotected booleanstrictComplianceprotected StringtargetVersionprotected booleanunwrapDocLitWrappersprotected booleanuseDataHandlerOnlyprotected booleanuseDocLiteralEncodingprotected StringuserClasspathprotected booleanuseRPCLiteralEncodingprotected booleanuseWSIBasicProfileprotected booleanverboseprotected booleanwrapperFlagSeen
-
Constructor Summary
Constructors Constructor Description CompileTool(OutputStream out, String program)
-
Method Summary
-
Methods inherited from class com.sun.xml.rpc.util.ToolBase
getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, report, report, run
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.rpc.spi.tools.CompileTool
run
-
-
-
-
Field Detail
-
properties
protected Properties properties
-
environment
protected ProcessorEnvironment environment
-
configuration
protected Configuration configuration
-
processor
protected Processor processor
-
listener
protected ProcessorNotificationListener listener
-
actions
protected Map actions
-
delegate
protected CompileToolDelegate delegate
-
configFile
protected File configFile
-
modelFile
protected File modelFile
-
sourceDir
protected File sourceDir
-
destDir
protected File destDir
-
nonclassDestDir
protected File nonclassDestDir
-
debugModelFile
protected File debugModelFile
-
mode
protected int mode
-
doNothing
protected boolean doNothing
-
compilerDebug
protected boolean compilerDebug
-
compilerOptimize
protected boolean compilerOptimize
-
verbose
protected boolean verbose
-
noDataBinding
protected boolean noDataBinding
-
noEncodedTypes
protected boolean noEncodedTypes
-
noMultiRefEncoding
protected boolean noMultiRefEncoding
-
noValidation
protected boolean noValidation
-
explicitServiceContext
protected boolean explicitServiceContext
-
printStackTrace
protected boolean printStackTrace
-
keepGenerated
protected boolean keepGenerated
-
serializable
protected boolean serializable
-
donotOverride
protected boolean donotOverride
-
serializeInterfaces
protected boolean serializeInterfaces
-
searchSchemaForSubtypes
protected boolean searchSchemaForSubtypes
-
useDataHandlerOnly
protected boolean useDataHandlerOnly
-
dontGenerateRPCStructures
protected boolean dontGenerateRPCStructures
-
useDocLiteralEncoding
protected boolean useDocLiteralEncoding
-
useRPCLiteralEncoding
protected boolean useRPCLiteralEncoding
-
useWSIBasicProfile
protected boolean useWSIBasicProfile
-
generateOneWayMethods
protected boolean generateOneWayMethods
-
resolveIDREF
protected boolean resolveIDREF
-
strictCompliance
protected boolean strictCompliance
-
jaxbEnumType
protected boolean jaxbEnumType
-
unwrapDocLitWrappers
protected boolean unwrapDocLitWrappers
-
wrapperFlagSeen
protected boolean wrapperFlagSeen
-
dontGenerateWrapperClasses
protected boolean dontGenerateWrapperClasses
-
targetVersion
protected String targetVersion
-
serializerInfix
protected String serializerInfix
-
userClasspath
protected String userClasspath
-
MODE_UNSPECIFIED
protected static final int MODE_UNSPECIFIED
- See Also:
- Constant Field Values
-
MODE_IMPORT
protected static final int MODE_IMPORT
- See Also:
- Constant Field Values
-
MODE_DEFINE
protected static final int MODE_DEFINE
- See Also:
- Constant Field Values
-
MODE_GEN_CLIENT
protected static final int MODE_GEN_CLIENT
- See Also:
- Constant Field Values
-
MODE_GEN_SERVER
protected static final int MODE_GEN_SERVER
- See Also:
- Constant Field Values
-
MODE_GEN_BOTH
protected static final int MODE_GEN_BOTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CompileTool
public CompileTool(OutputStream out, String program)
-
-
Method Detail
-
initialize
protected void initialize()
- Overrides:
initializein classToolBase
-
getEnvironment
public ProcessorEnvironment getEnvironment()
- Specified by:
getEnvironmentin interfaceCompileTool
-
getProcessor
public Processor getProcessor()
- Specified by:
getProcessorin interfaceCompileTool
-
setDelegate
public void setDelegate(CompileToolDelegate delegate)
- Specified by:
setDelegatein interfaceCompileTool
-
parseArguments
protected boolean parseArguments(String[] args)
- Specified by:
parseArgumentsin classToolBase
-
resetOptionsForTargetVersion
protected void resetOptionsForTargetVersion()
-
getVersion
public Localizable getVersion()
-
getVersionString
public String getVersionString()
-
usage
protected void usage()
-
help
protected void help()
-
run
public void run() throws ExceptionDescription copied from interface:CompileToolWhich one should we use? run() or run(String args[]). We have to define setters for each arguments if we were to use run();- Specified by:
runin interfaceCompileTool- Specified by:
runin classToolBase- Throws:
Exception
-
wasSuccessful
public boolean wasSuccessful()
- Overrides:
wasSuccessfulin classToolBase
-
getGenericErrorMessage
protected String getGenericErrorMessage()
- Specified by:
getGenericErrorMessagein classToolBase
-
getResourceBundleName
protected String getResourceBundleName()
- Specified by:
getResourceBundleNamein classToolBase
-
printStackTrace
public void printStackTrace(Throwable t)
- Overrides:
printStackTracein classToolBase
-
beforeHook
protected void beforeHook()
-
getSourceVersion
protected String getSourceVersion()
- Returns:
- the JAX-RPC version, 1.1.3 if none specified as target
-
withModelHook
protected void withModelHook()
-
afterHook
protected void afterHook()
-
removeGeneratedFiles
public void removeGeneratedFiles()
-
createEnvironment
protected ProcessorEnvironment createEnvironment() throws Exception
- Throws:
Exception
-
setEnvironmentValues
protected void setEnvironmentValues(ProcessorEnvironment env)
-
createConfiguration
protected Configuration createConfiguration() throws Exception
- Throws:
Exception
-
registerProcessorActions
protected void registerProcessorActions(Processor processor)
-
createClasspathString
protected String createClasspathString()
-
compileGeneratedClasses
protected void compileGeneratedClasses()
-
getAction
protected ProcessorAction getAction(String name)
-
onError
public void onError(Localizable msg)
- Specified by:
onErrorin interfaceProcessorNotificationListener
-
onWarning
public void onWarning(Localizable msg)
- Specified by:
onWarningin interfaceProcessorNotificationListener
-
onInfo
public void onInfo(Localizable msg)
- Specified by:
onInfoin interfaceProcessorNotificationListener
-
-