Package org.apache.cxf.tools.common
Class ToolContext
java.lang.Object
org.apache.cxf.tools.common.ToolContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExcludeNamespacePackageMap(String namespace, String pn) voidaddNamespacePackageMap(String namespace, String pn) voidaddParameters(Map<String, Object> map) booleanbooleancontainsKey(String key) boolean<T> T<T> Tavoid need to suppress warnings on string->object cases.<T> TString[]booleangetBooleanValue(String key, String defaultValue) booleanbooleanhasNamespace(String ns) booleanbooleanbooleanvoidvoidmakeCopy()This method attempts to do a deep copy of items which may change in this ToolContext.mapPackageName(String ns) boolean<T> voidvoidvoidvoidvoidsetJavaModel(JavaModel jModel) voidsetJaxbBindingFiles(List<InputSource> bindings) voidsetPackageName(String pkgName) voidsetParameters(Map<String, Object> map)
-
Field Details
-
javaModel
-
-
Constructor Details
-
ToolContext
public ToolContext()
-
-
Method Details
-
loadDefaultNS2Pck
-
loadDefaultExcludes
-
getJavaModel
-
setJavaModel
-
addParameters
-
setParameters
-
containsKey
-
get
-
getArray
-
get
-
get
avoid need to suppress warnings on string->object cases.- Type Parameters:
T-- Parameters:
key-clazz-- Returns:
-
get
-
get
-
put
-
getBooleanValue
-
put
-
remove
-
optionSet
-
isVerbose
public boolean isVerbose() -
fullValidateWSDL
public boolean fullValidateWSDL() -
basicValidateWSDL
public boolean basicValidateWSDL() -
addNamespacePackageMap
-
hasNamespace
-
addExcludeNamespacePackageMap
-
hasExcludeNamespace
-
getExcludePackageName
-
setPackageName
-
getPackageName
-
mapPackageName
-
getCustomizedNS
-
setJaxbBindingFiles
-
getJaxbBindingFile
-
isExcludeNamespaceEnabled
public boolean isExcludeNamespaceEnabled() -
getExcludePkgList
-
getExcludeFileList
-
getQName
-
getQName
-
getErrorListener
-
setErrorListener
-
getNamespacePackageMap
-
isPackageNameChanged
public boolean isPackageNameChanged() -
makeCopy
This method attempts to do a deep copy of items which may change in this ToolContext. The intent of this is to be able to take a snapshot of the state of the ToolContext after it's initialised so we can run a tool multiple times with the same setup while not having the state preserved between multiple runs. I didn't want to call this clone() as it neither does a deep nor shallow copy. It does a mix based on my best guess at what changes and what doesn't.
-